sorting zip codes

  • Thread starter heather jackson
  • Start date
H

heather jackson

I need help!!!!! I have 3000 addresses I need to sort by
zip code...only the zips include both 5-digit and 9-
digit. If I do a simple numeric sort then all the 5-
digit codes are listed first followed by the 9-digit
(which leaves 98702 sorted before 10786-5424, for
example).

What do I do? (Please provide very clear instructions if
you have a suggestion...I am not a regular user of
Excel...)

Thanks!
 
N

Norman Harker

Hi Heather!

Add 2 helper columns
First copy the complete set of codes from A to B
Now select B
Data > Text to Columns
Delimited
Next
Select the - as a delimiter
Next
Finish

Now Select all three columns of data
Data Sort
First sort criteria is B
Second sort criteria is C
OK

--
Regards
Norman Harker MVP (Excel)
Sydney, Australia
(e-mail address removed)
Excel and Word Function Lists (Classifications, Syntax and Arguments)
available free to good homes.
 
N

Norman Harker

Hi Heather!

Always pleased to help and to know that a solution works for the
poster.

--
Regards
Norman Harker MVP (Excel)
Sydney, Australia
(e-mail address removed)
Excel and Word Function Lists (Classifications, Syntax and Arguments)
available free to good homes.
 

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