I am looking to convert a set of data in this format into an object that I can use to help update google form choices. However, I am stumped.
As per a comment below, I would like to add some clarity. The values in row 1 define a year group and until another number appears in row 1, all columns belong to that year group.
However, the only data that needs to be returned for each day (row 2) is the column that contains 'Form Display'.
Columns containing 'capacity' and '#registered' are to be ignored and there may be some values underneath those letters.
Here is the google sheet.
I would like this to be converted into an object as follows:
[
{'Year group': Year 5,
'Sunday': ['Girls football', 'Mixed Gaelic football', 'Science experiments', 'library club'...],
'Monday': ['Boys football','Netball],
'Wednesday': ['Taekwondo', 'School choir', 'Mixed basketball', 'Lego', 'Board games']
},
{'Year group': Year 6,
'Sunday': ['Girls football', 'mixed gaelic football', 'science experiments', 'library club'...],
},
Thank you!
