I found a guy who coded it in c#. I am surprised how easy it seems.
So far the first part of the script is done which fills in empty cells.
sample-data.gh (7.8 KB)
This can be handy if you want to complete the hierarchical list without manually copying identical data