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

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?
 
D

Dave Peterson

You're doing something like:

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

if yes, then maybe:
=trim(a1 & " " & b1 & " " & c1 & " " & d1)
 
G

Guest

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
 

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