+ Reply to Thread
Results 1 to 12 of 12

Highlight duplicates in two columns by Conditional Formatting

  1. #1
    Registered User
    Join Date
    01-30-2013
    Location
    India
    MS-Off Ver
    2013
    Posts
    56

    Highlight duplicates in two columns by Conditional Formatting

    Hi There,

    I would like to Highlight duplicates in two columns using Conditional Formatting. My report has one column for "Parts" and "Country" in the next , I want excel to find the duplicate of this combination. I've attached a sample report with an example (in yellow) of result that is expected.

    Thanks
    Attached Files Attached Files

  2. #2
    Forum Expert
    Join Date
    08-12-2012
    Location
    Sydney, Australia
    MS-Off Ver
    Excel 2010
    Posts
    5,636

    Re: Highlight duplicates in two columns by Conditional Formatting

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


    applies to range
    =$B$2:$C$8
    Attached Files Attached Files
    If you are satisfied with the solution(s) provided, please mark your thread as Solved.
    Select Thread Tools-> Mark thread as Solved. To undo, select Thread Tools-> Mark thread as Unsolved.

  3. #3
    Registered User
    Join Date
    01-30-2013
    Location
    India
    MS-Off Ver
    2013
    Posts
    56

    Re: Highlight duplicates in two columns by Conditional Formatting

    This is good but somehow this is slowing down my report which has 10 columns & around 1200 rows.

  4. #4
    Forum Moderator Glenn Kennedy's Avatar
    Join Date
    07-08-2012
    Location
    Digital Nomad... occasionally based in Ireland.
    MS-Off Ver
    O365 (PC) V 2403
    Posts
    43,984

    Re: Highlight duplicates in two columns by Conditional Formatting

    Then restrict the cell range. For example:

    =COUNTIFS($B$2:$B$2000,$B2,$C$2:$C$2000,$C2)>1

    is about 20x faster than using a whole column reference.
    Glenn




    None of us get paid for helping you... we do this for fun. So DON'T FORGET to say "Thank You" to all who have freely given some of their time to help YOU.

    Temporary addition of accented to illustrate ongoing problem to the TT: L? fh?ile P?draig sona dhaoibh

  5. #5
    Registered User
    Join Date
    01-30-2013
    Location
    India
    MS-Off Ver
    2013
    Posts
    56

    Re: Highlight duplicates in two columns by Conditional Formatting

    Yes this works faster!

    Due to a new format today, 3 new columns are added between B & C. i.e column C is now F. I tried amending your formula to match the new column but this does not help.

  6. #6
    Forum Moderator Glenn Kennedy's Avatar
    Join Date
    07-08-2012
    Location
    Digital Nomad... occasionally based in Ireland.
    MS-Off Ver
    O365 (PC) V 2403
    Posts
    43,984

    Re: Highlight duplicates in two columns by Conditional Formatting

    Which columns do you want to be formatted?

  7. #7
    Registered User
    Join Date
    01-30-2013
    Location
    India
    MS-Off Ver
    2013
    Posts
    56

    Re: Highlight duplicates in two columns by Conditional Formatting

    B & F should be formatted.

  8. #8
    Forum Moderator Glenn Kennedy's Avatar
    Join Date
    07-08-2012
    Location
    Digital Nomad... occasionally based in Ireland.
    MS-Off Ver
    O365 (PC) V 2403
    Posts
    43,984

    Re: Highlight duplicates in two columns by Conditional Formatting

    here it is on a sheet.
    Attached Files Attached Files

  9. #9
    Forum Moderator Glenn Kennedy's Avatar
    Join Date
    07-08-2012
    Location
    Digital Nomad... occasionally based in Ireland.
    MS-Off Ver
    O365 (PC) V 2403
    Posts
    43,984

    Re: Highlight duplicates in two columns by Conditional Formatting

    Incidentally, why were you using the outdated .xls format (Excel 2003 and earlier) - when you have Excel 2013?

  10. #10
    Registered User
    Join Date
    01-30-2013
    Location
    India
    MS-Off Ver
    2013
    Posts
    56

    Re: Highlight duplicates in two columns by Conditional Formatting

    Hmm, I just saved it as it was a dummy file.

  11. #11
    Registered User
    Join Date
    01-30-2013
    Location
    India
    MS-Off Ver
    2013
    Posts
    56

    Re: Highlight duplicates in two columns by Conditional Formatting

    This works perfectly. Thanks for the help!

  12. #12
    Forum Moderator Glenn Kennedy's Avatar
    Join Date
    07-08-2012
    Location
    Digital Nomad... occasionally based in Ireland.
    MS-Off Ver
    O365 (PC) V 2403
    Posts
    43,984

    Re: Highlight duplicates in two columns by Conditional Formatting

    You're welcome!!

+ 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. conditional formatting to highlight duplicates
    By makinmomb in forum Excel Formulas & Functions
    Replies: 8
    Last Post: 08-04-2017, 07:13 AM
  2. [SOLVED] Conditional Formatting to find duplicates from 3 columns and highlight entire row.
    By bobjet in forum Excel Formulas & Functions
    Replies: 4
    Last Post: 06-16-2017, 05:20 PM
  3. [SOLVED] Conditional Formatting to highlight duplicates question
    By moretvicar in forum Excel Formulas & Functions
    Replies: 14
    Last Post: 05-31-2015, 03:19 PM
  4. [SOLVED] Conditional Formatting - Indirect Formula to highlight columns
    By jlo33 in forum Excel Formulas & Functions
    Replies: 9
    Last Post: 12-02-2013, 05:40 PM
  5. Replies: 3
    Last Post: 05-31-2013, 08:03 AM
  6. Using conditional formatting to highlight multiple duplicates
    By JONNY981 in forum Excel Programming / VBA / Macros
    Replies: 13
    Last Post: 06-28-2010, 03:24 AM
  7. highlight rows / columns using VBA & Conditional Formatting problem
    By MARKSTRO in forum Excel Programming / VBA / Macros
    Replies: 0
    Last Post: 03-03-2010, 12:00 PM

Tags for this Thread

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