17-02-24 03:54 PM
I would like to count differnece betwen past day price and current price of BTC.
I think that the problem might be with "$" and "," in my text data. What should I do to fix this? My idea with ToNumber Doesn't work.
Answered! Go to Answer.
18-02-24 03:45 AM
Hello Norbert,
You are thinking correctly, you can't cast that when there's a character that is not a number. You can solve that by simply using a nested function
ToNumber(Replace([BTC Past Day Price ],"$",""))
Before convert, you have to replace the characters that are not a number.
Regards
18-02-24 03:45 AM
Hello Norbert,
You are thinking correctly, you can't cast that when there's a character that is not a number. You can solve that by simply using a nested function
ToNumber(Replace([BTC Past Day Price ],"$",""))
Before convert, you have to replace the characters that are not a number.
Regards
18-02-24 10:18 PM
Thank you very much for your help!
27-03-24 06:51 AM
You can also do it without replacing any characters:
ToNumber(Right([BTC Past Day Price],Len([BTC Past Day Price])-1))
This is assuming that the dollar sign will always be present, and as the first character from the left.
If it's variable, then you will need to use InStr() to find it first, and then calculate how many characters to use based on its location.