Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
Home
DiscussionsAccessExcelInfoPathOutlookPowerPointPublisherWord
DirectoryUser Groups
Related Topics
Outlook ExpressInternet ExplorerWindowsMS Server ProductsMore Topics ...

MS Office Forum / Word / Mailmerge and Fax / November 2006

Tip: Looking for answers? Try searching our database.

sorting

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
Melissa - 28 Nov 2006 16:48 GMT
I have Microsoft Office Word 2003 & Microsoft Office Excel 2003.  I have a
database of addresses in Excel that I need to print labels for, in zip code
order.  How can I get the zip + 4 codes to sort in with the 5 digit zip
codes, instead of after the highest 5 digit zip code?  I would be happy to
sort them in either Excel or in the mail merge.  Thanks.
Peter Jamieson - 30 Nov 2006 10:57 GMT
You can try this:
a. instead of formatting your zip code column as 4-digit and 9-digit ZIP
codes. format it as General
b. enter 5 digit codes as e.g. 123450000, i.e. pad them on the right to 9
digits
c. enter 9 digit codes without the -, e.g. 123456789
d. you should then have a column that will sort in a useful way either in
Excel or Word
e. in Word, suppose the column is called z. use

{ IF { =int({ MERGEFIELD z }/10000)*10000 } = { MERGEFIELD z }
"{ ={ MERGEFIELD z }/10000 \#00000 }" "{ MERGEFIELD z \#00000'-'0000 }" }

(I feel sure there is a simpler way, but that should do it. Or you could use

{ IF { MERGEFIELD z } = "*0000"
"{ ={ MERGEFIELD z }/10000 \#00000 }" "{ MERGEFIELD z \#00000'-'0000 }" }

as long as no 9-digit code can end in "0000"

Peter Jamieson

>I have Microsoft Office Word 2003 & Microsoft Office Excel 2003.  I have a
> database of addresses in Excel that I need to print labels for, in zip
> code
> order.  How can I get the zip + 4 codes to sort in with the 5 digit zip
> codes, instead of after the highest 5 digit zip code?  I would be happy to
> sort them in either Excel or in the mail merge.  Thanks.

Rate this thread:






 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2008 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.