Using VLOOKUP and SUMIFS at the same time

codemancode

New Member
Joined
Jul 28, 2017
Messages
2
Hey guys and gals, I have a question about a formula im trying to build. I'll type an example below because im as bad at explaining as I am at writing formulas apparently...So, on Sheet1 I have the following In example data in rows:

A1 B1 C1 D1
car RV boat plane
boat car
Plane taxi boat RV


in Sheet2 I have the following in a column:

car 3
RV 4
truck 2
boat 8
taxi 5
plane 2

I would like excel to take the first row, look at sheet2, and say car+RV+boat+plane and return 15. then boat+car 11 etc. I can do a SUMIF or SUMIFS and I can use VLOOKUP, for each one separate, but i cant figure out how to make them work together for a value in the entire row. Or if those are even the best functions to use for this. Thank you very much in advance for any help!
 

Excel Facts

What is =ROMAN(40) in Excel?
The Roman numeral for 40 is XL. Bill "MrExcel" Jelen's 40th book was called MrExcel XL.
Hi, codemancode!

You could try this:


Book1
AB
1car3
2RV4
3truck2
4boat8
5taxi5
6plane2
Sheet2


Book1
ABCDE
1carRVboatplane17
2boatcar11
3PlanetaxiboatRV15
Sheet1
Cell Formulas
RangeFormula
E1=SUMPRODUCT(SUMIF(Sheet2!A$1:A$6,A1:D1,Sheet2!B$1:B$6))

Blessings!
 
Last edited:
Upvote 0
WOW! it is amazing to me how quickly other people can come up with the solution to a problem ive worked on for days hahaha. Thank you kind person, i give you all the internet dollars :) I learn something new every day.
 
Upvote 0

Forum statistics

Threads
1,214,874
Messages
6,122,036
Members
449,062
Latest member
mike575

We've detected that you are using an adblocker.

We have a great community of people providing Excel help here, but the hosting costs are enormous. You can help keep this site running by allowing ads on MrExcel.com.
Allow Ads at MrExcel

Which adblocker are you using?

Disable AdBlock

Follow these easy steps to disable AdBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the icon in the browser’s toolbar.
2)Click on the "Pause on this site" option.
Go back

Disable AdBlock Plus

Follow these easy steps to disable AdBlock Plus

1)Click on the icon in the browser’s toolbar.
2)Click on the toggle to disable it for "mrexcel.com".
Go back

Disable uBlock Origin

Follow these easy steps to disable uBlock Origin

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back

Disable uBlock

Follow these easy steps to disable uBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back
Back
Top