+ Reply to Thread
Results 1 to 2 of 2

Macro to concatenate cells in a range that skips empty columns

  1. #1
    Registered User
    Join Date
    11-17-2011
    Location
    USA
    MS-Off Ver
    Excel 2007
    Posts
    1

    Macro to concatenate cells in a range that skips empty columns

    Hello,
    I currently use
    =CONCATENATE(A1," : ",B1," : ",C1) or
    =ConcRange(A1:C1, " : ")
    so that the contents of cells A1, B1 and C1 will display in D1 with a " : " between them.
    Does anyone have or can anyone tell me of a macro that I can use that will take whatever I enter in various columns (let's say up to 10 columns) and combine the data to show only the final concatenation that includes the " :" between the content of each cell? It should skip empty columns and apply to all data filled rows in the spreadsheet.
    Thanks.

  2. #2
    Forum Expert davegugg's Avatar
    Join Date
    12-18-2008
    Location
    WI, US
    MS-Off Ver
    2010
    Posts
    1,884

    Re: Macro to concatenate cells in a range that skips empty columns

    Something like this UDF:

    Please Login or Register  to view this content.
    Is your code running too slowly?
    Does your workbook or database have a bunch of duplicate pieces of data?
    Have a look at this article to learn the best ways to set up your projects.
    It will save both time and effort in the long run!


    Dave

+ Reply to Thread

Thread Information

Users Browsing this Thread

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

Tags for this Thread

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