Good Day.
I am trying to split 2 or more words into different cells in Excel.

The desired output is this:

Thank you.
Good Day.
I am trying to split 2 or more words into different cells in Excel.

The desired output is this:

Thank you.
Check with the below linq query:
dt = dt.AsEnumerable().Select(Function(row) dt.Clone.LoadDataRow( { row("TextColumn"), Split(row("TextColumn").ToString(), " "c).ElementAtOrDefault(0), Split(row("TextColumn").ToString(), " "c).ElementAtOrDefault(1), Split(row("TextColumn").ToString(), " "c).ElementAtOrDefault(2) }, False)).CopyToDataTable()
Regards
Word -->Array of String datatype
words=CurrentRow(0).ToString.Split(" "c)
Output

Hope it helps!!
Please check the excel I have attached and also try the xaml I have attached.
Remove the add header’s option in the write range workbook activity and also please check the data table variable you have passed into the write range activity.
Regards
Hi @vrdabberu
Actually I’m using your workflow but I don’t know why it is not working in my end. Do I need to add an activity?
Sequence23.xaml (10.0 KB)
Book1.xlsx (8.7 KB)
Thank you.
Best regards,
Robert
Please change this options in the generate data table activity and give a try:
Regards
Hi @vrdabberu it works! Thank you so much
You’re welcome @RobertRussell_Monsalud
Happy Automation !!
No need of LINQ @RobertRussell_Monsalud
Regards
This topic was automatically closed 3 days after the last reply. New replies are no longer allowed.