我已经按行列出了数据,并且希望按列合并数据,如图所示。
在单元格 G4 中,我使用了公式 SUMIFS($C$4:$C$13,$A$4:$A$13,F3,$B$4:$B$13,E4)
每次当我按行和列拖动公式时,我都必须手动更新公式(行和列索引查找)。当我对角拖动以获得输出格式所示的所有项目的总和时,如何使公式自动适应标题和行?
最佳答案
在不了解您想要做什么的情况下,我无法准确告诉您公式的哪些部分需要更改:
当您“拖动”单元格时,前面有 $
“美元符号”的单元格引用部分不会改变。
举个例子:
<小时/>
$F$3
will always refer to CellF3
, no matter where you copy or drag it.
$F3
will always refer to ColumnF
, no matter where you copy or drag it (but the Row [3
] will change depending on where you copy or drag it.)
F$3
will always refer to Row3
, no matter where you copy or drag it (but the Column [F
] will change depending on where you copy or drag it.)
☆ 请参阅我对 this question 的回答的“速成类(class)”(底部) .
<小时/>更多阅读:
关于excel - 拖动时更新公式行和列,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/48717889/