+ Reply to Thread
Results 1 to 4 of 4

SSN formatting problem

  1. #1
    Registered User
    Join Date
    04-13-2006
    Location
    Boston, MA
    Posts
    73

    SSN formatting problem

    Seeking help with SSN formatting. I imported a file, lost the leading zero in the ssn, fixed it this way:

    cell D18 99999999

    using formula: =RIGHT("000000000" & D18,9) gave me

    099999999, BUT, for the life of me I cannot get the cell to show 099-99-9999

    I tried custom format , paste special "value" and format cell special social security number, right clicking & SSN format, looked here for answers, and cannot find a solution.

    Is this one of those things Excel cannot do?

    Any help is appreciated.

    Thanks.

  2. #2
    Forum Expert
    Join Date
    12-29-2004
    Location
    Michigan, USA
    MS-Off Ver
    2013
    Posts
    2,208
    I think Excel needs to recognize the cell as a value, rather than text. Using the LEFT/RIGHT/MID functions returns text, so instead of:

    =RIGHT("000000000" & D18,9)

    Use:

    =VALUE(RIGHT("000000000" & D18,9))

    HTH

    Jason

  3. #3
    Registered User
    Join Date
    04-13-2006
    Location
    Boston, MA
    Posts
    73
    Quote Originally Posted by jasoncw
    I think Excel needs to recognize the cell as a value, rather than text. Using the LEFT/RIGHT/MID functions returns text, so instead of:

    =RIGHT("000000000" & D18,9)

    Use:

    =VALUE(RIGHT("000000000" & D18,9))

    HTH

    Jason
    Jason,

    Dang, that's the trick!! Using value in the formula I can apply SSN format & the dashes show up.

    Thanks SO MUCH for posting your reply.

    I truly appreciate it.

    Mark
    aka LTUser
    Boston, MA

  4. #4
    Forum Expert
    Join Date
    12-29-2004
    Location
    Michigan, USA
    MS-Off Ver
    2013
    Posts
    2,208
    Glad it helped, Mark.

    Jason

+ Reply to Thread

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts

Search Engine Friendly URLs by vBSEO 3.6.0 RC 1