Word field with If then else

S

simonc

First, I'm using Word 2000 which might limit my options.

My data is in a spreadsheet. In the merged word document I want to insert or
not insert an address based on the first three characters of a field in the
spreadsheet.

ie something like: if first three characters of field Client = XYZ then put
in the address of client XYZ, otherwise leave blank.

Unfortunately, in the If then else dialogue the only options for comparison
are numerical - equal, less than etc. Is there a way of putting in a
condition related to a text field?

Grateful for advice.
 
P

Peter Jamieson

You may be able to get away with an IF field that looks something like this:

{ IF "{ MERGEFIELD Client \*Upper }" = "XYZ*" "{ MERGEFIELD Address }" "" }

- use ctrl-F9 to insert each pair of the special field braces {}, then type
everything else as text.
 

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