+ Reply to Thread
Results 1 to 2 of 2

Removing Rows With Identical Data and Merging Cells

  1. #1
    Registered User
    Join Date
    01-17-2011
    Location
    US
    MS-Off Ver
    Excel 2003
    Posts
    1

    Removing Rows With Identical Data and Merging Cells

    I need a macro that can do the following:
    1. Find rows that have a match in a specific row. In the example given the rows it should find are 1 and 3.
    Example:
    A B C
    1 g j l
    2 h k z
    3 n j o
    2. Take the data from a specific column (in this case let's say C) from the matching row. In this example it should be cell C3 or C1. Merge them in one cell. In this case C1 will now have the data 'l, o' in it after the merging.
    3. Delete the matching row from which the merging data was taken (not the row where the data was merged). In this case it will be row 3.
    4. The end result should look like this:
    A B C
    1 g j l, o
    2 h k z
    3
    5. If it's easier to do, the data will merge in both cell (so both C1 and C3 have 'l, o' data in them) but in the end the matching row is still deleted.

    Hope that was clear,
    Thanks.

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

    Re: Removing Rows With Identical Data and Merging Cells

    Burnout,

    Welcome to the Excel forum.


    To get the most precise answer, it is best to upload/attach a sample workbook (sensitive data scrubbed/removed) 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 a workbook, 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.

+ 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