ExcelBanter

ExcelBanter (https://www.excelbanter.com/)
-   Excel Worksheet Functions (https://www.excelbanter.com/excel-worksheet-functions/)
-   -   How can I convert text to number? (https://www.excelbanter.com/excel-worksheet-functions/188359-how-can-i-convert-text-number.html)

northerner

How can I convert text to number?
 

--
Have a great day!

Niek Otten

How can I convert text to number?
 
That depends on what you mean with that.There is no easy way to convert "twenty-five" to 25.

Here's a standard text:
· Format an empty cell as Number. Enter the number 1 in it. EditCopy.
Select your "numbers". EditPaste Special, check Multiply. Hopefully your cells are "real" Numbers now
· If that doesn't help, there may be spaces in your "numbers". You can use the LEN() function to compare the number
of characters that Excel sees in the cell with the number of characters you see. If you suspect spaces, use Excel's TRIM()
function to remove them
· If that doesn't help, there may be nonprintable characters in your "numbers". You can use Excel's CLEAN() function
to remove most of them
· If that doesn't help, there may be non-breaking spaces in your "numbers" (mostly acquired from Web Pages). Use
David McRitchie's TRIMALL() function to remove them. It can be downloaded he
http://www.mvps.org/dmcritchie/excel/join.htm#trimall

Look at the VALUE() function too
--
Kind regards,

Niek Otten
Microsoft MVP - Excel


"northerner" wrote in message ...
|
| --
| Have a great day!




All times are GMT +1. The time now is 05:04 PM.

Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
ExcelBanter.com