使用vlookup或index / match函数从多行求和 [英] Sum values from multiple rows using vlookup or index/match functions

查看:1881
本文介绍了使用vlookup或index / match函数从多行求和的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我想使用公式对列B,C和D中的值求和。我尝试将 SUMIF VLOOKUP INDEX MATCH 但没有运气。

I want to sum the values in columns B, C, and D using a formula. I tried combining SUMIF, VLOOKUP and INDEX with MATCH but no luck.

我想寻找法国,然后在B,C和D中添加值。

I would like to look for France and then add the values in B, C and D.

I尝试:

=SUM(VLOOKUP(A9,A1:D5,{2,3,4,},FALSE))

但是它返回第一行的总值,不包括第三行:

But it returns the total value from the first row and does not include the 3rd row:

     A              B                  C                   D
1  FRANCE          152                252                  354
2  ITALY           255                184                  328 
3  FRANCE          221                215                  114
4  SPAIN           215                255                  356
5  USA             125                222                  584
6  
7
8  TOTAL PER COUNTRY
9    FRANCE
10   SPAIN


推荐答案

=SUMPRODUCT((A1:A5="FRANCE")*B1:D5)

这篇关于使用vlookup或index / match函数从多行求和的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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