transpose data for each sheet based on multiple prices

abdo meghari

Well-known Member
Joined
Aug 3, 2021
Messages
531
Office Version
  1. 2019
Hello
I have two sheets contains BRANDS in column C and many duplicates brands contain different prices in column E . so result should show from column I ( CODE,BRAND , PRICE)
the PRICE in header should increment as the brand needs when contains multiple prices.
transfer.xlsm
ABCDEFGHIJKLM
3ITEMCODEBRANDQTYUNIT PRICETOTAL
411241BS 1200R20 G580 JAP220.002,035.000447,700.00
521244BS 1200R20 R187 JAP4.002,000.0008,000.00
631269BS 1200R24 G580 JAP4.001,900.0007,600.00
741556BS 185R14C R660 TR12.00423.0005,076.00
851221BS 205/70R15C R623 THI72.00405.00029,160.00
961547BS 205R16C D840 THI8.00625.0005,000.00
1071502BS 215/65R16C R611 THI4.00600.0002,400.00
1181502BS 215/65R16C R611 THI8.00583.0004,664.00
1291227BS 215/70R15C R623 THI22.00425.0009,350.00
13101227BS 215/70R15C R623 THI28.00544.00015,232.00
14111503BS 225/85R16C R202 JAP6.00975.0005,850.00
15121310BS 225/95R16C D618 JAP40.00515.00020,600.00
16131310BS 225/95R16C D618 JAP50.00695.00034,750.00
17141310BS 225/95R16C D618 JAP38.00715.00027,170.00
18151310BS 225/95R16C D618 JAP58.00700.00040,600.00
19161402BS 245/70R16 D697 JAP4.00590.0002,360.00
20171346BS 255/70R15C D84024.00505.00012,120.00
21181346BS 255/70R15C D84017.00635.00010,795.00
22191326BS 265/60R18 D840 JAP36.00721.00025,956.00
23201534BS 265/65R17 D693 THI 36.00745.00026,820.00
24211391BS 265/65R17 D840 JAP5.00690.0003,450.00
25221391BS 265/65R17 D840 JAP50.00535.00026,750.00
26231411BS 275/55R20 ALENZA1 JAP4.00725.0002,900.00
27241411BS 275/55R20 ALENZA1 JAP4.00942.0003,768.00
28251190BS 285/50R20 DSPORT JAP1.00705.000705.00
29261190BS 285/50R20 DSPORT JAP8.00936.0007,488.00
30271315BS 315/80R22.5 G580 JAP 12.002,470.00029,640.00
31281257BS 315/80R22.5 R184 JAP37.002,015.00074,555.00
32291401BS 650R16 R230 JAP5.00570.0002,850.00
33301305BS 700R16 R230 JAP16.00762.00012,192.00
34311306BS 750R16 R230 JAP80.00715.00057,200.00
35321306BS 750R16 R230 JAP120.00940.000112,800.00
36331307BS 750R16 VSJ JAP5.00910.0004,550.00
37341284GC 1200R20 AZ0026 CHI80.00895.00071,600.00
38351284GC 1200R20 AZ0026 CHI324.001,125.000364,500.00
39361285GC 1200R20 AZ0183 CHI40.00925.00037,000.00
40371285GC 1200R20 AZ0183 CHI10.001,225.00012,250.00
41381285GC 1200R20 AZ0183 CHI140.001,205.000168,700.00
42391292GC 1200R24 AZ166 CHI24.00935.00022,440.00
43401385GC 315/80R22.5 AT161 CHI20.00735.00014,700.00
44411385GC 315/80R22.5 AT161 CHI10.00955.0009,550.00
45421287GC 315/80R22.5 AZ126 CHI60.00735.00044,100.00
46431294GC 315/80R22.5 AZ188 CHI20.00745.00014,900.00
47441294GC 315/80R22.5 AZ188 CHI24.00965.00023,160.00
48451492GC 385/65R22.5 AT131 CHI14.001,275.00017,850.00
49461528TH 185/65R14 H-93 CHI4.00134.000536.00
50471493WL 195/65R15 Z-108 CHI4.00173.000692.00
51481486WL 205/55R16 Z-108 CHI2.00185.000370.00
52TOTAL1,814.001,882,399.00
PURCHASING
Cell Formulas
RangeFormula
D52,F52D52=SUM(D4:D51)
F4:F51F4=D4*E4



