merge duplicate data and summing value with average price

Alaa mg

Active Member
Joined
May 29, 2021
Messages
378
Office Version
  1. 2019
hi
first this is a simple data , but my real data are about 8000 rows and they are increasable .
so what I want merge duplicate items based on COL B with considering in COL I should take the average price for duplicate item in sheet DATA after calculate the average and put in COL J should multiply in COL I and the result in COL K in sheet stock . about columns E,F if repeates for duplicate item should merge with comma .
note : it should create whole data in sheet stock and if they change in sheet data should update in sheet stock
sheet data
INVENTORY1.xlsm
ABCDEFGHIJ
1DATECODEBRANDTYPECUSTOMER NUMBERINVOICE NUMBERORIGINQTY PRICETOTAL
24/1/2021AA-100ASGL-VENSD-1CUS-100INV1-BSJ4-1000CCL110100.001,000.00
34/2/2021AA-100ASGL-VENSD-1CUS-101INV1-BSJ4-1001CCL11050.00500.00
44/3/2021AA-101VLG-FRESD-2CUS-102INV1-BSJ4-1002CCL240200.008,000.00
54/4/2021AA-101VLG-FRESD-2CUS-103INV1-BSJ4-1003CCL210220.002,200.00
64/5/2021AA-102VMC-EZERSD-3CUS-100INV1-BSJ4-1000CCL35100.00500.00
74/6/2021AA-103C-ZERSD-4CUS-100INV1-BSJ4-1004CCL4520.00100.00
84/7/2021AA-104MM-FRSD-5CUS-100INV1-BSJ4-1005CCL5530.00150.00
94/8/2021AA-101VLG-FRESD-2CUS-104INV1-BSJ4-1006CCL210220.002,200.00
DATA
Cell Formulas
RangeFormula
J3:J9J3=I3*H3



result in sheet stock
INVENTORY1.xlsm
BCDEFGHIJK
1ITEMCODEBRANDTYPECUSTOMER NUMBERINVOICE NUMBERORIGINQTYPRICETOTAL
21AA-100ASGL-VENSD-1CUS-100,101INV1-BSJ4-1000,001CCL120125.002,500.00
32AA-101VLG-FRESD-2CUS-102,103,104INV1-BSJ4-1002,003,006CCL260213.3312799;5
43AA-102VMC-EZERSD-3CUS-100INV1-BSJ4-1003CCL355.0025.00
54AA-103C-ZERSD-4CUS-100INV1-BSJ4-1004CCL455.0025.00
65AA-104MM-FRSD-5CUS-100INV1-BSJ4-1005CCL555.0025.00
STOCK
 

Excel Facts

Ambidextrous Undo
Undo last command with Ctrl+Z or Alt+Backspace. If you use the Undo icon in the QAT, open the drop-down arrow to undo up to 100 steps.

Forum statistics

Threads
1,224,792
Messages
6,180,984
Members
453,011
Latest member
Osamu9Dazai

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