LinkBack Thread Tools Search this Thread Display Modes
Prev Previous Post   Next Post Next
  #10   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 3,572
Default How do I add a 0 and 2 dashes to a truncated soc. sec.# in a c

Have you tried formatting the cells as SSN?

If your column of numbers are true numbers,
Select the column, then,
<Format <Cells <Number tab,
Click on "Special" in the left window,
Then click on "Social Security Number" in the right window.

This will *add* leading 0's and dashes.

If your numbers are 'Text',
Right click in a new, empty, unused cell, and choose "Copy",
Select the column of numbers and right click in the selection,
Choose "Paste Special",
Then click on "Add", then <OK.

You NOW have true numbers, so you can now format as above, to SSN.
--
HTH,

RD

---------------------------------------------------------------------------
Please keep all correspondence within the NewsGroup, so all may benefit !
---------------------------------------------------------------------------

"Allan" wrote in message
...

Timm...I will experiment with your solution too...you guys are good.
Thanks
"tim m" wrote:

After a bit of experimentaion this seemed to do the job.

=CONCATENATE("0",LEFT(A1,2),"-",MID(A1,3,2),"-",RIGHT(A1,4))

"Allan" wrote:

I have a spreadsheet that has social security numbers (SSN) in a
column. The
numbers are missing the leading zeros and the two dashes for the SSN
format
(i.e. the number is XXXXXXXX instead of 0XX-XX-XXXX. If you look in the
cell,
the you see only 8 numbers, but when you format you of course see the
SSN
format...000-00-0000. I need to add the leading zero and then the two
dashes
(this because I am transferring the numbers to another software
package).

My data set is large..manual entry will take forever.

Any ideas are welcome.




 
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
insert date Larry Excel Worksheet Functions 28 July 15th 06 02:41 AM
Cell Format & Dashes AngieM Excel Discussion (Misc queries) 4 June 29th 06 03:11 PM
Urgent date/scheduling calc needed jct Excel Worksheet Functions 3 February 24th 06 01:36 AM
Possible Lookup Table Karen Excel Worksheet Functions 5 June 8th 05 09:43 PM
Copy cell format to cell on another worksht and update automatical kevinm Excel Worksheet Functions 21 May 19th 05 11:07 AM


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