+ Reply to Thread
Results 1 to 4 of 4

merging cells from multiple rows into one row

  1. #1
    Registered User
    Join Date
    01-29-2014
    Location
    United Kingdom
    MS-Off Ver
    Excel 2003
    Posts
    2

    merging cells from multiple rows into one row

    Hi there,

    After hours spend copy pasting and deleting rows I do hope one of you can help me out.
    For my work I need to delete duplicate rows with the same name but keep the information in the (original) cell.

    for example I have:
    Cells: C D E F
    Row 1 Soccer Premier League Holland
    Row 2 Soccer Premier League Germany
    Row 3 Soccer Premier League Poland Poland

    I want to keep row 1 and add the data from row 2 & 3 with the data in the same cells so it will be:
    Cells: C D E F
    Row 1 Soccer Premier League Holland Germany Poland Poland

    As cells D, E, F are empty I would say you can just merge the 3 rows by selecting them and merge. However I have no clue how to do this! if anyone can solve this it would save me hours of work! thank you!

  2. #2
    Forum Contributor
    Join Date
    08-24-2006
    Location
    Sevenoaks, Kent
    MS-Off Ver
    Office 365 ProPlus
    Posts
    459

    Re: merging cells from multiple rows into one row

    Cant you just write a formula like
    Please Login or Register  to view this content.
    or if you wanted to include spaces between the columns then
    Please Login or Register  to view this content.

  3. #3
    Registered User
    Join Date
    01-29-2014
    Location
    United Kingdom
    MS-Off Ver
    Excel 2003
    Posts
    2

    Re: merging cells from multiple rows into one row

    Thank you for the reply!

    however, this was not what I am looking for, the thing I want to do is selecting 3 rows and move all the data up to the first row.
    so the data of C stays in cell c but moves to the top selected row. I see the format of the message got changed I tried to clear things up by making this :
    Cells: --------------------------------C-------------- D----------- E----------- F
    Row 1 Soccer Premier League Holland
    Row 2 Soccer Premier League ---------------Germany
    Row 3 Soccer Premier League ----------------------------- Poland -------Poland

    I want to keep row 1 and add the data from row 2 & 3 with the data in the same cells so it will be:
    Cells: -------------------------------C ------------D----------- E ----------F
    Row 1 Soccer-----Premier League----Holland-----Germany ----Poland------ Poland

    thx in advance!

  4. #4
    Forum Guru Kaper's Avatar
    Join Date
    12-14-2013
    Location
    Warsaw, Poland
    MS-Off Ver
    most often: Office 365 in Windows environment
    Posts
    8,623

    Re: merging cells from multiple rows into one row

    once you attach a sample workbook (see forum rules - how) , it will be easier to understand the real layout

    Basically it looks that to do it effectively you need a simple macro similar to this one:
    Please Login or Register  to view this content.
    could be that you need to check
    Please Login or Register  to view this content.
    rather than only Column C - but as I said - attachment is best way to show data layout.

    The code is pretty simple, so shall be easy to adopt to ones needs.
    In real life it is worth considering adding application.screenupdating=false in the code to speed things up.


    See in attachment how it works on sample data.
    Attached Files Attached Files
    Last edited by Kaper; 01-29-2014 at 10:05 AM.
    Best Regards,

    Kaper

+ 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. Merging multiple rows into 1 row.
    By nickc12345 in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 07-10-2013, 07:06 AM
  2. Replies: 1
    Last Post: 01-22-2013, 09:17 AM
  3. [SOLVED] Multiple rows of data that needs merging
    By mrreference in forum Excel Programming / VBA / Macros
    Replies: 10
    Last Post: 01-03-2013, 06:56 PM
  4. Merging and Center cells into 1 for multiple rows
    By Lisa4legin in forum Excel Programming / VBA / Macros
    Replies: 4
    Last Post: 12-07-2012, 11:42 AM
  5. Merging cells from next rows, then deleting the rows
    By grinder in forum Excel - New Users/Basics
    Replies: 3
    Last Post: 08-18-2010, 01:52 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