Hi all
Here I have a sample of a large file I got for people taking a certain class.
Name Class 1 Class 2 Class 3 Class 4 Class 5
George MO1 TU3
Amy MO2 TU4 WE3
Michael MO7
MOrk MO8 WE1
Eric MO16
James MO17 TU3 FI1 SA1 MO2
Paul MO18
Now what I would like excel to do is that for example for Amy (she takes 3 classes) 2 extra rows are inserted and copied so that the table looks like this:
Name Class 1 Class 2 Class 3 Class 4 Class 5
George MO1 TU3
Amy MO2 TU4 WE3
Amy TU4 TU4 WE3
Amy WE3 TU4 WE3
Michael MO7
MOrk MO8 WE1
Eric MO16
James MO17 TU3 FI1 SA1 MO2
Paul MO18
Like this I can eventually delete the other classes and only keep column class 1.
Is it possible to let excel run through the file, see how much classes a person takes and then put these in the first column?
Thanks in advance
Bookmarks