Mergefield in Word 2013 - change format of the zip code

mmj1 used Ask the Experts™
I have a mergefield in Word 2013 for the zip code and when I merge my document the zip code is not formatted properly for the zip codes that contain nine digit numbers - the dash is missing.  Is it possible for me to edit the mail merge field to include the dash if the number is nine digits?  I was able to edit the merge field for the date, i.e.,   I added the following formatting data: \@"dd MMMM yyyy" into the merge file of date. And the merge field of date showed the full date written out March 27, 2017 in lieu of 3/27/2017 -- trying to determine if I can do the same with the zip code field.  Thanks,
Watch Question

Do more with

Expert Office
EXPERT OFFICE® is a registered trademark of EXPERTS EXCHANGE®
Top Expert 2016

pls try to
{IF{ MERGEFIELD Zip } > 99999""{ MERGEFIELD Zip \# "00000'-'0000" }" "{ MERGEFIELD Zip \# "00000"}-0000"}

Open in new window



Thank you - I will give that a try.

Do more with

Expert Office
Submit tech questions to Ask the Experts™ at any time to receive solutions, advice, and new ideas from leading industry professionals.

Start 7-Day Free Trial