Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我有一些按季度给出的数据,我想将其转换为年度数据。换句话说,在yearly列中,第一行必须是季度数据中1:4行的总和,yearly列中的第二行必须是季度数据中5:8行的总和,等等。我找不到一种方法来做到这一点。
我的电子表格在这里。
使用Excel SUM 函数。
您可以单击要按住的单元格sum,然后键入
sum
=SUM(
接下来,拖动以突出显示要求和的单元格。
最后,键入)然后按Enter。
)
Enter
如果您的季度数据运行 A1:E4、A5:E8 等,请在 G1 中尝试:
=SUM(INDIRECT("A"&4*ROW()-3&":E"&4*ROW()))
复制下来以适应。
如果您的季度数据仅在 ColumnA 中E,则将最后一个更改为。A
E
A
在您的情况下,由于您的数据不是从第 1 行开始,您可能需要对上述内容进行偏移,例如在 K15 中:
=SUM(INDIRECT("D"&4*(ROW()-14)+11&":D"&4*(ROW()-14)+14))