如何总和一个区域中的所有值,但只有将行分类为Google电子表格中的某种类型时?
我正在制作工作分解/甘特图类型的电子表格,我需要知道在特定时期内特定资源类型计划的小时数。 电子表格示例可能如下所示:
我知道我可以做类似 =SUMIF($C$3:$C$8, "Dev", D3:D8)
这样的事情,它会给我行中所有内容的总和当资源类型为“Dev”时,D3 到 D8,例如单元格 D10 中的值。类似的 =SUMIF($C$3:$C$8, "Tester", F3:F8)
会给我单元格 F11 中的数字 6 并通过执行 =SUM(D10:H10)< /code>,我将在单元格 H13 中获取开发的小时数,并在 H14 中获取类似的测试人员小时数总和。
我试图消除中间步骤,首先对每列求和,然后根据 D10 和 H10 等的结果数据再次求和。
我知道 =SUM(D3:H8)
是可能的,但这将不允许我区分开发时间与测试人员时间。由于某种原因,我无法执行 =SUMIF($C$3:$C$8, "Dev", $D$3:$H$8)
之类的操作来获得我期望的 14 小时开发。
我使用 ARRAYFORMULA
和 SUMIF
尝试了多种方法,但也没有成功。
有人知道在不进行中间步骤的情况下这是否可能吗?
I am working on a work breakdown / Gantt chart type of spreadsheet where I need to know the number of hours planned for certain resource types during a certain period.
An example spreadsheet might look like this:
I know I can do something like =SUMIF($C$3:$C$8, "Dev", D3:D8)
that will give me the sum for all things in row D3 to D8 when the resource type is "Dev", for example the value in cell D10. Similary =SUMIF($C$3:$C$8, "Tester", F3:F8)
will give me the number 6 in cell F11 and by doing =SUM(D10:H10)
, I will get the number of hours for Dev in cell H13 and similarly for H14 for the Tester Hours sum.
I am trying to eliminate the middle steps for summing first each column and then summing again from the resulting data from D10 and H10, etc.
I know =SUM(D3:H8)
is possible, but this will not allow me to differentiate the Dev Hours vs Tester Hours. I am unable to do something like =SUMIF($C$3:$C$8, "Dev", $D$3:$H$8)
for some reason to get me the 14 hours I am expecting for Dev.
I tried multiple things using ARRAYFORMULA
and SUMIF
and that too didn't work out.
Anyone know if this is even possible without doing the intermediate step?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
尝试:
或:
try:
or: