Good Afrternoon Sir. Please is there any formula to lock a cell based on criteria? For example if A1 is empty, B1 should be locked (Prevent input). If C2 is is empty, C5 should be locked (Cannot receiving any typing/info).
Is there a formula like that?
pecoflyer
Do You mean something like this?
... but ...
do it work with Conditional Formatting?
or
do it help with Cell Lock to be based on Formula?
Isn't that basic action before any Protect sheet -task?
I don't think @shili12 is correct.
I would explore doing this with Data Validation.
Select cell C5, bring up its Data Validation dialogue and complete as follows:
It is important that the Ignore blank tickbox is unticked as in the picture.
Then you can go to the Error Alert tab and provide an appropriate message to the user: