LinkBack Thread Tools Search this Thread Display Modes
Prev Previous Post   Next Post Next
  #4   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 8,651
Default Need to change numbers with dashes to numbers with no dashes

Are your "numbers" text strings, or are they numbers formatted in special
ways?
If stored as text, all you need to do is =SUBSTITUTE(A1,"-","") to get rid
of the hyphens, and you'll still be left with a text string so won't lose
the leading zeroes.
If you've got SSN stored as a number and formatted to show the hyphens, then
=TEXT(A1,"000000000") would give you leading zeroes padded out to 9 digits.
--
David Biddulph


"cheryltraining" wrote in message
...
The spreadsheet we're working has social security numbers and phone
numbers
with dashes included. Need to remove dashes and not lose the leading zero
in
the SSN.



 
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
ADDING DASHES WITHIN NUMBERS IN A COLUMN paulp Excel Discussion (Misc queries) 2 April 18th 08 03:48 PM
Adding columns containing numbers with dashes Randi New Users to Excel 6 September 7th 07 05:40 PM
removing dashes from numbers Pat Jones Excel Worksheet Functions 8 June 21st 07 08:44 PM
Convert phone numbers with dashes in them to just numbers J H Excel Discussion (Misc queries) 2 June 23rd 06 06:56 PM
Convert phone numbers with dashes in them to just numbers J H Excel Discussion (Misc queries) 2 June 23rd 06 02:40 AM


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

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

About Us

"It's about Microsoft Excel"