+ Reply to Thread
Results 1 to 8 of 8

Combine cells in column A if the cells blank in between in columnB

  1. #1
    Registered User
    Join Date
    04-07-2013
    Location
    Singapore
    MS-Off Ver
    Excel 2010
    Posts
    15

    Combine cells in column A if the cells blank in between in columnB

    Hi,

    I have data per example below. Can the macro turn the data under example to outcome? If yes, what is the coding?

    Example:
    Title A Title B Title C
    AAAA 1234 Jan'14
    BBBB- 2345 Feb'14
    bbbb
    CCCC- 4363 Jan'14
    cccc
    vvvv
    DDDD 7456 Jan'14


    Outcome:
    Title A Title B Title C
    AAAA 1234 Jan'14
    BBBB-bbbb 2345 Feb'14
    CCCC-ccccvvvv 4363 Jan'14
    DDDD 7456 Jan'14

    Thanks.

  2. #2
    Forum Expert
    Join Date
    06-12-2012
    Location
    Ridgefield Park, New Jersey
    MS-Off Ver
    Excel 2003,2007,2010
    Posts
    10,241

    Re: Combine cells in column A if the cells blank in between in columnB

    Welcome to the Forum.

    Maybe:

    Please Login or Register  to view this content.

  3. #3
    Registered User
    Join Date
    04-07-2013
    Location
    Singapore
    MS-Off Ver
    Excel 2010
    Posts
    15

    Re: Combine cells in column A if the cells blank in between in columnB

    Hi John,

    Thanks for the input. What if the title A is in column 3?

  4. #4
    Forum Expert
    Join Date
    06-12-2012
    Location
    Ridgefield Park, New Jersey
    MS-Off Ver
    Excel 2003,2007,2010
    Posts
    10,241

    Re: Combine cells in column A if the cells blank in between in columnB

    Would Title B be in column 4 then?

  5. #5
    Registered User
    Join Date
    04-07-2013
    Location
    Singapore
    MS-Off Ver
    Excel 2010
    Posts
    15

    Re: Combine cells in column A if the cells blank in between in columnB

    Yes. Title A in column 3, Title B in column 4, Title C in column 5...

  6. #6
    Forum Expert
    Join Date
    06-12-2012
    Location
    Ridgefield Park, New Jersey
    MS-Off Ver
    Excel 2003,2007,2010
    Posts
    10,241

    Re: Combine cells in column A if the cells blank in between in columnB

    Try:

    Please Login or Register  to view this content.

  7. #7
    Registered User
    Join Date
    04-07-2013
    Location
    Singapore
    MS-Off Ver
    Excel 2010
    Posts
    15

    Re: Combine cells in column A if the cells blank in between in columnB

    Hi John,

    This code works pretty well if Title B has data, what if Title B does not have Data and like sample attached?
    Thanks.
    Attached Files Attached Files

  8. #8
    Forum Expert
    Join Date
    06-12-2012
    Location
    Ridgefield Park, New Jersey
    MS-Off Ver
    Excel 2003,2007,2010
    Posts
    10,241

    Re: Combine cells in column A if the cells blank in between in columnB

    Try:

    Please Login or Register  to view this content.

+ 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. [SOLVED] Combine multiple cells text into one cell, skip blank cells.
    By T15K in forum Excel General
    Replies: 6
    Last Post: 12-05-2014, 09:49 PM
  2. [SOLVED] Macro to fill blank cells in column A based on non-blank cells
    By ktalamantez in forum Excel Programming / VBA / Macros
    Replies: 4
    Last Post: 02-28-2014, 02:47 PM
  3. Combine text in multiple cells if adjacent column is blank
    By problematic in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 05-10-2012, 01:52 PM
  4. Combine non-blank cells
    By Chuck N in forum Excel General
    Replies: 7
    Last Post: 01-17-2007, 04:14 PM
  5. how to combine including blank cells
    By Karmen in forum Excel - New Users/Basics
    Replies: 7
    Last Post: 03-15-2006, 02:14 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