format social security number as XXX-XX-1234

S

Svetlana

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
 
C

Chris

This will work:

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

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

Hope this helps!
 
G

Guest

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.
 
R

RWN

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 said:
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.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top