+ Reply to Thread
Results 1 to 10 of 10

Highlight duplicates for case-sensitive matches

  1. #1
    Registered User
    Join Date
    06-17-2024
    Location
    Canada
    MS-Off Ver
    365
    Posts
    4

    Highlight duplicates for case-sensitive matches

    Hello,

    Is there a way to make conditional formatting case sensitive?

    I want to highlight the duplicate values in Column A and Column B. When I currently do this, all duplicates are highlighted regardless of their case. I want the exact matches only to be highlighted.

    Thanks!

  2. #2
    Forum Guru Pete_UK's Avatar
    Join Date
    12-31-2011
    Location
    Warrington, England
    MS-Off Ver
    Office 2019 (still learning)
    Posts
    24,902

    Re: Highlight duplicates for case-sensitive matches

    Welcome to the forum.

    It would help if you attached a sample Excel workbook, so we can see how your data is laid out. You can do this by following the guidelines in the second yellow banner at the top of the screen.

    Hope this helps.

    Pete

  3. #3
    Registered User
    Join Date
    06-17-2024
    Location
    Canada
    MS-Off Ver
    365
    Posts
    4

    Re: Highlight duplicates for case-sensitive matches

    Hi there,

    I can't upload my excel doc for privacy reasons but I have a long list of URLs in Column A and Column B. I just want to know which values are duplicates in both columns but for exact matches only.

    Thanks

  4. #4
    Forum Moderator AliGW's Avatar
    Join Date
    08-10-2013
    Location
    Retired in Ipswich, Suffolk, but grew up in Sawley, Derbyshire (England)
    MS-Off Ver
    MS 365 Subscription Insider Beta Channel v. 2407 (Windows 11 23H2 64-bit)
    Posts
    83,639

    Re: Highlight duplicates for case-sensitive matches

    Welcome to the forum.

    You can prepare a small sample file.

    A good sample workbook has just 10-20 rows of representative data that has been desensitised. The sample layout accurately matches that of your real data. It also has expected results mocked up, worked examples where required, relevant cells highlighted and a few explanatory notes.
    Ali


    Enthusiastic self-taught user of MS Excel who's always learning!
    Don't forget to say "thank you" in your thread to anyone who has offered you help.
    You can reward them by clicking on * Add Reputation below their user name on the left, if you wish.

    Forum Rules (updated August 2023): please read them here.

  5. #5
    Registered User
    Join Date
    06-17-2024
    Location
    Canada
    MS-Off Ver
    365
    Posts
    4

    Re: Highlight duplicates for case-sensitive matches

    Please find attached a sample worksheet.

    When I highlight Column A & B -> Select Conditional Formatting -> Highlight Cell Rules -> Duplicate Values, notice how many matches are found because the case is insensitive.

    I only want these words to be highlighted in red because they are exact matches:

    say
    assertive
    potential
    Attached Files Attached Files

  6. #6
    Forum Moderator AliGW's Avatar
    Join Date
    08-10-2013
    Location
    Retired in Ipswich, Suffolk, but grew up in Sawley, Derbyshire (England)
    MS-Off Ver
    MS 365 Subscription Insider Beta Channel v. 2407 (Windows 11 23H2 64-bit)
    Posts
    83,639

    Re: Highlight duplicates for case-sensitive matches

    Administrative Note:

    We would very much like to help you with your query, however it has been brought to our attention that the same query has been posted on one or more other forums and you have not told us about this. You are required to do so. Cross-posts are allowed but you must provide a link to your posts on other sites.

    Please see Forum Rule #7 about cross-posting and adjust accordingly. Read this to understand why we (and other sites like us) consider this to be important: https://excelguru.ca/a-message-to-forum-cross-posters/

    (Note: this requirement is not optional. I shall do it for you THIS time: https://www.mrexcel.com/board/thread...tches.1260414/)

  7. #7
    Administrator 6StringJazzer's Avatar
    Join Date
    01-27-2010
    Location
    Tysons Corner, VA, USA
    MS-Off Ver
    MS 365 Family 64-bit 2405
    Posts
    25,065

    Re: Highlight duplicates for case-sensitive matches

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

    adjust the last row from 45 to your anticipated maximum last row.
    Attached Files Attached Files
    Jeff
    | | |會 |會 |會 |會 | |:| | |會 |會
    Read the rules
    Use code tags to [code]enclose your code![/code]

  8. #8
    Forum Moderator AliGW's Avatar
    Join Date
    08-10-2013
    Location
    Retired in Ipswich, Suffolk, but grew up in Sawley, Derbyshire (England)
    MS-Off Ver
    MS 365 Subscription Insider Beta Channel v. 2407 (Windows 11 23H2 64-bit)
    Posts
    83,639

    Re: Highlight duplicates for case-sensitive matches

    CF rule for A1:

    =AND(A1<>"",SUM(--EXACT(A1,$B$1:$B$1000))>0)

    Applies to: =$A$1:$A$1000

    CF rule for B1:

    =AND(B1<>"",SUM(--EXACT(B1,$A$1:$A$1000))>0)

    Applies to: =$B$1:$B$1000
    Attached Files Attached Files

  9. #9
    Registered User
    Join Date
    06-17-2024
    Location
    Canada
    MS-Off Ver
    365
    Posts
    4

    Re: Highlight duplicates for case-sensitive matches

    Thanks all. Big thanks to 6StringJazzer as he posted the solution first. Thanks also AliGW.

  10. #10
    Administrator 6StringJazzer's Avatar
    Join Date
    01-27-2010
    Location
    Tysons Corner, VA, USA
    MS-Off Ver
    MS 365 Family 64-bit 2405
    Posts
    25,065

    Re: Highlight duplicates for case-sensitive matches

    My rule and Ali's rules are a little different, and I am not sure which one you need.

    My rule looks at a cell in either column, and colors it if there is a duplicate in either column A or column B.

    Ali's rules looks at a cell in column and colors it if there is a duplicate in column B. It looks at a cell in column B and colors it if there is a duplicate in column A.

    Your description could be interpreted either way and it's not clear from context which one you need.

+ 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. Replies: 6
    Last Post: 12-02-2021, 10:04 AM
  2. [SOLVED] Data Validation: Multi-Column Case-Sensitive Duplicates
    By Saighead in forum Excel Formulas & Functions
    Replies: 5
    Last Post: 02-17-2021, 02:37 PM
  3. [SOLVED] Search filter and highlight string - non case sensitive
    By Steve@Rugby in forum Excel Programming / VBA / Macros
    Replies: 7
    Last Post: 11-03-2017, 11:43 AM
  4. Highlight duplicate rows based on column A but be case sensitive
    By theblade24 in forum Excel Formulas & Functions
    Replies: 1
    Last Post: 09-18-2013, 06:14 PM
  5. [SOLVED] Find word(s) within text string that matches a list of keywords - NOT case sensitive
    By gbm222 in forum Excel Formulas & Functions
    Replies: 4
    Last Post: 09-06-2013, 02:15 AM
  6. removing duplicates in a case-sensitive manner
    By SIFT-MS88 in forum Excel General
    Replies: 7
    Last Post: 08-20-2010, 03:59 PM
  7. [SOLVED] Case Sensitive Duplicates in Lists
    By Dee Veloper in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 01-22-2005, 01:07 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