A lecturer from the European School of Physiotherapy in Amsterdam stumbled on a particular script I prepared, hoping it would resolve a problem he had.
After having had a little chit chat, it turned out that he wanted to have a class roster created, that needs to be exported into another program.
This is how the input sheet looks like (example file, Input sheet):
| A | ... | G | H |
|Opleiding | ... | Docent | Klas |
|EPS | ... | bakjj | LP13-23 |
|EPS | ... | bakjj | LP13-21;LP13-22;LP13-23 |
|... | ... | ... | ... |
|EPS | ... | bakjj;elstm | LP13-40 |
and his is how it needs to be (example file, Output 2 sheet):
| A | ... | G | H |
|Opleiding | ... | Docent | Klas |
|EPS | ... | bakjj | LP13-23 |
|EPS | ... | bakjj | LP13-21 |
| | | | LP13-22 |
| | | | LP13-23 |
|... | ... | ... | ... |
|EPS | ... | bakjj | LP13-40 |
| | | elstm | |
How is that done?
See the first two sheets in the example file I prepared: ESP classes row split example
Best Answer
At first, I used plain old formula's to get the job done, see
Output 2
:Looking at the Output 2 sheet, it closely resembles the desired outcome. But, the outcome needs to have the empty lines in between !!
Then I revered to Google Apps Script.
Code
This custom function will do the trick, without any API calls.
Example
See example file I prepared: ESP classes row split example