Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.misc
CLR CLR is offline
external usenet poster
 
Posts: 1,998
Default Social Security Number formatting

Try this one.........

=LEFT(A1,3)&"-"&MID(A1,3,2)&"-"&"XXXX"

Vaya con Dios,
Chuck, CABGx3



"Boo" wrote:

Added twist. The formula works great BUT my cell I'm referencing was
originally set up as text. I convert the text to numbers and reformat to SSN.
However, when I use the formula it does format it with last 4 digits
appearing as XXXX but it does not put in the dashes. Additionally, I cannot
reformat the cell with special formatting for SSN. The spreadsheet is given
to me with the numbers showing as text and cannot be delivered to me in any
other format. Any ideas on how to get the last 4 digits of a social security
number to appear as xxxx, and formatted with dashes?

"CLR" wrote:

My apologies.........I posted the result rather than the formula.....use
this...

=LEFT(A1,7)&"XXXX"

hth
Vaya con Dios,
Chuck, CABGx3




"CLR" wrote:

With the SSN in A1, put this in B1 and copy down.......then HIDE column A

123-45-XXXX

hth
Vaya con Dios,
Chuck, CABGx3




"Boo" wrote:

The document is for internal use. I need to change the social from appearing
as 123-45-6789 to 123-45-xxxx. Any help would be appreciated.

"Boo" wrote:

I need to change the format to have the last 4 digits appear as xxxx. How do
I do this?

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
formatting cell number based on previous cell number Pasquini Excel Discussion (Misc queries) 3 June 20th 06 06:36 AM
formatting number value to text value in excel jazzydwit Excel Worksheet Functions 2 December 29th 05 03:17 AM
How do I change a social security number to a number series? LCDawn Excel Discussion (Misc queries) 4 December 22nd 05 04:15 PM
Conditional Number Formatting Neda Excel Discussion (Misc queries) 2 December 20th 05 02:39 AM
Conditional Number formatting? Scott Dawson Excel Discussion (Misc queries) 5 December 20th 05 12:46 AM


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