+ Reply to Thread
Results 1 to 3 of 3

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

  1. #1
    Beyersdorf
    Guest

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

    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?

  2. #2
    Dave Peterson
    Guest

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

    You're doing something like:

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

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



    Beyersdorf wrote:
    >
    > 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?


    --

    Dave Peterson

  3. #3
    Gary''s Student
    Guest

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

    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
    --
    Gary's Student


    "Beyersdorf" wrote:

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


+ Reply to Thread

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts

Search Engine Friendly URLs by vBSEO 3.6.0 RC 1