View Single Post
  #1   Report Post  
Posted to microsoft.public.word.mailmerge.fields
Kim Kim is offline
external usenet poster
 
Posts: 4
Default Zip Code field returns 00000 when nothing in field in from xls

I am using Grant's formula for 5 and 9 digit zip codes:

{If{MERGEFIELD ZIP} 99999 "{MERGEFIELD ZIP \# "00000'-'0000"}"
"{MERGEFIELD ZIP \# "00000"}}

And it works like a charm, except when the cell is empty in Excel. I
get "00000" instead of a blank field. How do I suppress the zeros when
there is nothing in the field?

Thanks!
Kim