Using VLOOKUP to sum values cells vertically

epresent

New Member
Joined
Jan 6, 2014
Messages
10
Hi I have a data set where each order ID has different settlement values. There are duplicate order ids with different settlements amounts which need to be summed

order idnet settlement
OD105630099701460000

<tbody>
</tbody>

<tbody>
</tbody>


In tab 2

order idsettlement
OD105630099701460000945
OD105630099701460000-900
OD10563009970146000025

<tbody>
</tbody>


Need to lookup the order id's and sum them under net settlement

Could someone please help
 

Excel Facts

Round to nearest half hour?
Use =MROUND(A2,"0:30") to round to nearest half hour. Use =CEILING(A2,"0:30") to round to next half hour.
Assume your data is in A1 to B4 and the order number you want to sum is in C1 then

Sumif($a$2:$A$4,C1,$B$2:$B$4)

If you have lots of them and they change regularly cobsider a pivot table.
 
Upvote 0
Hey BGY thannx a ton for the quick answer. For some odd reason when i use the sumif it takes the first value and it does not add the rest of the values
 
Upvote 0
Check the other order numbers are exactly the same as the norder number in C1. Ensure there are no leading, trailng spaces. The order number in C1 and in the table MUST be exactly the same for it to work. Extra spaces, digits, numbers and it will not work properly
 
Upvote 0
Hi I am using this formula
=SUMIF(payments!$A$1:$A$780,'flipkart sales april 2016'!A23,payments!$X$1:$X$780)

i have sorted the data in the other worksheet according to order numbers, hence all the duplicate order numbers are one below the other
 
Upvote 0
The formula just takes the first value. Is there an alternative method, or am I doing something wrong
 
Upvote 0

Forum statistics

Threads
1,215,095
Messages
6,123,072
Members
449,093
Latest member
ripvw

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