+ Reply to Thread
Results 1 to 9 of 9

Merge/Combine 2 Rows

  1. #1
    Registered User
    Join Date
    06-06-2014
    Posts
    8

    Post Merge/Combine 2 Rows

    Hi,

    I need help... again!!! I've tried to combine rows, but can't seem to do it. I have a spreadsheet with over 18,000 lines of data, and I really don't want to go through each line to add information from another line and then delete that line. Is there a formula that can do this? I have attached a sample of what I have and what I need. Please Help!!

    Thanking you in advance!!!
    Attached Files Attached Files

  2. #2
    Forum Expert cbatrody's Avatar
    Join Date
    04-15-2014
    Location
    Dubai
    MS-Off Ver
    Microsoft Office 365 ProPlus
    Posts
    2,136

    Re: Merge/Combine 2 Rows

    Hi,

    Please see the attached file. I have added a helper column to identify the duplicates. Please filter TRUE from column B and delete the rows.
    Attached Files Attached Files

  3. #3
    Forum Guru sktneer's Avatar
    Join Date
    04-30-2011
    Location
    Kanpur, India
    MS-Off Ver
    Office 365
    Posts
    9,648

    Re: Merge/Combine 2 Rows

    You may try this code to achieve this. Click on the Green Button on the sheet to get the desired output.
    Please Login or Register  to view this content.
    Attached Files Attached Files
    Regards
    sktneer


    Treat people the way you want to be treated. Talk to people the way you want to be talked to.
    Respect is earned NOT given.

  4. #4
    Registered User
    Join Date
    06-06-2014
    Posts
    8

    Re: Merge/Combine 2 Rows

    I'm so sorry, I attached the wrong spreadsheet under what I have. The first one is where I started going line by line to add column a. Please clear your mind of what you just told me, and start over.

    Thank you!!!
    Attached Files Attached Files

  5. #5
    Forum Guru sktneer's Avatar
    Join Date
    04-30-2011
    Location
    Kanpur, India
    MS-Off Ver
    Office 365
    Posts
    9,648

    Re: Merge/Combine 2 Rows

    Please find the attached to see if this is what you are trying to achieve?
    Attached Files Attached Files

  6. #6
    Registered User
    Join Date
    06-06-2014
    Posts
    8

    Re: Merge/Combine 2 Rows

    Yes, that's it!!! Please tell me what I need to do to make this happen for the whole spreadsheet!!!!

  7. #7
    Forum Guru sktneer's Avatar
    Join Date
    04-30-2011
    Location
    Kanpur, India
    MS-Off Ver
    Office 365
    Posts
    9,648

    Re: Merge/Combine 2 Rows

    Nothing actually if your first column (65 GAL RECYCLE CART SER NO) in your original workbook is as same as in your sample sheet. Because the code is based on the first column.

    If that takes care of your question, please mark your thread as Solved by selecting Thread Tools (just above your first post) --> Mark thread as solved.
    Moreover you may also click on * (star) to Add Reputation to those who have put their time and efforts to help you in this forum. This is another way to say thanks to them.

    **Also edit your profile to add location and current Ms-Excel version being used.

  8. #8
    Registered User
    Join Date
    06-06-2014
    Posts
    8

    Re: Merge/Combine 2 Rows

    Then what code did you type in? You didn't actually explain how to get the final result.

  9. #9
    Forum Guru sktneer's Avatar
    Join Date
    04-30-2011
    Location
    Kanpur, India
    MS-Off Ver
    Office 365
    Posts
    9,648

    Re: Merge/Combine 2 Rows

    The code is in module1. Open VBA editor (Alt+F11) --> Double click Module1 to see the code.
    The code is as follows.....
    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. combine/merge 2 rows together using duplicate colomn
    By cfinch100 in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 03-27-2013, 03:08 PM
  2. Merge duplicate rows and combine data in some of the same columns
    By Ken.runciman in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 01-23-2013, 11:43 PM
  3. [SOLVED] Merge and Combine Rows
    By HangMan in forum Excel Programming / VBA / Macros
    Replies: 4
    Last Post: 01-15-2013, 07:33 AM
  4. [SOLVED] Please help..... Need macro for excel to combine rows for mail merge
    By kambrown79 in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 06-17-2012, 04:32 PM
  5. Replies: 1
    Last Post: 09-13-2011, 04:33 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