简体   繁体   English

给定一个数组,我如何索引匹配每个值并在没有帮助列的情况下对它们求和?

[英]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.

相关问题 如何匹配两个条件以返回没有帮助列的值 - How do I match two conditions to return a value without a helper column 在 Excel 中,我可以根据给定值是否在每一行中对一列单元格求和吗? - In Excel, can I sum a column of cells based on whether or not a given value is in each of the rows? Excel - 如何在不使用数组公式和辅助列的情况下将唯一值从一列提取到另一列? - Excel - How can I extract unique values from one column to an another column without using array formulas and helper columns? 如何匹配2列,然后从第三列获取一个值并将其求和 - How to match 2 columns, then take a value from a third column and sum them up 如何在数据数组中求和给定名称的值? - How can I sum values given a name across a data array? 如何对给定条件的许多INDEX / MATCH值求和? - How to sum many INDEX/MATCH values given criteria? 如何汇总另一列中存在给定值的列的值? - How do I sum up the value of a column where a given value exists in another column? 如何打开多个工作表,在每个工作表中添加列的总和并保存? - How can I open multiple worksheets, add the sum of the columns in each of them and save it? 如何使用INDEX-MATCH在Excel中返回多个匹配值并对其求和 - How to Return Multiple Match Values in Excel Using INDEX-MATCH and the to sum them up 如何在A列中求和一些具有相同值的数字? - How can i sum some numbers with same value in A column?
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM