#1   Report Post  
Posted to microsoft.public.excel.misc
croozer
 
Posts: n/a
Default Number formating

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


  #2   Report Post  
Posted to microsoft.public.excel.misc
Ron Rosenfeld
 
Posts: n/a
Default Number formating

On Tue, 29 Nov 2005 11:01:05 -0800, "croozer"
wrote:

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
  #3   Report Post  
Posted to microsoft.public.excel.misc
Gary''s Student
 
Posts: n/a
Default Number formating

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
--
Gary's Student


"croozer" wrote:

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


  #4   Report Post  
Posted to microsoft.public.excel.misc
Vito
 
Posts: n/a
Default Number formating


Use this formula in adjacent column,

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


--
Vito
------------------------------------------------------------------------
Vito's Profile: http://www.excelforum.com/member.php...o&userid=29182
View this thread: http://www.excelforum.com/showthread...hreadid=489162

  #5   Report Post  
Posted to microsoft.public.excel.misc
croozer
 
Posts: n/a
Default Number formating

Wow, what a fast response, thanks a whole bunch!





Reply
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules

Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
vlookup with more than number to be retrieved martelie Excel Worksheet Functions 1 October 8th 05 07:33 AM
Count Number of Characters in a cell? AHJuncti Excel Discussion (Misc queries) 2 June 16th 05 07:39 PM
Need number of Saturdays and number of Sundays between 2 dates Class316 Excel Worksheet Functions 1 June 10th 05 02:47 AM
Formating a number Tray Excel Discussion (Misc queries) 3 February 3rd 05 02:19 PM
How to format a number in Indian style in Excel? Victor_alb Excel Discussion (Misc queries) 2 December 21st 04 04:21 AM


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

Powered by vBulletin® Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
Copyright ©2004-2024 ExcelBanter.
The comments are property of their posters.
 

About Us

"It's about Microsoft Excel"