I am trying to use the data validation function in Excel to see if a user-entered ID exists in our system. The user will enter the ID number into a table (formatted as a named table), then check in another table (formatted as another named table) if that ID number exists. If the ID exists, no error is raised. If the ID does not exist, it will alert the user. The purpose of this is to prevent user error when entering in the ID numbers.
In the data validation popup, I've selected Custom and then entered in the following formula:
=COUNTIF(PO_BEN, A3) > 0
Where PO_BEN is the ID number found in the validation table and A3 is the user-entered ID number. PO_BEN is a named range I've made using the name box after selecting that entire column from the table.
No matter what I type into the user entry cell (A3), no error message will pop up. I can intentionally enter in IDs that do not exist and no error will be raised. When I type the code above in a random cell, I get the expected results.
Below I've also included the web page I got the formula from.
https://exceljet.net/formula/data-validation-unique-values-only