Summing VLookup

AboveBeyond

Board Regular
Joined
Aug 14, 2007
Messages
114
Hi,

I"m trying to get vlookup to find find all lookup values, sum up all of the corresponding values, and return that sum.

So example:

1. $5
1. $6
1. $9

It would return $20.

Thanks for the help! :p
 

Excel Facts

Format cells as time
Select range and press Ctrl+Shift+2 to format cells as time. (Shift 2 is the @ sign).

HalfAce

MrExcel MVP
Joined
Apr 6, 2003
Messages
9,456
Hello AboveBeyond, welcome to the board.
What Aladin posted is right close to what I had in mind, but with a little twist.
Say your numbers were in column A and your prices were in column B.
In some cell somewhere you can enter the formula: =SUMIF(A:A,C1,B:B)
Then just enter the (column A) number of interest in C1 and your formula should return
the sum of all column B values that have your C1 entry in column A.



Hi Aladin.
The fishing is just starting to get good! :cool:
You guys need any more?
 

AboveBeyond

Board Regular
Joined
Aug 14, 2007
Messages
114
Thanks for the help, I appreciate it!

I had to do some trial and error to see how the function worked but I got the results I was looking for.


Thanks again! :LOL:
 

Aladin Akyurek

MrExcel MVP
Joined
Feb 14, 2002
Messages
85,210
....

Hi Aladin.
The fishing is just starting to get good! :cool:
You guys need any more?

The school starts very soon... If you caught too much, you know the address. :LOL:
 
Master Excel Bundle

Excel contains over 450 functions, with more added every year. That’s a huge number, so where should you start? Right here with this bundle.

Forum statistics

Threads
1,163,880
Messages
5,834,222
Members
430,265
Latest member
CDane

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
Top