List to crosstab/broadsheet

timetabler

New Member
Joined
Jun 15, 2010
Messages
27
I am trying to convert a list of data to a crosstab of data (a pivot table doesn't seem to work).

The data in the list I have is:
ID, Subject, Grade
1, Subject1, B
2, Subject 2, C


I want a crosstab of:
ID, Subject1, Subject2, Subject3
1, B, C, B
2, C, D, A

Converting the list via a pivot table gives me a count or sum of values. I have a very quick macro for converting from a crosstab to a list but it seems very difficult to go the other way.
 

Excel Facts

Which lookup functions find a value equal or greater than the lookup value?
MATCH uses -1 to find larger value (lookup table must be sorted ZA). XLOOKUP uses 1 to find values greater and does not need to be sorted.
How exactly does 2 source rows change into 6 result values? I.e. where does the C, B come from on target row 1 and D, A on target row 2?
 
Upvote 0
Apologies! I didn't check my two examples,


The data in the list I have is:
ID, Subject, Grade
1, Subject1, B
1, Sbuject2, C
1, Sbuject3, B
2, Subject 1, C
2, Subject 2, C
2, Subject 3, A

I want a crosstab of:
ID, Subject1, Subject2, Subject3
1, B, C, B
2, C, C, A
 
Upvote 0

Forum statistics

Threads
1,214,925
Messages
6,122,301
Members
449,078
Latest member
nonnakkong

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