+ Reply to Thread
Results 1 to 4 of 4

Macro to combine cells in a row to 1 cell while skipping blank cells

  1. #1
    Registered User
    Join Date
    11-05-2013
    Location
    USA
    MS-Off Ver
    Excel 2010
    Posts
    13

    Macro to combine cells in a row to 1 cell while skipping blank cells

    Hello,

    I need to combined all non blank cells in a given row into 1 cell. But within each row i have 5 phases that the values fall into, which is denoted by the 1st charter 1, 2, 3, 4, or 5. for example, in a given row i have 1-a, 1-c, 2-d, and 1-f and these values occurs in non consecutive columns starting from G to ALR. I need a macro that sorts these values in one of the 5 phases. So in another sheet the macro would combined [1-a 1-c 1-f] in Phase 1 and [2-d] in phase 2. and if there are other phases it would put them in the appropriate cell.

    Please help! Thanks. See attached workbook.
    Attached Files Attached Files

  2. #2
    Valued Forum Contributor
    Join Date
    02-08-2012
    Location
    Newcastle, Australia
    MS-Off Ver
    Excel 2007 and Excel 2010
    Posts
    1,429

    Re: Macro to combine cells in a row to 1 cell while skipping blank cells

    Hi,

    Something like this...?
    Please Login or Register  to view this content.
    Note that you will need to change the value of endRow for your actual data set
    Attached Files Attached Files

  3. #3
    Registered User
    Join Date
    11-05-2013
    Location
    USA
    MS-Off Ver
    Excel 2010
    Posts
    13

    Re: Macro to combine cells in a row to 1 cell while skipping blank cells

    you hit the bull's eye on this one. its perfect. thank you very much.

  4. #4
    Valued Forum Contributor
    Join Date
    02-08-2012
    Location
    Newcastle, Australia
    MS-Off Ver
    Excel 2007 and Excel 2010
    Posts
    1,429

    Re: Macro to combine cells in a row to 1 cell while skipping blank cells

    No problems.

    Please don't forget to mark this thread as solved (Thread Tools --> Mark As Solved)

+ 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. Skipping blank cells & entering next cell with text
    By Phily915 in forum Excel Formulas & Functions
    Replies: 1
    Last Post: 01-18-2014, 03:58 PM
  3. Replies: 0
    Last Post: 03-05-2013, 09:22 AM
  4. Collecting data from filled cells and skipping blank cells
    By KellieB in forum Excel Formulas & Functions
    Replies: 1
    Last Post: 08-20-2012, 09:45 PM
  5. Replies: 3
    Last Post: 04-27-2011, 12:59 AM

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