Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 1
Default Working with social security numbers

I am trying to remove the hyphen from between social security numbers;I'm
able to do so using the 'text to column' function, but I am having a problem
with those numbers that are preceded by 0's eg : 001-23-0077 the function is
dropping the zero's and returning 1-23-77....
  #2   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 35,218
Default Working with social security numbers

And you want to separate the SSN into three separate columns?

You can still use data|text to columns, but make sure you specify that each
column is Text (not General).



Andre F wrote:

I am trying to remove the hyphen from between social security numbers;I'm
able to do so using the 'text to column' function, but I am having a problem
with those numbers that are preceded by 0's eg : 001-23-0077 the function is
dropping the zero's and returning 1-23-77....


--

Dave Peterson
  #3   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 17
Default Working with social security numbers

On 2/24/2010 2:03 PM, Andre F wrote:
I am trying to remove the hyphen from between social security numbers;I'm
able to do so using the 'text to column' function, but I am having a problem
with those numbers that are preceded by 0's eg : 001-23-0077 the function is
dropping the zero's and returning 1-23-77....


Assuming the ssn's are entered as text, use the Replace command to
replace - with nothing.

Be sure to select the range with just the ssn's before using this
command or you'll get rid of all the dashes in your worksheet.

Bill
  #4   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 5,939
Default Working with social security numbers

have you tired using Find and Replace (Ctrl + H)
--
HTH...

Jim Thomlinson


"Andre F" wrote:

I am trying to remove the hyphen from between social security numbers;I'm
able to do so using the 'text to column' function, but I am having a problem
with those numbers that are preceded by 0's eg : 001-23-0077 the function is
dropping the zero's and returning 1-23-77....

  #5   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 35,218
Default Working with social security numbers

Other options...

Select the range to fix
Use Edit|Replace
what: - (hyphen)
with: (leave blank)
replace all

This will drop the leading 0's, too.

But you could use a custom format of: 000000000
so the data looks nice.

You could also use a formula in another cell (or column of cells):
=substitute(a1,"-","")
(and drag down)

This will keep the leading 0's and the values will be text.

Andre F wrote:

I am trying to remove the hyphen from between social security numbers;I'm
able to do so using the 'text to column' function, but I am having a problem
with those numbers that are preceded by 0's eg : 001-23-0077 the function is
dropping the zero's and returning 1-23-77....


--

Dave Peterson
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
remove dashs from social security numbers Hemi Excel Discussion (Misc queries) 4 December 18th 08 10:48 PM
social security numbers in Excel MelissaC Excel Discussion (Misc queries) 3 August 17th 06 07:27 PM
Unformating social security numbers annep Excel Discussion (Misc queries) 4 August 5th 06 09:41 PM
Social Security numbers Hernan New Users to Excel 5 August 11th 05 08:14 PM
social security numbers Jean Excel Worksheet Functions 4 March 7th 05 07:37 PM


All times are GMT +1. The time now is 03:21 AM.

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"