excel- sumif多张纸

发布于 2025-02-02 12:20:28 字数 282 浏览 1 评论 0原文

如果每张纸的另一个范围符合标准,我需要在几张纸上总和几个单元格。公式如下所示。

=SUMIF('sheet0'!D3:Q3; "x"; 'sheet0'!D9:P9)+SUMIF('sheet1'!D3:Q3; "x"; sheet1'!D9:P9)+SUMIF('sheet2'!D3:Q3; "x"; 'sheet2'!D9:P9)

虽然这确实可以正常工作,但我需要以超过 50张进行此操作,并且我想知道是否是编写较短公式以获得相同结果的一种方式。

I need to sum a range of cells in several sheets if another range of cells for each sheet match a criteria. The formula is as shown below.

=SUMIF('sheet0'!D3:Q3; "x"; 'sheet0'!D9:P9)+SUMIF('sheet1'!D3:Q3; "x"; sheet1'!D9:P9)+SUMIF('sheet2'!D3:Q3; "x"; 'sheet2'!D9:P9)

While, this does work correctly, I need to do this for more than 50 sheets and I'd like to know if is a way to write a shorter formula to get the same result.

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(1

‖放下 2025-02-09 12:20:28

标准范围&总和范围必须具有相同的范围

您的公式:

SUMIF('sheet0'!D3:Q3; "x"; 'sheet0'!D9:P9)

由于标准范围从d到Q开始,因此它无法工作,但总和范围从D到P。

尝试将其修复到此:

SUMIF('sheet0'!D3:P3; "x"; 'sheet0'!D9:P9)

the Criteria range & sum range must have same range

Your Formula :

SUMIF('sheet0'!D3:Q3; "x"; 'sheet0'!D9:P9)

it won't work because Criteria Range starts from D to Q but the sum range starts from D to P.

Try to fix it to this:

SUMIF('sheet0'!D3:P3; "x"; 'sheet0'!D9:P9)
~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文