social security sorting

G

Guest

I am having problems with sorting social secuirity/tax id numbers that were
dropped into excel from several different sources. Some of the ss/tax id
numbers have dashes and some do not. Some of the ss/tax id numbers are
missing leading zero's. I am not able to change all of them into a text
format.

How can I formatt them all so they will sort properly?

Thanks for any assistance out there.
 
M

Myrna Larson

Don't change them to text. Change them to numbers. Remove all of the dashes
with Search and Replace. Then apply the special format for Social Security
numbers.


On Tue, 25 Jan 2005 05:45:02 -0800, "Precious Pearl" <Precious
 
J

Jason Morin

I'm not sure what form tax id's are supposed to take, but
to format all the SSN's correctly, try:

=TEXT(REPT("0",9-LEN(SUBSTITUTE(A1,"-","")))&A1,"000-00-
0000")

HTH
Jason
Atlanta, GA
 
G

Guest

Jason Morin said:
I'm not sure what form tax id's are supposed to take, but
to format all the SSN's correctly, try:

=TEXT(REPT("0",9-LEN(SUBSTITUTE(A1,"-","")))&A1,"000-00-
0000")

HTH
Jason
Atlanta, GA
 
G

Guest

Thank you so much for your help. We have spent hours trying to get the
numbers to sort. Would this work as well with the tax id numbers by changing
the formula to read "00-0000000"?
 

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