如何在Excel中计算基于三个类别的列的总和

k97glaaz  于 2022-12-14  发布在  其他
关注(0)|答案(3)|浏览(148)

I have two table like this,
In this I want to find the total from the first table, based on the type in second table.
When it calculates the total, it should consider all the categories for the given type for the given month.
I have tried using sumifs but wasn't able to find a solution that I want.
I do not use excel every day, any help greatly appreciate.

ylamdve6

ylamdve61#

我得到了不同的答案,前两个从(左-右侧)是指帮助列和其余两个没有帮助列。希望这对你的工作。

h5qlskok

h5qlskok2#

尝试FILTER()XLOOKUP(),然后SUM()

=SUM(XLOOKUP(FILTER($F$2:$F$6,$E$2:$E$6=I3),INDEX(FILTER($B$2:$C$7,$A$2:$A$7=$I$2),,1),INDEX(FILTER($B$2:$C$7,$A$2:$A$7=$I$2),,2),0,0))

fiei3ece

fiei3ece3#

我有两张这样table,
在这里,我想根据第二个表中的类型,从第一个表中找到总数。
当它计算总数时,它应该考虑给定月份给定类型的所有类别。
我试过使用sumifs,但找不到我想要的解决方案。
我不是每天都用excel,任何帮助都非常感谢。

相关问题