Inserting Sublists

I’m trying to figure out with no luck how to to split a list and then replace the existing list with the specified sublists. Below is an image to show what i mean


So the List on the left displays when there is 2 or more items related to a button in fabrication. The list on the right correlates to the 2 names associated. How do i take the list to the right and where the arrows go create a sublist with the values the arrows go with. Where it shows 2 to the left would be a sublist to the indexed match up. I also need to make it generic so if the 2 is in another location it will also create a sublist in its spot. I hope im explaining it clearly.

Sounds like you’re looking for List.Chop …

1 Like

What he said:

1 Like

Perfect, thanks for the help Andreas and Jostein!