Transform my data from multiple lines to one line per student

%3CLINGO-SUB%20id%3D%22lingo-sub-2419677%22%20slang%3D%22en-US%22%3ETransform%20my%20data%20from%20multiple%20lines%20to%20one%20line%20per%20student%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-2419677%22%20slang%3D%22en-US%22%3EI%20need%20to%20transform%20my%20data%20multiple%20grades%20per%20student%20to%20one%20line%20per%20student%20with%20multiple%20columns%20for%20grades.%3CBR%20%2F%3E%3CBR%20%2F%3EFor%20example%3A%3CBR%20%2F%3E%3CBR%20%2F%3E100123456.%20John%20Smith%20PHM%20123%20A%3CBR%20%2F%3E100123456%20John%20Smith%20PHM%20124%20B%3CBR%20%2F%3E100123457.%20John%20Doe.%20PHM%20123%20A%3CBR%20%2F%3E100123457%20John%20Doe%20PHM%20124%20C%3CBR%20%2F%3E%3CBR%20%2F%3ETransformed%20into%3A%3CBR%20%2F%3EID.%20FN.%20LN.%20PHM%20123.%20PHM%20124%3CBR%20%2F%3E100123456%20John%20Smith%20A.%20B%3CBR%20%2F%3E100123457.%20John%20Doe.%20A.%20C%3CBR%20%2F%3E%3C%2FLINGO-BODY%3E%3CLINGO-LABS%20id%3D%22lingo-labs-2419677%22%20slang%3D%22en-US%22%3E%3CLINGO-LABEL%3EExcel%3C%2FLINGO-LABEL%3E%3C%2FLINGO-LABS%3E%3CLINGO-SUB%20id%3D%22lingo-sub-2419708%22%20slang%3D%22en-US%22%3ERe%3A%20Transform%20my%20data%20from%20multiple%20lines%20to%20one%20line%20per%20student%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-2419708%22%20slang%3D%22en-US%22%3E%3CP%3E%3CA%20href%3D%22https%3A%2F%2Ftechcommunity.microsoft.com%2Ft5%2Fuser%2Fviewprofilepage%2Fuser-id%2F1072102%22%20target%3D%22_blank%22%3E%40Drpstone%3C%2FA%3E%26nbsp%3BPower%20Query%20can%20transform%20this%20into%20the%20format%20you%20need.%20But%20first%20you%20need%20to%20convert%20your%20data%20to%20an%20Excel%20table.%20Check%20out%20Mike%20Girvin%20'Excel%20is%20Fun'%20on%20You%20Tube%20for%20tutorials%20on%20how%20to%20do%20this.%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-2419718%22%20slang%3D%22en-US%22%3ERe%3A%20Transform%20my%20data%20from%20multiple%20lines%20to%20one%20line%20per%20student%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-2419718%22%20slang%3D%22en-US%22%3EMy%20data%20is%20already%20in%20an%20excel%20table.%20Is%20there%20a%20specific%20video%20you%20can%20direct%20me%20to%3F%20I%E2%80%99ve%20been%20searching%20and%20I%20haven%E2%80%99t%20found%20the%20particular%20video.%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-2419721%22%20slang%3D%22en-US%22%3ERe%3A%20Transform%20my%20data%20from%20multiple%20lines%20to%20one%20line%20per%20student%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-2419721%22%20slang%3D%22en-US%22%3EAlso%2C%20I%20can%20create%20a%20table%20using%20power%20query%20in%20multiple%20steps.%20I%E2%80%99m%20looking%20for%20an%20easier%20process.%20And%20a%20way%20to%20create%20a%20formula%20to%20count%20specific%20highlight%20specific%20grade%20combinations.%3C%2FLINGO-BODY%3E
Occasional Contributor
I need to transform my data multiple grades per student to one line per student with multiple columns for grades.

For example:

100123456. John Smith PHM 123 A
100123456 John Smith PHM 124 B
100123457. John Doe. PHM 123 A
100123457 John Doe PHM 124 C

Transformed into:
ID. FN. LN. PHM 123. PHM 124
100123456 John Smith A. B
100123457. John Doe. A. C
9 Replies

@Drpstone Power Query can transform this into the format you need. But first you need to convert your data to an Excel table. Check out Mike Girvin 'Excel is Fun' on You Tube for tutorials on how to do this.

My data is already in an excel table. Is there a specific video you can direct me to? I’ve been searching and I haven’t found the particular video.
Also, I can create a table using power query in multiple steps. I’m looking for an easier process. And a way to create a formula to count specific highlight specific grade combinations.

@Drpstone Perhaps the attached file holds a solution that works for your. One with Power Pivot and one with Power Query. I didn't pay much attention to making the column headers nice, but that's something easily adjusted. Neither of them is very complicated.

 

@Drpstone This an introduction to PQ and Power Pivot https://youtu.be/ohGFPF12Qwc

 

Download Excel File #1: https://excelisfun.net/files/EMT1468.xlsm Download Excel File #2: https://excelisfun.net/files/EMT1468Finished.xlsmDownload Zipped Fo...

@Riny_van_Eekelen 

 

Yes...that's it.  How did you do it?  I'm a newbie and figuring out most things by trial and error.  Can you send the steps? Or a link to a youtube video with the steps explained.

 

Thanks,

Phyllis

 

 

A quick method I use if I'm in a rush is it send the data to pivot table, format how I like. Then copy/paste to a new worksheet. I guess it depends how frequently you are going to need to do this. If you're going to do this regularly PQ is the way to go. But it's worth thinking about how PQ gets and transforms your data first. PQ can get your files from folders, refresh and you're done. However you need to set this process up first to tell PQ where your file is, what transformations you want to make. Then you can update the file each week/month, refresh and it will update your grade combinations.

@Drpstone The Power Query (PQ) solution requires only two steps. Connect to the (structured) table.Unpivot without aggregation. Perhaps a good idea to learn more about the basics from the attached link.

https://exceloffthegrid.com/power-query-introduction/ 

I can't really explain it better myself. Then you can follow the "applied steps" in the file that I sent earlier. 

Thanks!!! Looks like I need to view a few basic videos to get me on first base. This is helpful!

Phyllis