+ Reply to Thread
Results 1 to 11 of 11

Conditional format duplicates ignore certain criteria

  1. #1
    Registered User
    Join Date
    07-13-2009
    Location
    Bristol, England
    MS-Off Ver
    Excel 2010
    Posts
    81

    Conditional format duplicates ignore certain criteria

    I have conditionally formatted a column of staff names where duplicates are highlighted - this is fine but there are some duplicates that I do not want to include - these all have the same criteria in that they include the suffix (v)

    Is there an easy way of doing this?

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

    Re: Conditional format duplicates ignore certain criteria

    What criteria have you used in the conditional formatting? If it is a formula then you can modify the formula to ignore (v).

    Pete

  3. #3
    Registered User
    Join Date
    07-13-2009
    Location
    Bristol, England
    MS-Off Ver
    Excel 2010
    Posts
    81

    Re: Conditional format duplicates ignore certain criteria

    I've selected the rule type 'Format only unique or duplicate values'

  4. #4
    Forum Expert Tony Valko's Avatar
    Join Date
    12-31-2011
    Location
    Pittsburgh
    MS-Off Ver
    2002, 2007:2013
    Posts
    18,890

    Re: Conditional format duplicates ignore certain criteria

    Can you post some sample data and show us which items should be highlighted?
    Biff
    Microsoft MVP Excel
    Keep It Simple Stupid

    Let's Go Pens. We Want The Cup.

  5. #5
    Registered User
    Join Date
    07-13-2009
    Location
    Bristol, England
    MS-Off Ver
    Excel 2010
    Posts
    81

    Re: Conditional format duplicates ignore certain criteria

    Sure. The column is a list of names with a suffix at the end always in brackets.

    Example - starting in column a cell 6 (a6)

    SMITH (A)
    JONES (O)
    DAVIES (V)
    (V)
    (V)
    JONES (O)

    What i want to do is highlight JONES (O) duplicates but not (V)

    Roger

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

    Re: Conditional format duplicates ignore certain criteria

    Okay, cancel the conditional formats that you have, then select the data from A6 downwards, click on Conditional Formatting | New Rule | Use a formula..., and put this formula in the dialogue box:

    =AND(COUNTIF(A$6:A6,A6)>1,ISERROR(SEARCH("(v)",A6)))

    Click on the formatting button, then the Fill tab and choose your colour (Red), then OK your way out. You should have what you want, as can be seen in the attached file (I've added some more data). Note that only the second and subsequent duplicates are highlighted, which is what I think you have said you wanted.

    Hope this helps.

    Pete
    Attached Files Attached Files

  7. #7
    Registered User
    Join Date
    07-13-2009
    Location
    Bristol, England
    MS-Off Ver
    Excel 2010
    Posts
    81

    Re: Conditional format duplicates ignore certain criteria

    Thanks Pete. If i wanted to achieve the same result for another column of data - say in c could i use format painter?

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

    Re: Conditional format duplicates ignore certain criteria

    You would need to make the column references into absolute, i.e.:

    =AND(COUNTIF($A$6:$A6,$A6)>1,ISERROR(SEARCH("(v)",$A6)))

    for the existing conditional formatting, and then you could use the Format Painter to apply the same formats to another column.

    Hope this helps.

    Pete

  9. #9
    Registered User
    Join Date
    07-13-2009
    Location
    Bristol, England
    MS-Off Ver
    Excel 2010
    Posts
    81

    Re: Conditional format duplicates ignore certain criteria

    Pete - Amazing - thanks

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

    Re: Conditional format duplicates ignore certain criteria

    Glad to help.

    If that takes care of your original question, please select Thread Tools from the menu above your first post and mark this thread as SOLVED.

    Pete

  11. #11
    Registered User
    Join Date
    07-13-2009
    Location
    Bristol, England
    MS-Off Ver
    Excel 2010
    Posts
    81

    Re: Conditional format duplicates ignore certain criteria

    Will do - if possible could the format also include the first duplicate?

+ 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. Ignore blank cells in conditional format
    By hbiglay in forum Excel General
    Replies: 18
    Last Post: 05-20-2014, 12:39 PM
  2. Replies: 12
    Last Post: 07-04-2013, 07:26 AM
  3. Replies: 3
    Last Post: 05-23-2013, 07:50 PM
  4. Replies: 2
    Last Post: 12-16-2011, 10:35 AM
  5. Count first entries (ignore duplicates) against multiple criteria
    By Bazza in forum Excel Formulas & Functions
    Replies: 1
    Last Post: 04-28-2008, 11:44 AM

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