Help me write dynamic list in excel cell

I have a list in which no of items is not fixed
for eg
it can be list = { “abc”}
or list = {“wer”, “asd”, “asw”}
or list = {“jkl”, “jml”}

I want to write the list elements in a single cell of excel file separated by |
like
abc
wer|asd|asw
jkl|jml|

Hi @Gaurav07

Use add to dictionary

And use for each item

Print the values

Thanks
Ashwin.S