Number formating

G

Guest

I have a column of numbers, all 6 digit. Some of the numbers are six digit
with a dash in between the third and fourth digit

Ex.
123-456
122-451
122771
122458
233-564

....and so on

Is there a way to remove the dashes from these numbers that have dashes and
leave the other ones alone? What I want is this column to not have any
dashes.
is concentate the formula to use??

Thanks
 
R

Ron Rosenfeld

I have a column of numbers, all 6 digit. Some of the numbers are six digit
with a dash in between the third and fourth digit

Ex.
123-456
122-451
122771
122458
233-564

...and so on

Is there a way to remove the dashes from these numbers that have dashes and
leave the other ones alone? What I want is this column to not have any
dashes.
is concentate the formula to use??

Thanks


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


--ron
 
G

Guest

Use find/replace:

1. Select the cells you want updated ( or the whole column)
2. Pull-down Edit > Find and enter the - in the findwhat field
3. Click on the Replace tab and enter nothing in the replacewith field
4. Click Replace All
 
V

Vito

Use this formula in adjacent column,

=SUBSTITUTE(A1,"-",""), where A1 contains the first value to check for
dashes.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top