You can either create the column you need in Excel, using Excel formulas, or
use nested IF fields in Word.
With real-world data there can be many different combinations of 2 names
that you might want to use in a greeting. For example,
For example, suppose each of your records potentially has two names, one
consisting of forename1 and surname1 and the other of forename2 and
surname2. Suppose forename1 and surname1 are never blank, but forename2 and
surname2 are either both present or both blank. And suppose you want
Dear forename1 surname1 (where forename2 and surname2 are blank)
and
Dear forename1 and forename2 surname1 (where the names are not blank but
surname1 = surname2)
and
Dear forename1 surname1 and forename2 surname2 (where the names are not
blank and surname1 <> surname2)
In that case, you can combine "IF" fields with MERGEFIELD fields to get what
you want, e.g.
Dear { MERGEFIELD forename 1
} { IF "{ MERGEFIELD surname2 }" = ""
"{ MERGEFIELD surname1 }"
"{ IF { MERGEFIELD surname2 } = { MERGEFIELD surname1 }
"and { MERGEFIELD forename2 } { MERGEFIELD surname1 }"
"{ MERGEFIELD surname1 } and { MERGEFIELD forename 2 } { MERGEFIELD
surname2 }" }" }
However, before you dive into something like that it's probably a good idea
to consider what greeting lines you actually want for each combination of
values in your data (and if you are maintaining your own data, what data you
need to support the greeting lines that you really want to use).
All the {} are special field braces you can insert on Mac Word using
Command-F9 (and if you're really using Windows Word, it's ctrl-F9)
Peter Jamieson