I have some amount in a Excel but I have to check if amount have any dollar symbols or not .
If any symbols are available need to remove the symbols and also need to check if amount contains common or not .
For example amounts are 1500 or 15000.22 or 155000.12 like this
Based on amount I need to add comma
Output will be 1,500.00 , 15,000.22 and 1,55,000.12 like this
One more example like ₹1200.09 and €3294.54 , ₹223450 like this
Need to remove any symbols before the amount and output will be 1,200.09 and 3,294.54 and 2,23,450.00 like this .
hello @Baby123
you can try to use this to remove any kind of non characters present in string
System.Text.RegularExpressions.Regex.Replace(text, “\W”,“”)
and to add comas you can use this.
formattedValue(variable as String data type) = CDbl(“your value”).ToString(“#,#.00”, System.Globalization.CultureInfo.CreateSpecificCulture(“hi-IN”))
It’s working in regex website but when try to execute in UiPath studio i am not getting exact value .
Attached is the screenshot for your reference kindly suggest.
Input is 9999 output is 9,999.00
Input 99999.00 - output is 9,99,99.00
If any symbols like dollar or rupees is available before the input amount like
₹999 output - 999.00
₹9999 output - 9,999.00
₹99999 output - 9,99,999.00
Sometimes I am getting correct format like 999.00 or 9,999.00 or 9,99,999.00 like this
No need to change the input values .