• Hi All

    Please note that at the Chandoo.org Forums there is Zero Tolerance to Spam

    Post Spam and you Will Be Deleted as a User

    Hui...

  • When starting a new post, to receive a quicker and more targeted answer, Please include a sample file in the initial post.

SUM BY USING "INDEX" AND "MATCH"

Muhammad

Firstly, Welcome to the Chandoo.org Forums

E3: =SUMPRODUCT(('Lookup table'!$D$5:$D$37)*('Lookup table'!$C$5:$C$37=C3))
Copy down

or
E3: =SUM(('Lookup table'!$C$5:$C$37=C3)*('Lookup table'!$D$5:$D$37)) Ctrl+Shift+Enter
Copy down
 
Last edited:
Match returns a single value being the position in the range of the value you are looking up

So you can't use match to return an array of values, which you require to do to add up multiple values

Why the question when there are other, simpler formulas that work?
 
hiii,

you can use below formula also

{=SUM(IF(C4='Lookup table'!$C$5:$C$37,'Lookup table'!$D$5:$D$37))}
ctrl+shift+enter

=SUMIF('Lookup table'!$C$5:$C$37,'output file'!C4,'Lookup table'!$D$5:$D$37)


Thanks
rahul shewale
 
Back
Top