Help with Duplicated/Repeated Orders and Values

Tank2000

New Member
Joined
Mar 7, 2019
Messages
11
Office Version
  1. 2019
Platform
  1. Windows
Hi everyone.

Looking for some help. I have a spreadsheet that contains the following...

Column A has repeated Order Numbers
Column B has the values associated with those repeated Order Number

For example:

Column A
1234
1234
1234
1234
1234
1235
1235
1236
1237
1237
1237
1237
1237

Column B
100
100
100
100
100
200
200
300
400
400
400
400
400

Here's what I'm looking for...

Is there a formula that can look at the repeated Order Numbers in Column A and sum the value of all of those repeated Order Numbers and place that total beside the first Order number record in lets say Column C?

And another formula that can look at the repeated Order Numbers in Column A and sum the value of all of those repeated Order Numbers less one Order Number record (as the first record is a true transaction) place that total beside the first Order number record in lets say Column D?

So for Order Number 1234, Column C should have a total sum for that order number of 500 and Coulmn D should have a total sum of only 100.

Any help with crafting a formula would be greatly appreciated.

Cheers!
 

Excel Facts

Save Often
If you start asking yourself if now is a good time to save your Excel workbook, the answer is Yes
Hi Tank2000,

I'm not sure I've followed you on "sum the value of all of those repeated Order Numbers less one Order Number record (as the first record is a true transaction) place that total beside the first Order number record in lets say Column D" as it sounds like you just want the value of the first Order Number and not a subtraction?

Here's what I have so far:

Tank2000.xlsx
ABCD
1Order NumberValue
21234100500100
31234100  
41234100  
51234100  
61234100  
71235200400200
81235200  
91236300300300
1012374002000400
111237400  
121237400  
131237400  
141237400  
Sheet1
Cell Formulas
RangeFormula
C2:C14C2=IF(COUNTIF($A$1:$A2,A2)=1,SUMIF($A$2:$A$14,A2,$B$2:$B$14),"")
D2:D14D2=IF(C2<>"",B2,"")
 
Upvote 0
Thanks for the quick response Toadstool.

This is perfect!

Can I trouble you for one last formula? In Column E can you include the sum of the Order Number less the first record total? So for Order Number 1234, Column E should have a total sum for that order number of 400.

Cheers!
 
Upvote 0
Upvote 0
Thanks again Toadstool.

I'll give this a try tomorrow at work and will then advise if this solved the problem.

Cheers!
 
Upvote 0

Forum statistics

Threads
1,214,869
Messages
6,122,015
Members
449,060
Latest member
LinusJE

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