+ Reply to Thread
Results 1 to 5 of 5

Concatenate 6 columns but exclude blank cells

  1. #1
    Forum Contributor
    Join Date
    12-06-2012
    Location
    Australia
    MS-Off Ver
    Excel 2010
    Posts
    139

    Concatenate 6 columns but exclude blank cells

    All

    I have some address data that I need to 'concatenate'. issue is some of the addresses only have 1 cell of data while others have up to 5

    how do I 'concatenate' so that there are no 'spaces' at the end of an address if only 1 cell for example has data.

    I have approx. 2500 rows of addresses....

    TIA

    Shaz0503

  2. #2
    Forum Expert
    Join Date
    02-19-2013
    Location
    India
    MS-Off Ver
    07/16
    Posts
    2,386

    Re: Concatenate 6 columns but exclude blank cells

    can you upload a sample book of what are trying to achieve. Data can be look alike with expected results.
    -------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------

    WANT TO SAY THANKS, HIT ADD REPUTATION (*) AT THE BOTTOM LEFT CORNER OF THE POST

    More we learn about excel, more it shows us, how less we know about it.

    for chemistry
    https://www.youtube.com/c/chemistrybyshivaansh

  3. #3
    Forum Expert martindwilson's Avatar
    Join Date
    06-23-2007
    Location
    London,England
    MS-Off Ver
    office 97 ,2007
    Posts
    19,320

    Re: Concatenate 6 columns but exclude blank cells

    do you mean
    =TRIM(A1&" "&B1&" "&D1& " "&C1&" "&E1)
    "Unless otherwise stated all my comments are directed at OP"

    Mojito connoisseur and now happily retired
    where does code go ?
    look here
    how to insert code

    how to enter array formula

    why use -- in sumproduct
    recommended reading
    wiki Mojito

    how to say no convincingly

    most important thing you need
    Martin Wilson: SPV
    and RSMBC

  4. #4
    Forum Contributor
    Join Date
    12-06-2012
    Location
    Australia
    MS-Off Ver
    Excel 2010
    Posts
    139

    Re: Concatenate 6 columns but exclude blank cells

    Martin

    thanks so much - works nicely....

    it always seems so easy when you have the correct answer...

    rgds

  5. #5
    Forum Contributor
    Join Date
    12-06-2012
    Location
    Australia
    MS-Off Ver
    Excel 2010
    Posts
    139

    Re: Concatenate 6 columns but exclude blank cells

    ... thanks Hemesh for replying...

+ Reply to Thread

Thread Information

Users Browsing this Thread

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

Similar Threads

  1. Sum multiple cells, but exclude blank ones
    By GorillaBoze in forum Excel General
    Replies: 1
    Last Post: 12-23-2010, 01:37 PM
  2. Exclude Blank Cells from chart legend
    By jamphan in forum Excel General
    Replies: 1
    Last Post: 10-19-2010, 05:25 AM
  3. AVERAGE calculation to exclude blank cells
    By andrewc in forum Excel General
    Replies: 8
    Last Post: 09-04-2009, 03:30 AM
  4. Cal averages in columns to exclude blank fields
    By treborharris in forum Excel General
    Replies: 4
    Last Post: 05-02-2008, 11:05 AM
  5. [SOLVED] Exclude blank cells from a range?
    By achidsey in forum Excel Programming / VBA / Macros
    Replies: 4
    Last Post: 08-11-2005, 10:05 PM

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