collection duplicate items for each sheet alone based on column

Mussa

Active Member
Joined
Jul 12, 2021
Messages
262
Office Version
  1. 2019
  2. 2010
hi experts
I search so much to merge duplicate item for each sheet separatly but I don't find thread like what I want .so I have about five sheets are the same structure should collection based on COL B and COL C,D should merge with comma when there are many differnt numbers for duplicate item and summing the value in COL H but in COL I(UNIT PRICE) should not summing . should calulate the price average because some times the same item changes in the price and COL J= COL H x COL I
with considering I have data about 6000 rows across multiple sheets and increasable

first
KarmaTest.xlsm
ABCDEFGHIJ
1DATECODEINV-N.OCLIENT-N.OBRANDTYPEORGINQTYPRICE1PRICE2
21/1/2021A02BlS1/12-021CC-MMSN1/12AC-AD1AA-100TTY11,000.00145.00166.00
31/2/2021A03BlS1/12-022CC-MMSN1/13AC-AD2AA-101TTY2500.00200.00230.00
41/3/2021A04BlS1/12-023CC-MMSN1/14AC-AD3AA-102TTY33,456.00130.00140.00
51/4/2021A12BlS1/12-024CC-MMSN1/15AC-AD4AA-103TTY4654.00150.00199.00
61/5/2021A06BlS1/12-025CC-MMSN1/16AC-AD5AA-104TTY5321.00160.00170.00
71/6/2021A07BlS1/12-026CC-MMSN1/17AC-AD6AA-105TTY6234.00180.00200.00
81/7/2021A08BlS1/12-027CC-MMSN1/18AC-AD7AA-106TTY7456.00123.00130.00
91/8/2021A09BlS1/12-028CC-MMSN1/19AC-AD8AA-107TTY8789.00134.00155.00
101/9/2021A10BlS1/12-029CC-MMSN1/20AC-AD9AA-108TTY9890.00123.00156.00
111/10/2021A13BlS1/12-030CC-MMSN1/21AC-AD10AA-109TTY10780.00134.00144.00
121/11/2021A14BlS1/12-031CC-MMSN1/22AC-AD11AA-110TTY11670.00145.00150.00
131/12/2021A01BlS1/12-032CC-MMSN1/23AC-AD12AA-111TTY12345.00156.00170.00
141/13/2021A01BlS1/12-033CC-MMSN1/24AC-AD13AA-112TTY13678.00177.00180.00
151/14/2021A01BlS1/12-034CC-MMSN1/25AC-AD14AA-113TTY141,234.00166.00200.00
161/15/2021A02BlS1/12-035CC-MMSN1/26AC-AD1AA-100TTY1200.00145.00166.00
171/16/2021A03BlS1/12-036CC-MMSN1/27AC-AD2AA-101TTY2100.00200.00230.00
181/17/2021A04BlS1/12-037CC-MMSN1/28AC-AD3AA-102TTY3100.00130.00140.00
191/18/2021A12BlS1/12-038CC-MMSN1/29AC-AD4AA-103TTY4200.00150.00199.00
201/19/2021A06BlS1/12-039CC-MMSN1/30AC-AD5AA-104TTY5200.00160.00170.00
211/20/2021A07BlS1/12-040CC-MMSN1/31AC-AD6AA-105TTY6240.00180.00200.00
221/21/2021A08BlS1/12-041CC-MMSN1/32AC-AD7AA-106TTY7250.00123.00130.00
231/22/2021A09BlS1/12-042CC-MMSN1/33AC-AD8AA-107TTY8260.00134.00155.00
241/23/2021A10BlS1/12-043CC-MMSN1/34AC-AD9AA-108TTY9270.00123.00156.00
251/24/2021A13BlS1/12-044CC-MMSN1/35AC-AD10AA-109TTY10280.00134.00144.00
261/25/2021A14BlS1/12-045CC-MMSN1/36AC-AD11AA-110TTY11200.00145.00150.00
271/26/2021A01BlS1/12-046CC-MMSN1/37AC-AD12AA-111TTY12190.00156.00170.00
281/27/2021A01BlS1/12-047CC-MMSN1/38AC-AD13AA-112TTY13100.00177.00180.00
291/28/2021A01BlS1/12-048CC-MMSN1/39AC-AD14AA-113TTY14100.00166.00200.00
30
lkj



