Forum Discussion

Guan_Kwok's avatar
Guan_Kwok
Copper Contributor
Mar 28, 2023

Data Validation - Omit Specific Value

Hello,

 

Is there a way to omit or ignore specific values using the data validation drop down feature?

Or not show duplicates?

For example, here's a simplified version of what I'm trying to accomplish. I'd like the "Blank" cells not to be included in the list but will show up if the it's changed form BLANK to something else:

Even without values, I have "Ignore Blank" checked in the data validation setup.

 

 

Thanks!
Guan

 

2 Replies

  • NikolinoDE's avatar
    NikolinoDE
    Platinum Contributor

    Guan_Kwok 

    Yes, you can ignore blank cells using the data validation drop-down feature in Excel. You can do this by selecting the cell you want to apply data validation to and then going to Data > Validation > Settings tab and ticking the “Ignore blank” checkbox.

    To not show duplicates, you can use a formula-based approach.

    Here’s how you can do it:

    1. Select the cells you want to apply data validation to.
    2. Go to the Data tab on the ribbon and click on Data Validation.
    3. In the Data Validation dialog box, select List from the Allow drop-down list.
    4. In the Source box, enter this formula: =IFERROR(INDEX($A$1:$A$10,MATCH(0,COUNTIF($B$1:B1,$A$1:$A$10),0)),””)
    5. Click OK.

    This formula will create a list of unique values from column A that you can use for data validation.

     

    I hope this helps!

Resources