How to split value from datatable??
before
01 to 30
01 to 30
01 to 30
01 to 30
01 to 30
01 to 30
01 to 30
01 to 30
After
| 1 | 30 |
|---|---|
| 1 | 30 |
| 1 | 30 |
| 1 | 30 |
| 1 | 30 |
| 1 | 30 |
| 1 | 30 |
| 1 | 30 |
| how to splite |
How to split value from datatable??
before
01 to 30
01 to 30
01 to 30
01 to 30
01 to 30
01 to 30
01 to 30
01 to 30
After
| 1 | 30 |
|---|---|
| 1 | 30 |
| 1 | 30 |
| 1 | 30 |
| 1 | 30 |
| 1 | 30 |
| 1 | 30 |
| 1 | 30 |
| how to splite |
startNumber = Convert.ToInt32(row(“Column_name”).ToString().Split(" “c)(0))
endNumber = Convert.ToInt32(row(“Column_name”).ToString().Split(” "c)(2))
~new.xaml (14.5 KB)
Refer this ,Hope it might helps you
Input:-

Output:-

Xaml file:-
Main.xaml (13.5 KB)
If this solution works for you, please mark it as a solution so others can refer the same…![]()
Thanks
=> Build Data Table

Output-> newDt
=> Read Range Workbook

Output-> dt
Note: Remove Add Headers Option in Read Range Workbook Properties
=> Use below syntax in Assign:
newDt = (From row In dt.AsEnumerable()
Let splitValues = row(0).ToString().Split(" "c).Select(Function(x) x.Trim()).ToArray()
Select newDt.LoadDataRow({splitValues(0), splitValues(2)}, False)).CopyToDataTable()
=> Write Range Workbook newDt

Let me know if you have any queries
Hope it helps!!