excel- sumif多张纸
如果每张纸的另一个范围符合标准,我需要在几张纸上总和几个单元格。公式如下所示。
=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 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
标准范围&总和范围必须具有相同的范围
您的公式:
由于标准范围从d到Q开始,因此它无法工作,但总和范围从D到P。
尝试将其修复到此:
the Criteria range & sum range must have same range
Your Formula :
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: