问题
This is a "weighted average" formula where Q14:Q21 contains the "weights"; Column C is the first column of data, and subsequent columns are D:P
I can use this formula, and fill right. The data columns will change and the "weight" column remain the same.
=SUMPRODUCT(Sheet1!C$14:C$21,Sheet1!$Q$14:$Q$21)/SUM(Sheet1!$Q$14:$Q$21)
I would like to change the data to a "table" so as to be able to use structured references. The "weights" column header is Percent, and the data columns are year numbers starting with 2000.
Is there any way of entering the "Structured Reference" form of the formula, as shown below, in a single cell, and then fill right with only the first column ("2000") changing?
=SUMPRODUCT(Table3[2000],Table3[Percent])/SUM(Table3[Percent])
I've looked at Excel HELP and also tried searching on Google, with no luck.
回答1:
Please try:
=SUMPRODUCT(Table3[2000],Table3[[Percent]:[Percent]])/SUM(Table3[[Percent]:[Percent]])
来源:https://stackoverflow.com/questions/27511276/structured-references-absolute-and-relative-addressing