How to transpose excel data?

deadeye123

New Member
Joined
Dec 27, 2016
Messages
10
the way i have it displayed is like below:


[TABLE="width: 448"]
<tbody>[TR]
[TD="width: 84"]Customer[/TD]
[TD="width: 44"]code1[/TD]
[TD="width: 64"]code2[/TD]
[TD="width: 64"]code3[/TD]
[TD="width: 64"]code4[/TD]
[TD="width: 64"]code5[/TD]
[TD="width: 64"]code6[/TD]
[/TR]
[TR]
[TD="class: xl63"]A[/TD]
[TD="align: right"]3[/TD]
[TD="align: right"]508[/TD]
[TD="align: right"]120[/TD]
[TD="align: right"]325[/TD]
[TD="align: right"]633[/TD]
[TD="align: right"]573[/TD]
[/TR]
[TR]
[TD="class: xl63"]M[/TD]
[TD="align: right"]416[/TD]
[TD="align: right"]146[/TD]
[TD="align: right"]631[/TD]
[TD="align: right"]184[/TD]
[TD="align: right"]643[/TD]
[TD="align: right"]771[/TD]
[/TR]
[TR]
[TD="class: xl63"]W[/TD]
[TD="align: right"]511[/TD]
[TD="align: right"]45[/TD]
[TD="align: right"]730[/TD]
[TD="align: right"]307[/TD]
[TD="align: right"]79[/TD]
[TD="align: right"]715[/TD]
[/TR]
[TR]
[TD="class: xl63"]S[/TD]
[TD="align: right"]636[/TD]
[TD="align: right"]303[/TD]
[TD="align: right"]647[/TD]
[TD="align: right"]75[/TD]
[TD="align: right"]558[/TD]
[TD="align: right"]330[/TD]
[/TR]
[TR]
[TD="class: xl63"]R[/TD]
[TD="align: right"]61[/TD]
[TD="align: right"]150[/TD]
[TD="align: right"]98[/TD]
[TD="align: right"]459[/TD]
[TD="align: right"]433[/TD]
[TD="align: right"]799[/TD]
[/TR]
[TR]
[TD="class: xl63"]O[/TD]
[TD="align: right"]557[/TD]
[TD="align: right"]445[/TD]
[TD="align: right"]156[/TD]
[TD="align: right"]383[/TD]
[TD="align: right"]131[/TD]
[TD="align: right"]323[/TD]
[/TR]
[TR]
[TD="class: xl63"]D[/TD]
[TD="align: right"]402[/TD]
[TD="align: right"]472[/TD]
[TD="align: right"]61[/TD]
[TD="align: right"]58[/TD]
[TD="align: right"]162[/TD]
[TD="align: right"]739[/TD]
[/TR]
[TR]
[TD="class: xl63"]X[/TD]
[TD="align: right"]743[/TD]
[TD="align: right"]70[/TD]
[TD="align: right"]249[/TD]
[TD="align: right"]776[/TD]
[TD="align: right"]229[/TD]
[TD="align: right"]648[/TD]
[/TR]
[TR]
[TD="class: xl63"]Q[/TD]
[TD="align: right"]619[/TD]
[TD="align: right"]419[/TD]
[TD="align: right"]733[/TD]
[TD="align: right"]556[/TD]
[TD="align: right"]35[/TD]
[TD="align: right"]495[/TD]
[/TR]
[TR]
[TD="class: xl63"]O[/TD]
[TD="align: right"]372[/TD]
[TD="align: right"]563[/TD]
[TD="align: right"]34[/TD]
[TD="align: right"]123[/TD]
[TD="align: right"]83[/TD]
[TD="align: right"]776[/TD]
[/TR]
[TR]
[TD="class: xl63"]U[/TD]
[TD="align: right"]493[/TD]
[TD="align: right"]247[/TD]
[TD="align: right"]211[/TD]
[TD="align: right"]654[/TD]
[TD="align: right"]731[/TD]
[TD="align: right"]150[/TD]
[/TR]
[TR]
[TD="class: xl63"]V[/TD]
[TD="align: right"]631[/TD]
[TD="align: right"]530[/TD]
[TD="align: right"]373[/TD]
[TD="align: right"]386[/TD]
[TD="align: right"]132[/TD]
[TD="align: right"]236[/TD]
[/TR]
[TR]
[TD="class: xl63"]B[/TD]
[TD="align: right"]426[/TD]
[TD="align: right"]726[/TD]
[TD="align: right"]498[/TD]
[TD="align: right"]689[/TD]
[TD="align: right"]480[/TD]
[TD="align: right"]4[/TD]
[/TR]
[TR]
[TD="class: xl63"]W[/TD]
[TD="align: right"]270[/TD]
[TD="align: right"]599[/TD]
[TD="align: right"]709[/TD]
[TD="align: right"]49[/TD]
[TD="align: right"]79[/TD]
[TD="align: right"]355[/TD]
[/TR]
</tbody>[/TABLE]


I like to have each customer on a row and their codes in rows as well instead of having them in columns as the picture below:

Customer code
A 3
A 508
A 120

and so on.

what is the best way to do this? i tried transposing but it's still a manual process.

Thanks!!
 
Last edited:

Excel Facts

Round to nearest half hour?
Use =MROUND(A2,"0:30") to round to nearest half hour. Use =CEILING(A2,"0:30") to round to next half hour.

Forum statistics

Threads
1,223,903
Messages
6,175,284
Members
452,630
Latest member
OdubiYouth

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