ExcelBanter

ExcelBanter (https://www.excelbanter.com/)
-   Excel Discussion (Misc queries) (https://www.excelbanter.com/excel-discussion-misc-queries/)
-   -   How to change text into number? (https://www.excelbanter.com/excel-discussion-misc-queries/178253-how-change-text-into-number.html)

Eric

How to change text into number?
 
In cell A1, there is "1,425.06B".
=SUBSTITUTE(A1,"B","")
Once I remove the B in cell A1, and it return 1,425.06 in cell B1.
When I click the - .0 button to hide the last two digits, it does not work.
Maybe it shows as a text rather than a number.
Does anyone have any suggestions on how to change this text into number? so
I can use the button - .0.
Thanks in advance for any suggestions
Eric

Conan Kelly

How to change text into number?
 
Eric,

See if =VALUE(A1) will work for you.

HTH,

Conan




"Eric" wrote in message
...
In cell A1, there is "1,425.06B".
=SUBSTITUTE(A1,"B","")
Once I remove the B in cell A1, and it return 1,425.06 in cell B1.
When I click the - .0 button to hide the last two digits, it does not
work.
Maybe it shows as a text rather than a number.
Does anyone have any suggestions on how to change this text into number?
so
I can use the button - .0.
Thanks in advance for any suggestions
Eric




Ron Rosenfeld

How to change text into number?
 
On Thu, 28 Feb 2008 16:44:01 -0800, Eric
wrote:

In cell A1, there is "1,425.06B".
=SUBSTITUTE(A1,"B","")
Once I remove the B in cell A1, and it return 1,425.06 in cell B1.
When I click the - .0 button to hide the last two digits, it does not work.
Maybe it shows as a text rather than a number.
Does anyone have any suggestions on how to change this text into number? so
I can use the button - .0.
Thanks in advance for any suggestions
Eric


=--SUBSTITUTE(A1,"B","")

should change it to numeric if what you write is so.
--ron

Cimjet[_2_]

How to change text into number?
 
Hi Eric
The formula to change text to number is =VALUE(C1)and to check if its
formated has number type =isnumber(c1) it should return ( TRUE)
Regards
Cimjet
"Eric" wrote in message
...
In cell A1, there is "1,425.06B".
=SUBSTITUTE(A1,"B","")
Once I remove the B in cell A1, and it return 1,425.06 in cell B1.
When I click the - .0 button to hide the last two digits, it does not
work.
Maybe it shows as a text rather than a number.
Does anyone have any suggestions on how to change this text into number?
so
I can use the button - .0.
Thanks in advance for any suggestions
Eric



Gord Dibben

How to change text into number?
 

=SUBSTITUTE(A1,"B","")*1


Gord Dibben MS Excel MVP

On Thu, 28 Feb 2008 16:44:01 -0800, Eric wrote:

In cell A1, there is "1,425.06B".
=SUBSTITUTE(A1,"B","")
Once I remove the B in cell A1, and it return 1,425.06 in cell B1.
When I click the - .0 button to hide the last two digits, it does not work.
Maybe it shows as a text rather than a number.
Does anyone have any suggestions on how to change this text into number? so
I can use the button - .0.
Thanks in advance for any suggestions
Eric




All times are GMT +1. The time now is 07:11 AM.

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