Merge Duplicates and add sum

Zafar900

New Member
Joined
Sep 2, 2016
Messages
3
Good day all,

I would like to know if anybody has a solution to this problem for me as i am unable to find another solution online

Part numberQuantityPrice DHS
W9Y0100K0C12549.71
WL01122051114.43
WL01122052114.43
WL9118X101130.85
WL9118X101130.85
WL9118X101130.85
WL9118X101130.85
WL9118X101130.85
WL01122051114.43
W9Y111SC01798.55
WL9118X103130.85
WL9118X101130.85
WL9118X101130.85

<colgroup><col><col><col></colgroup><tbody>
</tbody>


I have An excel File similar to the one above and would like to know how to merge the duplicate part numbers and sum the qty of the merged duplicates and to keep the price the same as the merged duplicates,

sorry for the confusing question

thanks
 

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).
Hi Zafar,

Hope I am understanding your question properly, but I think the answer is to just use a pivot table. Part number as the row label, quantity as the column label and sum the values of quantity.

Lucas
 
Upvote 0
Refer to the example below. Start by copying column A to column E and remove duplicates. Then put in the formulas in columns F and G.


Excel 2010
ABCDEFG
1Part numberQuantityPrice DHSPart numberQuantityPrice DHS
2W9Y0100K0C12549.71W9Y0100K0C12549.71
3WL01122051114.43WL01122054114.43
4WL01122052114.43WL9118X1010130.85
5WL9118X101130.85W9Y111SC01798.55
6WL9118X101130.85
7WL9118X101130.85
8WL9118X101130.85
9WL9118X101130.85
10WL01122051114.43
11W9Y111SC01798.55
12WL9118X103130.85
13WL9118X101130.85
14WL9118X101130.85
Sheet1
Cell Formulas
RangeFormula
F2=SUMIF(A:A,E2,B:B)
G2=INDEX(C:C,MATCH(E2,A:A,0))
 
Upvote 0

Forum statistics

Threads
1,216,089
Messages
6,128,760
Members
449,466
Latest member
Peter Juhnke

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