Vlookup summing

milewski

New Member
Joined
May 3, 2009
Messages
17
is it possible using vlookup or maybe another function to sum up items with the same look up value? I am trying to sum up numbers from multiple tabs for a given date and sometimes a date might appear 5 times in a tab, but vlookup seems to only grab the last one.

example i have 5 numbers with a vlookup of X i want to be able find all X for that tab sum and move to the next tab and do the same and then get a final sum for all numbers with look up value X
 

Excel Facts

Will the fill handle fill 1, 2, 3?
Yes! Type 1 in a cell. Hold down Ctrl while you drag the fill handle.
If you only have a few tabs to SUM from, you could use multiple SUMIF functions e.g.
Code:
=SUMIF(Sheet1!A:A, X, Sheet1!B:B) + SUMIF(Sheet2!A:A, X, Sheet2!B:B) + SUMIF(Sheet3!A:A, X, Sheet3!B:B)

This will sum the values in column B where column A equals X. It will sum all those values from Sheet1+Sheet2+Sheet3

If you have a lot of sheets to sum from, you might have to incorporate what is called a 3D SUMIF which is more involved.
 
Upvote 0

Forum statistics

Threads
1,224,597
Messages
6,179,813
Members
452,945
Latest member
Bib195

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