Problem:
I have a datatable column where I would need a specific data(substring) from it. The specific data would then be placed in another datatable column.
Given:
How can I create a datatable column(ID) like this? Without using loops or formulas in excel where I would be placing the datatable?
DataTableVariable2 = (From x In DataTableVariable1.AsEnumerable()
Select DataTableVariable1.Clone.Rows.Add({x(“Account”),convert.ToString(x(“Account”)).split("-"c)(1).Substring(0,3)})).copytodatatable