Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 2
Default format social security number as XXX-XX-1234

Does someone know how to format a social security number
as XXX-XX-1234? I know how to do this using concatenate
function, but would like to find out if it is possible
using the formatting programming. I tried:
_("XXX-XX-"0_) and _("XXX-XX-"#_), but that i still get
the whole number after the X's.
Thanks!
Svetlana
  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 79
Default format social security number as XXX-XX-1234

Sveta,

I think you can use something like 000-00-0000

Best,
RADO


"Svetlana" wrote in message
...
Does someone know how to format a social security number
as XXX-XX-1234? I know how to do this using concatenate
function, but would like to find out if it is possible
using the formatting programming. I tried:
_("XXX-XX-"0_) and _("XXX-XX-"#_), but that i still get
the whole number after the X's.
Thanks!
Svetlana



  #3   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 5
Default format social security number as XXX-XX-1234

This will work:

(assuming there's an SSN in cell A1):

=TEXT(A1,"000-00-0000")

Hope this helps!
  #4   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 6
Default format social security number as XXX-XX-1234

Why can you not use a copy and past special when using this function. I have several hundred rows that need to be formatted, and it does not allow me to copy the formula to multiple cells.
  #5   Report Post  
Posted to microsoft.public.excel.programming
RWN RWN is offline
external usenet poster
 
Posts: 104
Default format social security number as XXX-XX-1234

When you say "formula" are you talking about the format itself?
If you select the rows then "Format-Cells-Special" and click the
Social Security Number format it will apply that format to all the
selected cells.

--
Regards;
Rob
------------------------------------------------------------------------
"Arthur" wrote in message
...
Why can you not use a copy and past special when using this function.

I have several hundred rows that need to be formatted, and it does not
allow me to copy the formula to multiple cells.


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
How do I format a social security number to have no dashes? Kim Excel Discussion (Misc queries) 5 July 17th 06 10:13 PM
last four digits of a social security number elli Excel Worksheet Functions 2 October 25th 05 09:01 PM
format social security number Kristy Excel Worksheet Functions 2 September 9th 05 04:13 PM
Social Security Number montagu Excel Discussion (Misc queries) 3 June 27th 05 05:09 PM
Social Security Number format Jean Excel Worksheet Functions 1 March 7th 05 09:37 PM


All times are GMT +1. The time now is 02:16 AM.

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"