[英]Given an array, how can I index match each value and sum them without a helper column?
I have multiple rows 34 columns wide with a reference Designator(RefDes) in each one that correlates to a value.我有多行 34 列宽,每行都有一个与值相关的参考指示符(RefDes)。 I am trying to find a way to match each RefDes to its value and sum those together without the use of a helper cell for each column to give each row a total value.我正在尝试找到一种方法将每个 RefDes 与其值相匹配,并将它们相加,而无需为每一列使用辅助单元格来为每一行提供一个总值。
My current formula will work with a helper cell but that adds 34 more columns and makes it very messy and hard to read.我当前的公式将与辅助单元格一起使用,但这会增加 34 列,使其非常混乱且难以阅读。
=INDEX(FullFlow2[[Category Times]:[Category Times]],MATCH(N4,FullFlow2[[REFDES]:[REFDES]]))
Followed by a =sumproduct()
in another column to collect the values.随后在另一列中使用=sumproduct()
来收集值。
Not sure if this is something I will need to use VBA for or if I can make it work without it.不确定这是否是我需要使用 VBA 的东西,或者我是否可以在没有它的情况下使其工作。
This is the RefDesTable below这是下面的 RefDesTable
This is the FullFlow2 Table below这是下面的 FullFlow2 表
Use SUMIFS wrapped in a SUMPRODUCT:使用包装在 SUMPRODUCT 中的 SUMIFS:
=SUMPRODUCT(SUMIFS(FullFlow2[[Category Times]:[Category Times]],FullFlow2[[REFDES]:[REFDES]],YourFirstTableName[1st]))
Replace YourFirstTableName
with the correct name for the table.将YourFirstTableName
替换为表的正确名称。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.