I have two spreadsheets named rawData
and processedData
.
The content of rawData
is as follows:
Status
Title
Options
Live
Title1
Option1, Option2, Option3, Option4
Live
Title2
Option1, Option2, Option3, Option4, Option5
Live
Title3
Option1, Option2, Option3
The expected format for processedData
should be:
Status
Title
Options
Live
Title1
Option1
empty
Title1
Option2
empty
Title1
Option3
empty
Title1
Option4
Live
Title2
Option1
empty
Title2
Option2
empty
Title2
Option3
empty
Title2
Option4
empty
Title2
Option5
Live
Title3
Option1
empty
Title3
Option2
empty
Title3
Option3
The placeholder empty
indicates an empty cell in the spreadsheet.
I've attempted to use the provided code but couldn't achieve the desired output due to issues with the loops and my limited experience in this language.
function formatData() {
// Code snippet here
}
As a newcomer to this programming language, I apologize for posing what may seem like a basic question.