Forum Discussion
Ifono78bezeqint
Jun 17, 2021Copper Contributor
Text to Number conversion
Recently I exported my bank statement to an Excel spreadsheet. The export worked fine except that negative values were exported as text not as numbers (bad practice by the bank programmers…). Tried t...
- Jun 19, 2021
Perhaps you copy/pasted your numbers from web or like. Before each "minus" there is non-printable character (unicode 8206).
As variant conversion could be as
=IF(UNICODE(LEFT(B2))=8206,RIGHT(B2,LEN(B2)-1),B2)*1
Ifono78bezeqint
Jun 19, 2021Copper Contributor
Hi JMB17 ,
It sounded promising, but unfortunately didn't work...
In the attached sample I retyped the value of cell B15 in the formula bar, but =VALUE() still evaluated to error.
Thanks!
SergeiBaklan
Jun 19, 2021Diamond Contributor
Perhaps you copy/pasted your numbers from web or like. Before each "minus" there is non-printable character (unicode 8206).
As variant conversion could be as
=IF(UNICODE(LEFT(B2))=8206,RIGHT(B2,LEN(B2)-1),B2)*1
- Ifono78bezeqintJun 19, 2021Copper Contributor
Bingo!
I would have never thought about this...
BTW, the numbers are from an export option of an account statement by a big commercial bank...
Thanks Sergei!
- SergeiBaklanJun 19, 2021Diamond Contributor
Ifono78bezeqint , you are welcome