Prevent specific text being entered into a cell

benjinorth

New Member
Joined
Jul 25, 2016
Messages
13
Is there a way I can prevent users being able to enter the text "N/A" or "None" into certain cells using data validation?

in cell A1 is "What is the name of your current employer?"
in cell A2 is a blank cell where the user would answer.

If they are unemployed I don't want N/A or None being input, just to be left blank.

The formula I have in Cell A2 is (I've entered this under custom in data validation)
=IF(A2="n/a","",IF(A2="none",""))

An error message would then appear when invalid data is entered ("n/a" or "none" being invalid data) stating that "if unemployed please leave this cell blank"

The problem I have is that any value I enter flags the error message.
I'm fully aware that my formula is probably flawed.

Am I close?
Can anyone help me find a solution?

Thank you
 

Excel Facts

Create a Pivot Table on a Map
If your data has zip codes, postal codes, or city names, select the data and use Insert, 3D Map. (Found to right of chart icons).

Forum statistics

Threads
1,215,734
Messages
6,126,545
Members
449,317
Latest member
chingiloum

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