ExcelBanter

ExcelBanter (https://www.excelbanter.com/)
-   Excel Discussion (Misc queries) (https://www.excelbanter.com/excel-discussion-misc-queries/)
-   -   removing dashes changes test into number (https://www.excelbanter.com/excel-discussion-misc-queries/110910-removing-dashes-changes-test-into-number.html)

DanM

removing dashes changes test into number
 
i have columns of numbers like 34510-03220-E0
that the cells DO say are formated as text. how do i remove the dashes
without it changing automaticly into a number format? i want it to read
3451003220E0 not 3.45E+09


Ron Rosenfeld

removing dashes changes test into number
 
On Wed, 20 Sep 2006 18:44:02 -0700, DanM
wrote:

i have columns of numbers like 34510-03220-E0
that the cells DO say are formated as text. how do i remove the dashes
without it changing automaticly into a number format? i want it to read
3451003220E0 not 3.45E+09


I think the SUBSTITUTE function will return a text string without conversion:

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


--ron

Dave Peterson

removing dashes changes test into number
 
Maybe you can use a helper column of cells with formulas like:

=substitute(a1,"-","")



DanM wrote:

i have columns of numbers like 34510-03220-E0
that the cells DO say are formated as text. how do i remove the dashes
without it changing automaticly into a number format? i want it to read
3451003220E0 not 3.45E+09


--

Dave Peterson

Max

removing dashes changes test into number
 
One way ..

Assuming data in A1 down,
try in B1:
=SUBSTITUTE(A1,"-","")
Copy B1 down
--
Max
Singapore
http://savefile.com/projects/236895
xdemechanik
---
"DanM" wrote:
i have columns of numbers like 34510-03220-E0
that the cells DO say are formated as text. how do i remove the dashes
without it changing automaticly into a number format? i want it to read
3451003220E0 not 3.45E+09



All times are GMT +1. The time now is 02:50 PM.

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