拖动时更新公式行和列
update formula row and column while dragging
我已列出数据 row-wise,我希望合并数据 column-wise,如图所示。
在单元格 G4 中,我使用了公式 SUMIFS($C:$C,$A:$A,F3,$B:$B,E4)
每次按行和按列拖动公式时,我都必须手动更新公式(行和列索引查找)。当我对角线拖动以获得输出格式所示的所有项目的总和时,如何使公式自动适应 header 和行?
在不了解您要做什么的情况下,我无法准确告诉您公式的哪些部分需要更改,但是:
当您 "drag"单元格。
举个例子:
$F
will always refer to Cell F3
, no matter where you copy or drag it.
$F3
will always refer to Column F
, no matter where you copy or drag it (but the Row [3
] will change depending on where you copy or drag it.)
F
will always refer to Row 3
, no matter where you copy or drag it (but the Column [F
] will change depending on where you copy or drag it.)
☆ 见我对的回答"Crash Course"(下半部分)。
更多阅读:
我建议将输入信息设置为 Excel Table。
然后可以将输出设置为 Pivot Table。
任何时候,如果您对源信息进行了更改,您需要做的就是刷新数据透视表 Table,使其更易于维护并减少公式密集度。如果您在互联网上搜索 Pivot Table,将会出现几个链接。
我已列出数据 row-wise,我希望合并数据 column-wise,如图所示。
在单元格 G4 中,我使用了公式 SUMIFS($C:$C,$A:$A,F3,$B:$B,E4)
每次按行和按列拖动公式时,我都必须手动更新公式(行和列索引查找)。当我对角线拖动以获得输出格式所示的所有项目的总和时,如何使公式自动适应 header 和行?
在不了解您要做什么的情况下,我无法准确告诉您公式的哪些部分需要更改,但是:
当您 "drag"单元格。
举个例子:
$F
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
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.)
☆ 见我对的回答"Crash Course"(下半部分)。
更多阅读:
我建议将输入信息设置为 Excel Table。
然后可以将输出设置为 Pivot Table。
任何时候,如果您对源信息进行了更改,您需要做的就是刷新数据透视表 Table,使其更易于维护并减少公式密集度。如果您在互联网上搜索 Pivot Table,将会出现几个链接。