+ Reply to Thread
Results 1 to 6 of 6

Combining multiple cells in a column into one cell on top of one another?

  1. #1
    Registered User
    Join Date
    07-19-2011
    Location
    USA
    MS-Off Ver
    Excel 2003
    Posts
    73

    Combining multiple cells in a column into one cell on top of one another?

    Hey everyone

    I have been looking everywhere on how to combine multiple cells in a column so they end up in one cell on top of one another. The script or command would also need to know when there is a space in one of the cells and stop, then start all over once the next set of data is found. The amount of cells in the column will vary.

    Example:

    Cell A1: data1
    Cell A2: data2
    Cell A3: data3

    Cell A4: data4

    Cell A5: data5
    Cell A6: data6

    Output:

    B1:
    data1
    data2
    data3

    B4:
    data4

    B5:
    data5
    data6

    Any assistance would be appreciated, thanks.
    Last edited by stangz71; 07-20-2011 at 05:54 PM.

  2. #2
    Forum Expert
    Join Date
    10-10-2008
    Location
    Northeast Pennsylvania, USA
    MS-Off Ver
    Excel 2007
    Posts
    2,387

    Re: Combining multiple cells in a column into one cell on top of one another?

    stangz71,

    Welcome to the Excel Forum.


    I am having a problem with the way you have displayed your raw data and its output.


    To get the most precise answer, it is best to upload/attach a sample workbook (sensitive data scrubbed/removed/changed) that contains an example of your raw data on one worksheet, and on another worksheet your desired results.

    The structure and data types of the sample workbook must exactly duplicate the real workbook. Include a clear and explicit explanation of your requirements.

    To attach your workbook, click on the New Post button, then scroll down and click on the Go Advanced button, then scroll down and click on the Manage Attachments button.
    Have a great day,
    Stan

    Windows 10, Excel 2007, on a PC.

    If you are satisfied with the solution(s) provided, please mark your thread as Solved by clicking EDIT in your original post, click GO ADVANCED and set the PREFIX box to SOLVED.

  3. #3
    Forum Expert
    Join Date
    11-29-2010
    Location
    Ukraine
    MS-Off Ver
    Excel 2019
    Posts
    4,168

    Re: Combining multiple cells in a column into one cell on top of one another?

    hi, stangz71, please check attachment, run code "test"
    Attached Files Attached Files

  4. #4
    Registered User
    Join Date
    07-19-2011
    Location
    USA
    MS-Off Ver
    Excel 2003
    Posts
    73

    Smile Re: Combining multiple cells in a column into one cell on top of one another?

    Wow, that macro works perfectly watersev thanks for all your help. I will run a few more tests but I am pretty sure this is resolved.

  5. #5
    Registered User
    Join Date
    07-19-2011
    Location
    USA
    MS-Off Ver
    Excel 2003
    Posts
    73

    Re: Combining multiple cells in a column into one cell on top of one another?

    Is there a way I can I have it choose what column I am going to combine instead of it always choosing the A column?

  6. #6
    Registered User
    Join Date
    07-19-2011
    Location
    USA
    MS-Off Ver
    Excel 2003
    Posts
    73

    Re: Combining multiple cells in a column into one cell on top of one another?

    I was able to figure out how to adjust the column it chose on the macro so I will set this request as complete.
    Last edited by stangz71; 07-20-2011 at 05:54 PM.

+ 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