基于矩阵条件的Excel总和 [英] Excel sum based on matrix condition

查看:23
本文介绍了基于矩阵条件的Excel总和的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我需要使用基于矩阵表的条件在 Excel 中创建动态求和公式.我在下面展示了一个例子:

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

和 val 基于矩阵中带有X"的选择.如果X"更改为其他引用,则应更改公式以反映更改并将相关值相加.

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.

有什么想法吗?

推荐答案

请尝试:

=MMULT(--(B9:F9="X"),C$2:C$6)

这篇关于基于矩阵条件的Excel总和的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