We can’t read your screenshot but I’d recommend GroupByKey to group all types together. Then you’ll want to create a matching list of families to get the excel structure you’re after. The difference with the family list being that you only have the family name once per type and then add blank strings for each additional type under that family.
The key is that you have to use excel’s data structure. Each sublist of items is a row of values. So each sublist should be the family name (or blank) followed by the type name.
Rajesh
the script you shared is working perfectly.
I think the magic lies in List.ReplaceItemAtIndex python script.
I tried the default List.ReplaceItemAtIndex node is not working in this case.
Yeah I too tried to work with levels and lacing in that node but could not do it, the python code for this one is actually very simple, I’m also just beginner learning python, ChatGPT helps a lot, I have learned so much from that.