Hi,
You can try to use the Data Validation to get the result you need.
Select the Range you need- go to Data- Data Validation- Settings tab- Select Custom and enter the formula you need:
Select Error Alert tab- enter the Title and Error message you need to pop up:
The Result will showing:
Just checking in to see if the information was helpful. Please let us know if you would like further assistance.
If the response is helpful, please click "Accept Answer" and upvote it.
Note: Please follow the steps in our documentation to enable e-mail notifications if you want to receive the related email notification for this thread.