excel - 拖动时更新公式行和列

标签 excel row formula sumifs

我已经按行列出了数据,并且希望按列合并数据,如图所示。

image


在单元格 G4 中,我使用了公式 SUMIFS($C$4:$C$13,$A$4:$A$13,F3,$B$4:$B$13,E4)

每次当我按行和列拖动公式时,我都必须手动更新公式(行和列索引查找)。当我对角拖动以获得输出格式所示的所有项目的总和时,如何使公式自动适应标题和行?

最佳答案

在不了解您想要做什么的情况下,我无法准确告诉您公式的哪些部分需要更改:

当您“拖动”单元格时,前面有 $“美元符号”的单元格引用部分不会改变

举个例子:

$F$3 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$3 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.)

<小时/>

☆ 请参阅我对 this question 的回答的“速成类(class)”(底部) .

<小时/>

更多阅读:

关于excel - 拖动时更新公式行和列,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/48717889/

相关文章:

windows - 抑制 'Excel has stopped working' 对话框

excel - 从vba中的单元格地址获取Excel合并单元格的值

MySQL : combine multiple row into one row

excel - ISNA + Vlookup 功能不起作用

java - 如何在 Java 中对 BigDecimal 进行分数幂运算?

vba - 在 Excel 中比较和计算连续数据

c# - 获取Excel文件的内容创建日期

MySQL 行到列

python - 迭代行并根据条件 pandas python 打印

c# - 质数公式