+ Reply to Thread
Results 1 to 4 of 4

Excel 2007 : Find duplicate values comparing in two columns

  1. #1
    Registered User
    Join Date
    02-05-2011
    Location
    kuwait
    MS-Off Ver
    Excel 2007
    Posts
    26

    Find duplicate values comparing in two columns

    Dear All,

    I have attached sample file . where there are three columns, country , fruit and quantity. I want when the name in column country and fruit match and repeated as highlighted in yellow it should give warning as duplicate or the first entry should delete automatically. Kindly help.

    Thank you in advance for your usual support.

    Regards
    Attached Files Attached Files

  2. #2
    Forum Guru DonkeyOte's Avatar
    Join Date
    10-22-2008
    Location
    Northumberland, UK
    MS-Off Ver
    O365
    Posts
    21,531

    Re: Find duplicate values comparing in two columns

    Given use of XL2007...

    Clear existing background format from your sample [ie no fill]

    Highlight table B5:D13 (with B5 selected as starting point) and subsequently apply following Conditional Format rule:

    Please Login or Register  to view this content.
    If created correctly you should find that if you change C5 from Apple to Mango the formatting alters accordingly (rows 5 & 6 rather than 5 & 13)

  3. #3
    Registered User
    Join Date
    02-05-2011
    Location
    kuwait
    MS-Off Ver
    Excel 2007
    Posts
    26

    Re: Find duplicate values comparing in two columns

    Thank you very much for quick response. But i need something more.

    In Excel 2007 by removing duplicate value option , duplicate values can be removed. But the problem is it is removing the new entry.when i want to remove old entry and it should remove automatically everytime

    I think it need some macro to run. Kindly advise


    Regards

  4. #4
    Registered User
    Join Date
    02-05-2011
    Location
    kuwait
    MS-Off Ver
    Excel 2007
    Posts
    26

    Re: Find duplicate values comparing in two columns

    I found the attached file on excel forum. Here when i click the rectangle the code is working as i need. But it is checking only column A. where my requirement is it sholud compare two columns and then if the entry repeat it sholud delete the first entry and reatain the last one. Kindly help to amend this macro.
    Attached Files Attached Files
    Last edited by SEHRA; 06-25-2011 at 06:44 AM. Reason: attchment missing

+ 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