#1   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 3
Default Change SSN to text

I've read the various messages about how to remove the "-" in a list of SSNs,
using the replace command, but I cannot get it to work. I have a list of
SSNs that I need to convert to a string......222-22-2222 needs to be
222222222. Can someone help me?
  #2   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 3,101
Default Change SSN to text

This should do it.
=SUBSTITUTE(A1,"-","")

"New2EKU" wrote:

I've read the various messages about how to remove the "-" in a list of SSNs,
using the replace command, but I cannot get it to work. I have a list of
SSNs that I need to convert to a string......222-22-2222 needs to be
222222222. Can someone help me?

  #3   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 8,651
Default Change SSN to text

Are you sure that the hyphens are there in a text string? Or is it a number
formatted as SSN?
--
David Biddulph

"New2EKU" wrote in message
...
I've read the various messages about how to remove the "-" in a list of
SSNs,
using the replace command, but I cannot get it to work. I have a list of
SSNs that I need to convert to a string......222-22-2222 needs to be
222222222. Can someone help me?



  #4   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 3
Default Change SSN to text

I need a bit more direction - where do I put the command line? Sorry....

"Mike" wrote:

This should do it.
=SUBSTITUTE(A1,"-","")

"New2EKU" wrote:

I've read the various messages about how to remove the "-" in a list of SSNs,
using the replace command, but I cannot get it to work. I have a list of
SSNs that I need to convert to a string......222-22-2222 needs to be
222222222. Can someone help me?

  #5   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 3,101
Default Change SSN to text

If 222-22-2222 is in cell A1 the put this formula =SUBSTITUTE(A1,"-","")
in cell B1 and drag down.

"New2EKU" wrote:

I need a bit more direction - where do I put the command line? Sorry....

"Mike" wrote:

This should do it.
=SUBSTITUTE(A1,"-","")

"New2EKU" wrote:

I've read the various messages about how to remove the "-" in a list of SSNs,
using the replace command, but I cannot get it to work. I have a list of
SSNs that I need to convert to a string......222-22-2222 needs to be
222222222. Can someone help me?



  #6   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 2,389
Default Change SSN to text

If you want to use the replace command, you do it as follows:
1. Highlight the cells you want to change
2. Click EditReplace...
3. Find what: - [the dash character]
4. Replace with: [don't enter anything here]
5. Click Replace All

Regards,
Fred.

"New2EKU" wrote in message
...
I've read the various messages about how to remove the "-" in a list of
SSNs,
using the replace command, but I cannot get it to work. I have a list of
SSNs that I need to convert to a string......222-22-2222 needs to be
222222222. Can someone help me?


  #7   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 3
Default Change SSN to text

Thanks so much - it worked perfectly!

"Mike" wrote:

If 222-22-2222 is in cell A1 the put this formula =SUBSTITUTE(A1,"-","")
in cell B1 and drag down.

"New2EKU" wrote:

I need a bit more direction - where do I put the command line? Sorry....

"Mike" wrote:

This should do it.
=SUBSTITUTE(A1,"-","")

"New2EKU" wrote:

I've read the various messages about how to remove the "-" in a list of SSNs,
using the replace command, but I cannot get it to work. I have a list of
SSNs that I need to convert to a string......222-22-2222 needs to be
222222222. Can someone help me?

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
Can Text Function change output text color? epiekarc Excel Discussion (Misc queries) 1 December 31st 08 02:58 AM
change the text in the legend of a chart w/o changing pivot text msp Charts and Charting in Excel 2 December 17th 08 08:53 PM
How can I change text to proper text in multiple cells. bethye99 Excel Discussion (Misc queries) 1 January 10th 06 06:17 PM
Change of text or background color doesn't change on the screen. Susan Excel Discussion (Misc queries) 5 July 29th 05 07:18 PM
HOW TO CHANGE BAHTTEXT (THAI TEXT) TO ENGLISH TEXT IN EXCEL BASHIR Excel Worksheet Functions 0 March 29th 05 12:49 PM


All times are GMT +1. The time now is 12:44 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"