在VLOOKUP / INDEX-MATCH excel函数中求和类似的值 [英] Sum up similar values in VLOOKUP/INDEX-MATCH excel functions

查看:479
本文介绍了在VLOOKUP / INDEX-MATCH excel函数中求和类似的值的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我在excel 2010中有一个vlookup / index-match公式的问题。



我有一个表在名称列中包含重复的值。
我在另一张表中有一个表,引用名称&数量从第一张。
如果原始表中存在重复的名称,则应将金额相加。



例如,查看下面的图片。
ABC是一个重复的名称,它的数量应为零。
当我查找名称ABC时,如何使用Vlookup / index-match公式来显示0?



在目标表中,该名称只显示一次,因此我不想在目录表中添加另一个ABC。




谢谢!
Roni。

解决方案

VLOOKUP 和或 INDEX / MATCH 只会返回一个条目(第一个匹配) - 所以你不能用它来求和(除非是一个数组但是,使用 SUMIFS (或在Excel 2003及更早版本中的 SUMIF / code>)将只是你需要的:所以在F2,你可以写:

 
= SUMIFS($ C $ 2:$ C $ 6,$ B $ 2:$ B $ 6 ,E2)


I have an issue with a vlookup/index-match formula in excel 2010.

I have a table that contains duplicate values in the name column. I have a table in another sheet that reference the name & amount from the first sheet. in case a duplicate name exist in the original table, it should sum the amount.

For example, look at the pic below. ABC is a duplicate name, and it's amount should be zero. How can I use Vlookup/index-match formulas in order to display "0" in the result when I lookup the name ABC?

In the destination sheet, the name only appears once, hence I don't want to add another ABC to the dest table.

Thanks ! Roni.

解决方案

VLOOKUP and or INDEX/MATCH will only return you one entry (the first match) - so you cannot use it for summing (unless in an array formula).

However, using SUMIFS (or in Excel 2003 and earlier SUMIF) will be just what you need: So In F2, you could write:

=SUMIFS($C$2:$C$6,$B$2:$B$6,E2)

这篇关于在VLOOKUP / INDEX-MATCH excel函数中求和类似的值的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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