Transform data.. pls help!

gato88

New Member
Joined
Feb 10, 2014
Messages
25
Hi

I have a table with the following columns:
CodeNameMaster Code
ATest1125
ATest1983
ATest1608
BTest2452
BTest2367
CTest3195
D..........

<tbody>
</tbody>












I would like to reformat the data in this format:
CodeMaster Code 1Master Code 2Master Code...
A125983608
B452367
C195
D............

<tbody>
</tbody>








I tried using the CrossTab Query function but it comes up with a "too many headers" error.
confused.png

Your assistance is much appreciated. 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.
The first exhibit is in A:C.

The second starts in E and E houses distinct codes of interest.

F2, control+shift+enter, not just enter, copy across, and down:

=IFERROR(INDEX($C$2:$C$100,SMALL(IF($A$2:$A$100=$E2,ROW($C$2:$C$100)-ROW($C$2)+1),COLUMNS($F2:F2))),"")
 
Upvote 0
Crosstabs have a limit of 255 fields. Use Aladin's formula solution in Excel as a workaround.

Denis
 
Upvote 0

Forum statistics

Threads
1,221,902
Messages
6,162,726
Members
451,782
Latest member
LizN

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