Include Index when writing to excel?

Re. the attached screen capture - I’m reading the content of a folder and writing a list to excel. Would like to include the index number of each item in the list (preferably in column A) as well as the items (for later coordination purposes).

Am I missing something?!


You could get the indexes as a list, put in front of your existing (1D) list and then transpose:

1 Like

similar idea, slightly simpler


Once I figured out why my code blocks weren’t working (curly versus square brackets based on Dynamo version), Thomas’ graph worked. Andrew, I’m not sure if it was something I was doing wrong, or something else, but your version only wrote the last entry in the final list into my Excel file.

Thanks all!