Link to home
Create AccountLog in
Avatar of jay_eire
jay_eireFlag for United States of America

asked on

Adding two values using a VLookup

Hi,
I am using a Vlookup in spreadsheet to get values from my data for class junior and class senior, there is 100s of rows in the spreadsheet I need to add the two values up so I am using this formula

=VLOOKUP(E5,B3:C8,2,FALSE)+VLOOKUP(E6,B3:C8,2,FALSE)

How can you add two vaules from a vlookup? is above the best way of doing it?

I have attached a sample screenshot

Thanks
User generated image
ASKER CERTIFIED SOLUTION
Avatar of Steve
Steve
Flag of United Kingdom of Great Britain and Northern Ireland image

Link to home
membership
Create a free account to see this answer
Signing up is free and takes 30 seconds. No credit card required.
See answer
Try:

=SUMPRODUCT(SUMIFS(C3:C8,B3:B8,E5:E6))
Avatar of jay_eire

ASKER

Thank you for the advice.
.....