naotosx
(Naoto)
1
Hi,
i’ve been triying to write or transform amounts in my excel to take them as values not as string, i mean:
This is my excel
![image](https://global.discourse-cdn.com/uipath/original/3X/b/4/b463d2d8e5731e3a452c4662258afdb126e2ffb9.png)
![image](https://global.discourse-cdn.com/uipath/original/3X/0/4/045d4250259edef233b62a239d3b90374ee607b8.png)
"The number of this cell has text format or is preceded by an apostrophe "
i tried to use Format Value activity but it does not work
There is a way to do this ? i need them as double be cause i need to upload this excel with that column format
My excel:
excel.xls (366.9 KB)
dkollyns
(Diógenes Kollyns )
2
Hello @naotosx
Is this data a DataTable?
naotosx
(Naoto)
3
this come from a .csv from a web page
Use Assign NewDecimal = Convert.Todecimal(“inputString”)
2 Likes
naotosx
(Naoto)
5
Thanks!, you mean like this:
![image](https://global.discourse-cdn.com/uipath/original/3X/9/5/954fc2aae61b90e3365eb6e7583c9066d7420028.png)
Convert.Todecimal(“valor”)
![image](https://global.discourse-cdn.com/uipath/original/3X/e/1/e12c0b21b39588b0a0d506f8ed51c3f56c1ee515.png)
be casue i get this error:
![image](https://global.discourse-cdn.com/uipath/original/3X/7/f/7f263643b9f11c8df13b86b36abcb1f470f47cc0.png)
mmmmm ![:disappointed_relieved: :disappointed_relieved:](https://emoji.discourse-cdn.com/twitter/disappointed_relieved.png?v=12)
dkollyns
(Diógenes Kollyns )
6
@naotosx
Can you share your code ?
naotosx
(Naoto)
7
of course my friend
excel - copia.xlsx (13.7 KB)
Main.xaml (9.8 KB)
dkollyns
(Diógenes Kollyns )
8
@naotosx
See attached, it’s working!
Convert.xaml (12.3 KB)
convert.xlsx (13.7 KB)
Hope it Helps ![:wink: :wink:](https://emoji.discourse-cdn.com/twitter/wink.png?v=12)
2 Likes
naotosx
(Naoto)
9
the decimal character is deleted in the result excel :C
dkollyns
(Diógenes Kollyns )
10
I don’t understand.
Do you need the result as image below ?
that you need
![image](https://global.discourse-cdn.com/uipath/original/3X/6/e/6e9e277bf8c89033d30c19193f06cbd4686a877b.png)
Result
![image](https://global.discourse-cdn.com/uipath/original/3X/f/5/f5362238ba62ef409d9da1402763e5c9be5e08bd.png)
Or do you need the result as Double?
naotosx
(Naoto)
11
yes as the imagen if you take a look you’ll see that e.g 381,95 → result: 38195 but i thiink that i found a way , i’m testing
Main.xaml (147.3 KB)
And it works
. I really apreciate your time and help ![:wink: :wink:](https://emoji.discourse-cdn.com/twitter/wink.png?v=12)
2 Likes
dkollyns
(Diógenes Kollyns )
12
Ok, So check this topic as solved.
Have a good day ![:slight_smile: :slight_smile:](https://emoji.discourse-cdn.com/twitter/slight_smile.png?v=12)
1 Like
system
(system)
Closed
13
This topic was automatically closed 24 hours after the last reply. New replies are no longer allowed.