VLOOKUP but add values of the same order number?

Ben171

Board Regular
Joined
Jul 2, 2021
Messages
88
I have created a very simple workbook to demonstrate what I am asking.

Lets say I have one sheet called 'order numbers' and a second sheet called 'Carriage charge'

1640099027622.png
1640099034955.png


On sheet 2 "Carriage charge" you can see in column D i have a blank column in which i want to add the order value from sheet1

However as you can see from sheet 1 "order numbers" there is one order with the same order number 3 times. Therefore when I do my lookup, i would like it to add these 3 orders together so that it displays the total of £110, rather than find the first one and display £30.

hope that makes sense
 

Excel Facts

Create a Pivot Table on a Map
If your data has zip codes, postal codes, or city names, select the data and use Insert, 3D Map. (Found to right of chart icons).
You would not use VLOOKUP for that (VLOOKUP will only return the first value).
You would use the SUMIF function, to sum all values matching the ID you want.
See: MS Excel: How to use the SUMIF Function (WS)

There is also a SUMIFS function, if you have more than one criterion:
 
Upvote 0
Solution
You would not use VLOOKUP for that (VLOOKUP will only return the first value).
You would use the SUMIF function, to sum all values matching the ID you want.
See: MS Excel: How to use the SUMIF Function (WS)

There is also a SUMIFS function, if you have more than one criterion:
whoops, thank you!

I will check this out as I have not used this function before
 
Upvote 0
whoops, thank you!

I will check this out as I have not used this function before
No worries!

Those functions are pretty simple to use (they are easier to understand than VLOOKUP, IMO), and those links show examples.
If you run into any issues incorporating it into your worksheet, feel free to post back here to this thread for more assistance.
 
Upvote 0
No worries!

Those functions are pretty simple to use (they are easier to understand than VLOOKUP, IMO), and those links show examples.
If you run into any issues incorporating it into your worksheet, feel free to post back here to this thread for more assistance.
Using these examples i managed to figure it out and get what i wanted, thanks for your help :)
 
Upvote 0
You are welcome.
Glad I was able to help!
 
Upvote 0

Forum statistics

Threads
1,214,617
Messages
6,120,541
Members
448,970
Latest member
kennimack

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