Reading Currency columns from excel

In excel I have a table with a few fields (example below)


The salary column is of type currency ad the different currencies are defined in the cell types as shown below


When reading the row from Excel, it appears to know its of type currency but always forces it to Dollars $

See a log of the output

How do you get it to read the currency type from excel not default to $?

Hi,

Here is the output:-
image

Please find the attached xaml file.
read currency type forum.zip (9.5 KB)

Thanks

This example needs to be done using the modern excel scope as its being developed by a colleague in studiox

1 Like

Hi Joshua,

This is going to be a workaround, but since UiPath reads the table with a default currency type, maybe you can try “Find/Replace Value” activity first and try to find the currency symbols. And then replace them with the same string that they have. This way, you will overwrite the currency value with a string and the new value is going to be the type of a string. After that, you might read the string as it is.

Hope this helps,

Best Regards,
Kardelen

This work around method I’d end up suggesting to update the excel to be a number only and separate field for currency if UiPath can’t read the actual currency type.

Thanks for the suggestion

1 Like

@Joshua_Allan_0

Did you try with read formatting display value?

cheers

The difficulty there is that the currency will change on different lines and it appears you need to define which currency format so was a dead end

@Joshua_Allan_0

if that is the case then from excel you anyways cannot get single format…

you can define rules in your code to identify the current type…by using switch case and check each row for its currency and proceed accordingly

cheers