Excel sum based on matrix condition

2019-08-14 14:22发布

I need to create dynamic sum formula in Excel with conditions based on a matrix table. I've represented an example below:

enter image description here

The sum val is based on what is selected in the matrix with an 'X'. If the 'X' changes to other references, the formula should be changed to reflect the change and sum the relevant values.

Any ideas?

标签: excel sum
1条回答
手持菜刀,她持情操
2楼-- · 2019-08-14 14:36

Please try:

=MMULT(--(B9:F9="X"),C$2:C$6)
查看更多
登录 后发表回答