how to eliminate a space when the field is blank in a merge

  • Thread starter Thread starter Guest
  • Start date Start date
G

Guest

when you merge a letter and one of the fields is blank how do you eliminate
the space that occurs when there is no data:
Mr. Gary A. Ward
Mr. Gary two spaces Ward
in the second instance how do I keep excel from putting an extra space
because it has no data from the middle initial field?
 
You're doing something like:

=a1 & " " & b1 & " " & c1 & " " & d1

if yes, then maybe:
=trim(a1 & " " & b1 & " " & c1 & " " & d1)
 
Concatenate will not insert a blank:

put hello in A1
put world in C1
make no entries in B1
=A1&B1&C1
will display:
helloworld
 
Back
Top