bypassing empty merge fields

M

Martin Post

Hello,

I got a mailmerge with an excel document to make labels, like:

«MrMs» «Firsname» «Lastname»

The problem is when the first name is not mentioned it leaves a extra blank
space on the label, like:

Mr. Smith, instead of:
Mr. Smit

Is there a function to ignore field Firsname if it's empty?

Thanks in advance,

Martin
 
P

Peter Jamieson

use an IF field, e.g.

{ MERGEFIELD MrMs } { IF { MERGEFIELD Firstname } = ""
"" " { MERGEFIELD Firstname }" }{ MERGEFIELD Lastname }

All the {} need to be the special field codes you can insert using ctrl-F9.

Peter Jamieson
 

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