second
KarmaTest.xlsm
ABCDEFGHIJ
1DATECODEINV-N.OCLIENT-N.OBRANDTYPEORGINQTYPRICETOTAL
22/2/2021A02BlS1/12-021CC-MMSN1/12AC-AD1AA-100TTY120146.002,920.00
32/3/2021A03BlS1/12-022CC-MMSN1/13AC-AD2AA-101TTY239200.007,800.00
42/4/2021A04BlS1/12-023CC-MMSN1/14AC-AD3AA-102TTY356130.007,280.00
52/5/2021A12BlS1/12-024CC-MMSN1/15AC-AD4AA-103TTY477150.0011,550.00
62/6/2021A06BlS1/12-025CC-MMSN1/16AC-AD5AA-104TTY566160.0010,560.00
72/7/2021A07BlS1/12-026CC-MMSN1/17AC-AD6AA-105TTY688180.0015,840.00
82/8/2021A08BlS1/12-027CC-MMSN1/18AC-AD7AA-106TTY7345123.0042,435.00
92/9/2021A09BlS1/12-028CC-MMSN1/19AC-AD8AA-107TTY8123134.0016,482.00
102/10/2021A10BlS1/12-029CC-MMSN1/20AC-AD9AA-108TTY944123.005,412.00
112/11/2021A13BlS1/12-030CC-MMSN1/21AC-AD10AA-109TTY1056134.007,504.00
122/12/2021A14BlS1/12-031CC-MMSN1/22AC-AD11AA-110TTY11345145.0050,025.00
132/13/2021A15BlS1/12-032CC-MMSN1/23AC-AD12AA-111TTY12234156.0036,504.00
142/14/2021A16BlS1/12-033CC-MMSN1/24AC-AD13AA-112TTY13123177.0021,771.00
152/15/2021A17BlS1/12-034CC-MMSN1/25AC-AD14AA-113TTY146166.00996.00
162/16/2021A02BlS1/12-035CC-MMSN1/26AC-AD1AA-100TTY120147.002,940.00
172/17/2021A03BlS1/12-036CC-MMSN1/27AC-AD2AA-101TTY239200.007,800.00
182/18/2021A04BlS1/12-037CC-MMSN1/28AC-AD3AA-102TTY356130.007,280.00
192/19/2021A12BlS1/12-038CC-MMSN1/29AC-AD4AA-103TTY477150.0011,550.00
202/20/2021A06BlS1/12-039CC-MMSN1/30AC-AD5AA-104TTY566160.0010,560.00
212/21/2021A07BlS1/12-040CC-MMSN1/31AC-AD6AA-105TTY688180.0015,840.00
222/22/2021A08BlS1/12-041CC-MMSN1/32AC-AD7AA-106TTY7345123.0042,435.00
232/23/2021A09BlS1/12-042CC-MMSN1/33AC-AD8AA-107TTY8123134.0016,482.00
242/24/2021A10BlS1/12-043CC-MMSN1/34AC-AD9AA-108TTY944123.005,412.00
252/25/2021A13BlS1/12-044CC-MMSN1/35AC-AD10AA-109TTY1056134.007,504.00
262/26/2021A14BlS1/12-045CC-MMSN1/36AC-AD11AA-110TTY11345145.0050,025.00
272/27/2021A15BlS1/12-046CC-MMSN1/37AC-AD12AA-111TTY12234156.0036,504.00
282/28/2021A16BlS1/12-047CC-MMSN1/38AC-AD13AA-112TTY13123177.0021,771.00
293/1/2021A17BlS1/12-048CC-MMSN1/39AC-AD14AA-113TTY146166.00996.00
SSRR
Cell Formulas
RangeFormula
J2:J29J2=I2*H2


