I need to create a file my database publishing software can use but the export from the database is not exactly what I need. I have created a sample file so that you can understand better has to be changed. This is what the export looks like:
But it should look like this:
Filling the empty cells in the Products is easy. But I haven't got a clue how to convert those rows where Groups and Subgroups aren't empty into rows of their own. My first guess was using Table.InsertRows but I can't figure out how to use it since the position isn't regular by any means.
If anybody would like to download my sample file, here's the link:
Download from Box.com
I would be really grateful if someone could help me since the original file contains thousands of rows and doing this manually would take ages.
But it should look like this:
Filling the empty cells in the Products is easy. But I haven't got a clue how to convert those rows where Groups and Subgroups aren't empty into rows of their own. My first guess was using Table.InsertRows but I can't figure out how to use it since the position isn't regular by any means.
If anybody would like to download my sample file, here's the link:
Download from Box.com
I would be really grateful if someone could help me since the original file contains thousands of rows and doing this manually would take ages.