Forum Discussion

Bilosta's avatar
Bilosta
Copper Contributor
Jan 31, 2024

remove Conditional formatting for specific duplicates,

Hi all, 

 

I have situation where I have conditional formatting in column E for duplicates. in column E I need to have unique references but sometimes I do not have any reference for some row, and I need to write N/A (non-applicable). Now Excel highlight me that cells as duplicates, but I do not want that cell to be highlighted.  So is there any rule that I can say that excel ignore N/A (or any other reference) as duplicates.

 

 

 

thanks. 

3 Replies

  • Lorenzo's avatar
    Lorenzo
    Silver Contributor

    Hi Bilosta 

     

    You cannot achieve what you expect with the built-in Cond. Format Highlight Duplicate Values rule. Instead you'll have to setup a custom rule using a formula:

     

     

    Cond. Format rule that applies to =$E$2:$E$14 for the above example:

    =AND($E2 <> "n/a", COUNTIF($E$2:$E$14,$E2) > 1)

    If not already the case I would recommend you to format your data as Table

    Corresponding sample is available here

      • Lorenzo's avatar
        Lorenzo
        Silver Contributor
        You're welcome. If this solves the issue there's a Mark as response link (at the bottom of the post) that helps people who Search - Thanks

Resources