Hi i have an excel data, i want to remove currency in total column like – from 245866 USD to output should like 245866
invoiceData.xlsx (20.4 KB)
Hi i have an excel data, i want to remove currency in total column like – from 245866 USD to output should like 245866
invoiceData.xlsx (20.4 KB)
After reading data in Studio, you can use split function in the loop like below;
CurrentRow.Item(“Total”).ToString.Split({" "},StringSplitOptions.None).ToArray(0).ToString
Regards.
You can use Read Range to read the excel file as Datatable and use this LINQ to remove the currency using this LINQ:
dtInvoices = dtInvoices.AsEnumerable().[Select](Function(row)
row("Total") = System.Text.RegularExpressions.Regex.Replace(row("Total").ToString(), "[^\d.]", "")
Return row
End Function).CopyToDataTable()
Invoke code argument should be like this.
Before:
After:
This topic was automatically closed 3 days after the last reply. New replies are no longer allowed.