+ Reply to Thread
Results 1 to 5 of 5

How can I concatenate non blank cells in a series

  1. #1
    Registered User
    Join Date
    07-10-2008
    Location
    Bahrain
    MS-Off Ver
    2007 version
    Posts
    37

    How can I concatenate non blank cells in a series

    Hi All,

    I have a problem here for you.
    How can I concatenate a series of cells that may or may not have blank cells in them? I do not want to concatenate the blank cells.
    I hope I am clear.

    Thanks
    J
    Last edited by joshuar; 12-01-2009 at 05:34 AM.

  2. #2
    Forum Expert Paul's Avatar
    Join Date
    02-05-2007
    Location
    Wisconsin
    MS-Off Ver
    2016/365
    Posts
    6,885

    Re: How can I concatenate non blank cells in a series

    Hi Joshuar,

    Are you looking for a formula approach, or a macro? Also, how many cells are you trying to concatenate? Finally, when concatenating the cells, are you hoping to have a space or some other character between each cell's value?

  3. #3
    Registered User
    Join Date
    07-10-2008
    Location
    Bahrain
    MS-Off Ver
    2007 version
    Posts
    37

    Re: How can I concatenate non blank cells in a series

    Hi Paul,

    I have 11 cells to concatenate and if the cells are nonblank I need to insert a space in between, except for the last cell. As regards, formula or macro maybe you can explain both. I do not have anything specific in mind.

    Thks.

  4. #4
    Forum Guru DonkeyOte's Avatar
    Join Date
    10-22-2008
    Location
    Northumberland, UK
    MS-Off Ver
    O365
    Posts
    21,531

    Re: How can I concatenate non blank cells in a series

    Not sure I follow ... if it's a simple space delimiter than concatenate with space and use TRIM on resulting output

    =TRIM(A2&" "&B2&" "&C2&" "&D2&" "&E2&" "&F2&" "&G2&" "&H2&" "&I2&" "&J2&" "&K2)

    This will remove superfluous spaces (incl. those appearing mid-string)

  5. #5
    Registered User
    Join Date
    07-10-2008
    Location
    Bahrain
    MS-Off Ver
    2007 version
    Posts
    37

    Re: How can I concatenate non blank cells in a series

    Thanks donkeyote,

    Thats just what I wanted.

+ 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