.
transfer.xlsm
ABCDEF
3ITEMCODEBRANDQTYUNIT PRICETOTAL
411306BS 750R16 R230 JAP10.00775.0007,750.000
521306BS 750R16 R230 JAP4.00780.0003,120.000
631305BS 700R16 R230 JAP2.00770.0001,540.000
7TOTAL16.0012,410.00
SELLING
Cell Formulas
RangeFormula
D7,F7D7=SUM(D4:D6)
F4:F6F4=D4*E4



result

transfer.xlsm
ABCDEFGHIJKLMN
1CODEBRANDUNIT PRICE1UNIT PRICE2UNIT PRICE3UNIT PRICE4
21241BS 1200R20 G580 JAP2,035.000---
3ITEMCODEBRANDQTYUNIT PRICETOTAL1244BS 1200R20 R187 JAP2,000.000---
411241BS 1200R20 G580 JAP220.002,035.000447,700.001269BS 1200R24 G580 JAP1,900.000---
521244BS 1200R20 R187 JAP4.002,000.0008,000.001556BS 185R14C R660 TR423.000---
631269BS 1200R24 G580 JAP4.001,900.0007,600.001221BS 205/70R15C R623 THI405.000---
741556BS 185R14C R660 TR12.00423.0005,076.001547BS 205R16C D840 THI625.000---
851221BS 205/70R15C R623 THI72.00405.00029,160.001502BS 215/65R16C R611 THI600.000583.000--
961547BS 205R16C D840 THI8.00625.0005,000.001227BS 215/70R15C R623 THI425.000544.000--
1071502BS 215/65R16C R611 THI4.00600.0002,400.001503BS 225/85R16C R202 JAP975.000---
1181502BS 215/65R16C R611 THI8.00583.0004,664.001310BS 225/95R16C D618 JAP515.000695715700
1291227BS 215/70R15C R623 THI22.00425.0009,350.001402BS 245/70R16 D697 JAP590.000---
13101227BS 215/70R15C R623 THI28.00544.00015,232.001346BS 255/70R15C D840505.000635.000--
14111503BS 225/85R16C R202 JAP6.00975.0005,850.001326BS 265/60R18 D840 JAP721.000---
15121310BS 225/95R16C D618 JAP40.00515.00020,600.001534BS 265/65R17 D693 THI 745.000---
16131310BS 225/95R16C D618 JAP50.00695.00034,750.001391BS 265/65R17 D840 JAP535.000690.000--
17141310BS 225/95R16C D618 JAP38.00715.00027,170.001411BS 275/55R20 ALENZA1 JAP725.000942.000--
18151310BS 225/95R16C D618 JAP58.00700.00040,600.001190BS 285/50R20 DSPORT JAP936.000705.000--
19161402BS 245/70R16 D697 JAP4.00590.0002,360.001315BS 315/80R22.5 G580 JAP 2,470.000---
20171346BS 255/70R15C D84024.00505.00012,120.001257BS 315/80R22.5 R184 JAP2,015.000---
21181346BS 255/70R15C D84017.00635.00010,795.001401BS 650R16 R230 JAP570.000---
22191326BS 265/60R18 D840 JAP36.00721.00025,956.001305BS 700R16 R230 JAP762.000---
23201534BS 265/65R17 D693 THI 36.00745.00026,820.001306BS 750R16 R230 JAP715.000940.000--
24211391BS 265/65R17 D840 JAP5.00690.0003,450.001307BS 750R16 VSJ JAP910.000---
25221391BS 265/65R17 D840 JAP50.00535.00026,750.001284GC 1200R20 AZ0026 CHI895.0001,125.000--
26231411BS 275/55R20 ALENZA1 JAP4.00725.0002,900.001285GC 1200R20 AZ0183 CHI925.0001,225.0001,205.000-
27241411BS 275/55R20 ALENZA1 JAP4.00942.0003,768.001292GC 1200R24 AZ166 CHI935.000---
28251190BS 285/50R20 DSPORT JAP1.00705.000705.001385GC 315/80R22.5 AT161 CHI735.000955.000--
29261190BS 285/50R20 DSPORT JAP8.00936.0007,488.001287GC 315/80R22.5 AZ126 CHI735.000---
30271315BS 315/80R22.5 G580 JAP 12.002,470.00029,640.001294GC 315/80R22.5 AZ188 CHI745.000965.000--
31281257BS 315/80R22.5 R184 JAP37.002,015.00074,555.001492GC 385/65R22.5 AT131 CHI1,275.000---
32291401BS 650R16 R230 JAP5.00570.0002,850.001528TH 185/65R14 H-93 CHI134.000---
33301305BS 700R16 R230 JAP16.00762.00012,192.001493WL 195/65R15 Z-108 CHI173.000---
34311306BS 750R16 R230 JAP80.00715.00057,200.001486WL 205/55R16 Z-108 CHI185.000---
35321306BS 750R16 R230 JAP120.00940.000112,800.00
36331307BS 750R16 VSJ JAP5.00910.0004,550.00
37341284GC 1200R20 AZ0026 CHI80.00895.00071,600.00
38351284GC 1200R20 AZ0026 CHI324.001,125.000364,500.00
39361285GC 1200R20 AZ0183 CHI40.00925.00037,000.00
40371285GC 1200R20 AZ0183 CHI10.001,225.00012,250.00
41381285GC 1200R20 AZ0183 CHI140.001,205.000168,700.00
42391292GC 1200R24 AZ166 CHI24.00935.00022,440.00
43401385GC 315/80R22.5 AT161 CHI20.00735.00014,700.00
44411385GC 315/80R22.5 AT161 CHI10.00955.0009,550.00
45421287GC 315/80R22.5 AZ126 CHI60.00735.00044,100.00
46431294GC 315/80R22.5 AZ188 CHI20.00745.00014,900.00
47441294GC 315/80R22.5 AZ188 CHI24.00965.00023,160.00
48451492GC 385/65R22.5 AT131 CHI14.001,275.00017,850.00
49461528TH 185/65R14 H-93 CHI4.00134.000536.00
50471493WL 195/65R15 Z-108 CHI4.00173.000692.00
51481486WL 205/55R16 Z-108 CHI2.00185.000370.00
52TOTAL1,814.001,882,399.00
PURCHASING
Cell Formulas
RangeFormula
D52,F52D52=SUM(D4:D51)
F4:F51F4=D4*E4




transfer.xlsm
ABCDEFGHIJKL
1CODEBRANDUNIT PRICE1UNIT PRICE2
21305BS 700R16 R230 JAP770.000-
3ITEMCODEBRANDQTYUNIT PRICETOTAL1306BS 750R16 R230 JAP775.000780.000
411306BS 750R16 R230 JAP10.00775.0007,750.000
521306BS 750R16 R230 JAP4.00780.0003,120.000
631305BS 700R16 R230 JAP2.00770.0001,540.000
7TOTAL16.0012,410.00
8
SELLING
Cell Formulas
RangeFormula
D7,F7D7=SUM(D4:D6)
F4:F6F4=D4*E4

data in each sheet could be 5000 rows
the match for each brand is choice for column B or C .
thanks
 

Excel Facts

Why does 9 mean SUM in SUBTOTAL?
It is because Sum is the 9th alphabetically in Average, Count, CountA, Max, Min, Product, StDev.S, StDev.P, Sum, VAR.S, VAR.P.

Forum statistics

Threads
1,220,965
Messages
6,157,119
Members
451,398
Latest member
rjsteward

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