i have imported some data from an accounting programme, but the numbers have come in as a text string
eg "345 456,54"
i want to remove the spaces and convert so that excel understands it as a number 345456.54
any ideas?
i have imported some data from an accounting programme, but the numbers have come in as a text string
eg "345 456,54"
i want to remove the spaces and convert so that excel understands it as a number 345456.54
any ideas?
To remove the spaces try =SUBSTITUTE(A1," ","")
tried this, didnt work. Any other ideas?
Try CHAR(160)
=--SUBSTITUTE(A1,CHAR(160),"")
If that does not work you need to identify the offending CHAR - using your sample you can do this using: =CODE(MID(A1,4,1))
EDIT: hang on... given you're in the UK:
=--SUBSTITUTE(SUBSTITUTE(A1," ",""),",",".")
Last edited by DonkeyOte; 02-19-2010 at 08:55 AM.
My Recommended Reading:
Volatility
Sumproduct & Arrays
Pivot Intro
Email from XL - VBA & Outlook VBA
Function Dictionary & Function Translations
Dynamic Named Ranges
That's genius! Thanks Donkey, you have saved me a shed load of time today!
There are currently 1 users browsing this thread. (0 members and 1 guests)
Bookmarks