Using VLOOKUPs and calculating total.

Lmaonade

Board Regular
Joined
Jan 5, 2018
Messages
52
Hi guys,

I'm not great with these Vlookups, how do I set a vlookup to add up any matches?

For example my data table has:

AB
110001846
210001454
310002662
410002277
510002548
610003292
710004367
810004269

<tbody>
</tbody>


So when I do my Vlookup by the reference numbers (10001, 10002 etc) I want the result to give me for each 10001 = 1300, 10002 = 1487, 10003 = 292, 10004 = 636

How would I set this?

Thanks,
Andy
 

Excel Facts

Last used cell?
Press Ctrl+End to move to what Excel thinks is the last used cell.
No silly at all, SUMIF is exactly the way to go from the sound if it;

Code:
=SUMIF(A:A,10001,B:B)

OR

Code:
=SUMIF(A:A,A1,B:B)

If you wanted to use cell references to make it more dynamic
 
Upvote 0

Forum statistics

Threads
1,220,965
Messages
6,157,119
Members
451,398
Latest member
rjsteward

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