Consulting

Results 1 to 3 of 3

Thread: Solved: Compile names

  1. #1
    VBAX Tutor
    Joined
    Jul 2010
    Posts
    225
    Location

    Solved: Compile names

    Hi, looking for some help. Have a need to compile employee names from multiple rows into just one cell. I use eg A1&" "&A2&" "&A3 etc but when there is a row that is empty (Which will happen) it will still add a space. So when I call on this for refrencing this cell to email the range with a separate VBA code it throws off the Names and places spaces where there is no names. What I would like is a formula where it will compile the names from the rows unless the row is blank.
    Thanks for any support in advance

  2. #2
    VBAX Mentor
    Joined
    Jun 2004
    Posts
    363
    Location
    Surround your concatenation with the trim function:
    =TRIM(A1&" "&A2&" "&A3)

  3. #3
    VBAX Tutor
    Joined
    Jul 2010
    Posts
    225
    Location
    Wow! Perfect. Thanks so much.

Posting Permissions

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