I have input data in Excel. Please check below attchment.
Output - Copy.xlsx (7.9 KB)
I want to update the data to column
Expected output
I have input data in Excel. Please check below attchment.
Output - Copy.xlsx (7.9 KB)
I want to update the data to column
Expected output
Hi @BNK
→ Read Range Workbook
lines= dt_Input.AsEnumerable().SelectMany(Function(row) row.ItemArray.Select(Function(cell) cell.ToString.Trim())).ToArray()
lines is of DataType Array(System.String)
→ Use For Each loop
For Each currentItem in lines
Assign-> outputString= String.Join("/", currentItem.Split({vbCrLf, vbLf}, StringSplitOptions.RemoveEmptyEntries).Select(Function(line) line.Trim()))
-> Genrate Data Table from Text
Ouput-> dt_Output
-> Append Range Workbook
End For Each
outputString DataType System.String
Sequence11.xaml (10.8 KB)
Output.xlsx (8.3 KB)
Regards
This topic was automatically closed 3 days after the last reply. New replies are no longer allowed.