Extracting Exam data from Broadsheet but can results be in columns?

jmshillito

New Member
Joined
Jun 18, 2011
Messages
4
Office Version
  1. 365
  2. 2016
Platform
  1. Windows
I have a large broadsheet with exam results. Fluff's answer to dpbarry almost produces what I want:
1636896236862.png

However I would like all a students results to be in one row, using columns for the results rather than consecutive rows:
A B C D E F G
JOE MATHS A BIO C ENGLISH B
MARY BIO D

I tried playing with the loop (r) and (c) variables but got nowhere! Could someone explain how it works?
Here is an extract from my broadsheet:
Student IDMediaSt.GCSEResultMusicGCSEResultPsychologyGCSEResultRESAGCSEResultSpanishGCSEResultStatisticsGCSEResultAccountsCXCResultBiologyCXCResult
G703905210001BEII
F703903019016CI
G703905310042I
G703905210030A*I
 

Excel Facts

VLOOKUP to Left?
Use =VLOOKUP(A2,CHOOSE({1,2},$Z$1:$Z$99,$Y$1:$Y$99),2,False) to lookup Y values to left of Z values.
On further thought, if I I run the original macro is there a way to copy matching values for unique UPNs from rows to columns as below?

G703905310042EDPMCXCResultIII
G703905310042EnglishCXCResultV
G703905310042Food&Nutri.CXCResultIV
G703905310042Human&Soc.Biol.ResultIV
G703905310042ITCXCResultIII
UPN
G703905310042EDPMCXCResultIIIEnglishCXCResultVFood&Nutri.CXCResultIVHuman&Soc.Biol.ResultIVITCXCResultIII
 
Upvote 0

Forum statistics

Threads
1,214,920
Messages
6,122,272
Members
449,075
Latest member
staticfluids

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