Hi Team,
I have one datatable column values some invalid number format came so i want change correct format
Please help me anyone for this
Input:
Expected output:
Regards,
Raja G
Hi Team,
I have one datatable column values some invalid number format came so i want change correct format
Please help me anyone for this
Input:
Expected output:
Regards,
Raja G
HI,
How do we identify decimal separator and thousand separator?
If we can assume they always have two decimal places, how about the following?
Sample
Sample20240626-4.zip (9.6 KB)
Regards,
Hi @Raja.G
=> Read Range Workbook
Output → InputDt
=> Use below syntax in Assign:
InputDt = (From row In InputDt.AsEnumerable()
Let newDesc = If(row("Desc").tostring.Contains(","),row("Desc").ToString.Replace(".", "").Replace(",", "."), row("Desc").ToString)
Select InputDt.Clone().LoadDataRow(New Object() {row("Name"), CDbl(newDesc)}, False)).CopyToDataTable()
=> Write Range Workbook InputDt
into new sheet
Hope it helps!!
This topic was automatically closed 3 days after the last reply. New replies are no longer allowed.