Data Validation - With Exception?

cmarie85

New Member
Joined
Apr 27, 2022
Messages
6
Office Version
  1. 2019
Platform
  1. Windows
Hello! Tried finding a response in these threads but no such luck.

I don't know if this is possible but basically, I currently have this data validation set:
=COUNTIF($E$1:$E$10001,E1)=1
So that no repeating data can be put into a single column. However, I need to make an exception for "n/a" to be able to be repeated.

To explain:
I track incidents called RCCL, SAMP and MONIs for my agency. RCCLs have Investigation numbers. But SAMPs and MONIs don't.
So I need to be able to put in an Investigation # in the "Invest #" column but instantly know if it's a duplicate number because this means it's an incident i've already entered.
But I also need to be able to put "n/a" multiple times, in cases that it's not RCCL and instead is SAMP or MONI.

Any help would be greatly appreciated!

Here's a snippet:

excel.png
 

Excel Facts

Round to nearest half hour?
Use =MROUND(A2,"0:30") to round to nearest half hour. Use =CEILING(A2,"0:30") to round to next half hour.
It should work with a basic OR condition like
Excel Formula:
=OR(COUNTIF($E$1:$E$10001,E1)=1,E1="n/a")
You could add another condition to ensure that n/a is not entered against RCCL if that is necessary.
 
Upvote 0
Solution

Forum statistics

Threads
1,215,008
Messages
6,122,672
Members
449,091
Latest member
peppernaut

We've detected that you are using an adblocker.

We have a great community of people providing Excel help here, but the hosting costs are enormous. You can help keep this site running by allowing ads on MrExcel.com.
Allow Ads at MrExcel

Which adblocker are you using?

Disable AdBlock

Follow these easy steps to disable AdBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the icon in the browser’s toolbar.
2)Click on the "Pause on this site" option.
Go back

Disable AdBlock Plus

Follow these easy steps to disable AdBlock Plus

1)Click on the icon in the browser’s toolbar.
2)Click on the toggle to disable it for "mrexcel.com".
Go back

Disable uBlock Origin

Follow these easy steps to disable uBlock Origin

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back

Disable uBlock

Follow these easy steps to disable uBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back
Back
Top