+ Reply to Thread
Results 1 to 11 of 11

Matching rows

  1. #1
    Forum Contributor
    Join Date
    10-21-2010
    Location
    LONDON
    MS-Off Ver
    2007
    Posts
    108

    Matching rows

    HI!

    I am looking for macro to match rows.If a row has 2 or 3 or 10 fields and is matching with any of the rows in the same worksheet then the duplicate row should get highlighted in red and should appear next to the matching row.

    I tried Excel 2007 "Duplicate function but its not matching my requirement.

    Thanks in advance.

    Lovinguy

  2. #2
    Forum Guru TMS's Avatar
    Join Date
    07-15-2010
    Location
    The Great City of Manchester, NW England ;-)
    MS-Off Ver
    MSO 2007,2010,365
    Posts
    48,992

    Re: Matching rows

    Suggest you post a sample workbook

    Regards, TMS
    Trevor Shuttleworth - Retired Excel/VBA Consultant

    I dream of a better world where chickens can cross the road without having their motives questioned

    'Being unapologetic means never having to say you're sorry' John Cooper Clarke


  3. #3
    Forum Contributor
    Join Date
    10-21-2010
    Location
    LONDON
    MS-Off Ver
    2007
    Posts
    108

    Re: Matching rows

    Attached is the sample worksheet
    Attached Files Attached Files

  4. #4
    Forum Expert Debraj Roy's Avatar
    Join Date
    09-27-2012
    Location
    New Delhi,India
    MS-Off Ver
    Excel 2013
    Posts
    1,469

    Re: Matching rows

    Hi Lovinguy,

    sorry, but still you r requirement is not clear, atleast to me..

    Do you want only row 1 & 2 to highlight, as all data are exactly same with another one..

    or you want to all rows in the attached to be highlighted.. as atleast 2 fields are matching with another row..

    Please clarify..

    SAMPLEEE2.xlsx
    Regards!
    =DEC2HEX(3563)

    If you like someone's answer, click the star to give them a reputation point for that answer...

  5. #5
    Forum Contributor
    Join Date
    10-21-2010
    Location
    LONDON
    MS-Off Ver
    2007
    Posts
    108

    Re: Matching rows

    Attached is sheet and output or result is given in OUTPUT worksheet.
    Attached Files Attached Files

  6. #6
    Forum Contributor
    Join Date
    10-21-2010
    Location
    LONDON
    MS-Off Ver
    2007
    Posts
    108

    Re: Matching rows

    Hi Debraj,

    I replied and explained my question with a exmaple.Hoping someone can help me.

    Thanks

    Lovinguy

  7. #7
    Forum Contributor
    Join Date
    10-21-2010
    Location
    LONDON
    MS-Off Ver
    2007
    Posts
    108

    Re: Matching rows

    I have posted the sample workbook.

    Thanks

  8. #8
    Forum Guru TMS's Avatar
    Join Date
    07-15-2010
    Location
    The Great City of Manchester, NW England ;-)
    MS-Off Ver
    MSO 2007,2010,365
    Posts
    48,992

    Re: Matching rows

    I think this is what you need, although I'm not sure I understand your logic (and one of the results is different)

    Formula: copy to clipboard
    Please Login or Register  to view this content.


    Committed with Ctrl-Shift-Enter as it is an Array Function

    Regards, TMS

  9. #9
    Forum Contributor
    Join Date
    10-21-2010
    Location
    LONDON
    MS-Off Ver
    2007
    Posts
    108

    Re: Matching rows

    Thanks TMShucks for your reply.

    But I have 12 columns and I want to find duplicate rows depending on various columns.Like finding duplicate rows based on no. 2,4,5 columns or based on 6,9,10 columns.

    Anybody else can help me.

    Thanks

    Lovinguy

  10. #10
    Forum Expert nilem's Avatar
    Join Date
    10-22-2011
    Location
    Ufa, Russia
    MS-Off Ver
    2013
    Posts
    3,377

    Re: Matching rows

    Hi lovinguy,
    Maybe conditional formatting? Change the formula in auxiliary column G to keep track of only the desired columns.
    Attached Files Attached Files

  11. #11
    Forum Contributor
    Join Date
    10-21-2010
    Location
    LONDON
    MS-Off Ver
    2007
    Posts
    108

    Re: Matching rows

    I am not such a expert in excel thats why looking for a Macro.

+ 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. Matching Data between Files , Deleting Matching Rows
    By nem_vdoxx in forum Excel Programming / VBA / Macros
    Replies: 5
    Last Post: 05-20-2013, 11:00 AM
  2. Matching two rows with two other rows and returning a value
    By 1454 in forum Excel Formulas & Functions
    Replies: 5
    Last Post: 11-02-2012, 05:28 PM
  3. [SOLVED] match rows and archive, put non matching rows in active
    By intothewild in forum Excel Programming / VBA / Macros
    Replies: 5
    Last Post: 07-21-2011, 05:45 PM
  4. matching rows
    By shruthitulsi in forum Excel General
    Replies: 2
    Last Post: 02-11-2011, 11:10 AM
  5. Matching rows in excel and finding out duplicate rows
    By ASP__DEVELOPER in forum Excel General
    Replies: 23
    Last Post: 08-17-2010, 06:20 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