Share via

Data Validation if cell value is null

Anonymous
2014-04-09T13:16:54+00:00

I want to set up a data validation rule that triggers if another cell is not empty.

For example:

If cell A1 has a value in it, and the user tries to enter a value in cell B1, I want an error message to pop up to say that they cannot enter a value in cell B1.

I have tried using A1>=0 and NOT(ISNULL,A1) and NOT(ISBLANK,A1) but none of these work.

Can anyone offer any suggestions?

Thanks

Microsoft 365 and Office | Excel | For home | Windows

Locked Question. This question was migrated from the Microsoft Support Community. You can vote on whether it's helpful, but you can't add comments or replies or follow the question.

0 comments No comments

Answer accepted by question author

Ashish Mathur 101.9K Reputation points Volunteer Moderator
2014-04-10T00:23:56+00:00

Hi,

While in cell B1, go to Data > Data Validation > Allow > Custom and in the formula box there, enter this

=A1=""

Click on OK.

Hope this helps.

Was this answer helpful?

0 comments No comments

0 additional answers

Sort by: Most helpful