third
KarmaTest.xlsm
ABCDEFGHIJ
1DATECODEINV-N.OCLIENT-N.OBRANDTYPEORGINQTYPRICETOTAL
23/1/2021A02BlS1/12-021CC-MMSN1/12AC-AD1AA-100TTY1123146.0017,958.00
33/2/2021A03BlS1/12-022CC-MMSN1/13AC-AD2AA-101TTY244200.008,800.00
43/3/2021A04BlS1/12-023CC-MMSN1/14AC-AD3AA-102TTY333130.004,290.00
53/4/2021A12BlS1/12-024CC-MMSN1/15AC-AD4AA-103TTY422150.003,300.00
63/5/2021A06BlS1/12-025CC-MMSN1/16AC-AD5AA-104TTY5124160.0019,840.00
73/6/2021A07BlS1/12-026CC-MMSN1/17AC-AD6AA-105TTY656180.0010,080.00
83/7/2021A08BlS1/12-027CC-MMSN1/18AC-AD7AA-106TTY777123.009,471.00
93/8/2021A09BlS1/12-028CC-MMSN1/19AC-AD8AA-107TTY888134.0011,792.00
103/9/2021A10BlS1/12-029CC-MMSN1/20AC-AD9AA-108TTY999123.0012,177.00
113/10/2021A13BlS1/12-030CC-MMSN1/21AC-AD10AA-109TTY1087134.0011,658.00
123/11/2021A14BlS1/12-031CC-MMSN1/22AC-AD11AA-110TTY1165145.009,425.00
133/12/2021A15BlS1/12-032CC-MMSN1/23AC-AD12AA-111TTY1243156.006,708.00
143/13/2021A16BlS1/12-033CC-MMSN1/24AC-AD13AA-112TTY13134177.0023,718.00
153/14/2021A17BlS1/12-034CC-MMSN1/25AC-AD14AA-113TTY1423166.003,818.00
163/15/2021A02BlS1/12-035CC-MMSN1/26AC-AD1AA-100TTY1123146.0017,958.00
173/16/2021A03BlS1/12-036CC-MMSN1/27AC-AD2AA-101TTY244200.008,800.00
183/17/2021A04BlS1/12-037CC-MMSN1/28AC-AD3AA-102TTY333130.004,290.00
193/18/2021A12BlS1/12-038CC-MMSN1/29AC-AD4AA-103TTY422150.003,300.00
203/19/2021A06BlS1/12-039CC-MMSN1/30AC-AD5AA-104TTY5124160.0019,840.00
213/20/2021A07BlS1/12-040CC-MMSN1/31AC-AD6AA-105TTY656180.0010,080.00
223/21/2021A08BlS1/12-041CC-MMSN1/32AC-AD7AA-106TTY777123.009,471.00
233/22/2021A09BlS1/12-042CC-MMSN1/33AC-AD8AA-107TTY888134.0011,792.00
243/23/2021A10BlS1/12-043CC-MMSN1/34AC-AD9AA-108TTY999123.0012,177.00
253/24/2021A13BlS1/12-044CC-MMSN1/35AC-AD10AA-109TTY1087134.0011,658.00
263/25/2021A14BlS1/12-045CC-MMSN1/36AC-AD11AA-110TTY1165145.009,425.00
273/26/2021A15BlS1/12-046CC-MMSN1/37AC-AD12AA-111TTY1243156.006,708.00
283/27/2021A16BlS1/12-047CC-MMSN1/38AC-AD13AA-112TTY13134177.0023,718.00
293/28/2021A17BlS1/12-048CC-MMSN1/39AC-AD14AA-113TTY1423166.003,818.00
TTTR
Cell Formulas
RangeFormula
J2:J29J2=I2*H2


fourth
KarmaTest.xlsm
BCDEFGHIJ
1CODEINV-N.OCLIENT-N.OBRANDTYPEORGINQTYPRICETOTAL
2A02BlS1/12-021CC-MMSN1/12AC-AD1AA-100TTY110140.001,400.00
3A03BlS1/12-022CC-MMSN1/13AC-AD2AA-101TTY212200.002,400.00
4A04BlS1/12-023CC-MMSN1/14AC-AD3AA-102TTY316130.002,080.00
5A02BlS1/12-024CC-MMSN1/15AC-AD1AA-100TTY110146.001,460.00
6A03BlS1/12-025CC-MMSN1/16AC-AD2AA-101TTY212200.002,400.00
7A04BlS1/12-026CC-MMSN1/17AC-AD3AA-102TTY316144.002,304.00
LLLR
Cell Formulas
RangeFormula
J2:J7J2=I2*H2


fifth
KarmaTest.xlsm
ABCDEFGHIJ
1DATECODEINV-N.OCLIENT-N.OBRANDTYPEORGINQTYPRICETOTAL
25/1/2021A02BlS1/12-021CC-MMSN1/12AC-AD1AA-100TTY110146.001,460.00
35/2/2021A03BlS1/12-022CC-MMSN1/13AC-AD2AA-101TTY212200.002,400.00
45/3/2021A04BlS1/12-023CC-MMSN1/14AC-AD3AA-102TTY316130.002,080.00
55/4/2021A12BlS1/12-024CC-MMSN1/15AC-AD4AA-103TTY415146.002,190.00
65/5/2021A06BlS1/12-025CC-MMSN1/16AC-AD5AA-104TTY518200.003,600.00
75/6/2021A07BlS1/12-026CC-MMSN1/17AC-AD6AA-105TTY64130.00520.00
85/7/2021A08BlS1/12-027CC-MMSN1/18AC-AD7AA-106TTY73130.00390.00
95/8/2021A09BlS1/12-028CC-MMSN1/19AC-AD8AA-107TTY84130.00520.00
105/9/2021A02BlS1/12-029CC-MMSN1/12AC-AD1AA-100TTY110130.001,300.00
115/10/2021A03BlS1/12-030CC-MMSN1/13AC-AD2AA-101TTY212130.001,560.00
125/11/2021A04BlS1/12-031CC-MMSN1/14AC-AD3AA-102TTY316130.002,080.00
135/12/2021A12BlS1/12-032CC-MMSN1/15AC-AD4AA-103TTY415130.001,950.00
145/13/2021A06BlS1/12-033CC-MMSN1/16AC-AD5AA-104TTY518130.002,340.00
155/14/2021A07BlS1/12-034CC-MMSN1/17AC-AD6AA-105TTY64130.00520.00
165/15/2021A08BlS1/12-035CC-MMSN1/18AC-AD7AA-106TTY73130.00390.00
175/16/2021A09BlS1/12-036CC-MMSN1/19AC-AD8AA-107TTY84130.00520.00
185/17/2021A07BlS1/12-037CC-MMSN1/20AC-AD6AA-105TTY64140.00560.00
195/18/2021A08BlS1/12-038CC-MMSN1/21AC-AD7AA-106TTY73145.00435.00
205/19/2021A09BlS1/12-039CC-MMSN1/22AC-AD8AA-107TTY84155.00620.00
JJY
Cell Formulas
RangeFormula
J2:J20J2=I2*H2


I will take fourth sheet for example as expected result
KarmaTest.xlsm
ABCDEFGHIJ
1DATECODEINV-N.OCLIENT-N.OBRANDTYPEORGINQTYPRICETOTAL
24/1/2021A02BlS1/12-021,24CC-MMSN1/12,15AC-AD1AA-100TTY120134.002,680.00
34/2/2021A03BlS1/12-022,25CC-MMSN1/13AC-AD2AA-101TTY224205.004,920.00
44/3/2021A04BlS1/12-023,26CC-MMSN1/14,17AC-AD3AA-102TTY332137.004,384.00
LLLR
Cell Formulas
RangeFormula
J2:J4J2=I2*H2

in short words should merge the all of data based on duplicate items in COL B for each sheet alone with calculate price average .
thanks in advance
 

Excel Facts

What is the last column in Excel?
Excel columns run from A to Z, AA to AZ, AAA to XFD. The last column is XFD.

Forum statistics

Threads
1,223,889
Messages
6,175,223
Members
452,620
Latest member
dsubash

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