+ Reply to Thread
Results 1 to 6 of 6

Combining every other row

  1. #1
    Registered User
    Join Date
    05-25-2010
    Location
    colorado, USA
    MS-Off Ver
    Excel 2003
    Posts
    12

    Combining every other row

    I am trying to find a way to basically copy every other row and simply add it to the the one above, then delete the copied row. For example:

    Red Blue Green
    Apple Lemon Banana
    Frog Mouse Rat
    Left Right Down

    to then look like this:
    Red Blue Green Apple Lemon Banana
    Frog Mouse Rat Left Right Down

    I have about 2000 rows of data and 10 columns and would hate to waste time doing this manually. I do have some very limited VBA knowledge but cannot get anything I try to work. Any help would be greatly appreciated!!!

  2. #2
    Forum Expert
    Join Date
    11-22-2016
    Location
    Cornwall,UK
    MS-Off Ver
    office 365
    Posts
    4,240

    Re: Combining every other row

    You do not need VBA

    1. Select and Copy 2000 rows Columns 1 to 10
    2. Paste to columns 11 to 20 starting one row down
    3. In cells in column 21, enter formula
    Formula: copy to clipboard
    Please Login or Register  to view this content.

    Will give either a ZERO or a 1
    4. Data filter the 21 columns
    5. Use column 21 and select either ZEROs OR 1s (chose the one that gives the correct result in the last row)
    6. Delete
    7. Select all in Column 21 and sort the data to remove blank rows

    NOTE: You need to paste one row UP or one row DOWN - choose the one that puts the data in the correct columns for 20 columns

    Before.jpg

    After.jpg
    Last edited by kev_; 03-22-2017 at 12:15 PM.
    Click *Add Reputation to thank those who helped you. Ask if anything is not clear

  3. #3
    Forum Moderator alansidman's Avatar
    Join Date
    02-02-2010
    Location
    Steamboat Springs, CO
    MS-Off Ver
    MS Office 365 Version 2405 Win 11 Home 64 Bit
    Posts
    23,872

    Re: Combining every other row

    Here is a VBA solution:

    Please Login or Register  to view this content.
    Modify the ranges to meet your exact specifications.
    Last edited by alansidman; 03-22-2017 at 12:22 PM.
    Alan עַם יִשְׂרָאֵל חַי


    Change an Ugly Report with Power Query
    Database Normalization
    Complete Guide to Power Query
    Man's Mind Stretched to New Dimensions Never Returns to Its Original Form

  4. #4
    Forum Expert
    Join Date
    03-23-2004
    Location
    London, England
    MS-Off Ver
    Excel 2019
    Posts
    7,064

    Re: Combining every other row

    Input on Sheet1
    Output on Sheet2

    Please Login or Register  to view this content.
    Regards
    Special-K

    Ensure you describe your problem clearly, I have little time available to solve these problems and do not appreciate numerous changes to them.

  5. #5
    Registered User
    Join Date
    05-25-2010
    Location
    colorado, USA
    MS-Off Ver
    Excel 2003
    Posts
    12

    Re: Combining every other row

    Thank you both. I tried your respective solutions and both work great! Thank you!!

  6. #6
    Forum Expert
    Join Date
    11-22-2016
    Location
    Cornwall,UK
    MS-Off Ver
    office 365
    Posts
    4,240

    Re: Combining every other row

    You are welcome
    Please go to thread tools and mark the thread as solved if that solves your problem

    thanks

+ 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. combining
    By a1b2c3d4e5f6g7 in forum Excel General
    Replies: 2
    Last Post: 03-20-2015, 09:56 AM
  2. [SOLVED] Combining vertical cells into one and between blank rows start combining again?
    By mike_m1 in forum Excel Programming / VBA / Macros
    Replies: 10
    Last Post: 08-21-2012, 12:19 PM
  3. Combining VBA with MS-DOS
    By DeveloperINO in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 02-27-2012, 04:47 PM
  4. Combining
    By coffeecup in forum Excel General
    Replies: 5
    Last Post: 12-16-2011, 12:33 PM
  5. Combining IF, AND, OR
    By ChrisMattock in forum Excel Programming / VBA / Macros
    Replies: 4
    Last Post: 01-07-2009, 12:34 PM
  6. Combining Sum, IF and AND
    By Kenton_SJ in forum Excel General
    Replies: 1
    Last Post: 08-03-2005, 07: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