[英]Excel Lookup and sum multiple values
A B C D D E F
DEForage201 DE Deutschland 201 Perennial Ryegrass Forage 789951
DEForage201 DE Germany 201 Perennial Ryegrass Forage 5617026
In the list above (starting in column A
which is an ID line compiled by column B
, F
and D
) I want to lookup and get the sum of the rightmost column. 在上面的列表中(从
A
列开始,这是由B
, F
和D
列编译的ID行),我想查找并获取最右边一列的总和。
Currently I am using vlookup and look for the ID line in column A
, until I noticed that the country names in column C
would differ during the list which is why I am having identical ID lines in column A
and currently only get the first value. 当前,我正在使用vlookup并在
A
列中查找ID行,直到发现列表中C
列中的国家名称会有所不同,这就是为什么我在A
列中具有相同的ID行并且当前仅获得第一个值的原因。
Any ideas how to solve this? 任何想法如何解决这个问题?
Assuming you're looking for a way to view the sum of column F for each unique combination of columns A through E, a Pivot Table might be what you're looking for. 假设您正在寻找一种查看A到E列的每个唯一组合的F列之和的方法,则可能是您想要的数据透视表。 You can select columns A through E as the "rows" for the pivot table, and sum of column F for the values.
您可以选择A到E列作为数据透视表的“行”,并选择F列的总和作为值。 Adjust the report layout in the Pivot Table Design tab to get it to look the way you want.
在“数据透视表设计”选项卡中调整报表布局,使其看起来像您想要的样子。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.