Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Excel Custom Validation when with Like Function

Tags:

excel

I am trying to enforce some excel validation using like function. IF A1 is not like "YES" then Do not allow the user to enter anything in Cell B1. Any help is appreciated. Thanks!

like image 526
John Avatar asked Dec 18 '25 06:12

John


1 Answers

For case sensitive:

=ISNUMBER(FIND("YES",A1))

For non case sensitive:

=ISNUMBER(SEARCH("YES",A1))

Both will return a number if the word is found and an error if not. The ISNUMBER will return FALSE if error and TRUE if number.

like image 93
Scott Craner Avatar answered Dec 20 '25 07:12

Scott Craner



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!