• Hi All

    Please note that at the Chandoo.org Forums there is Zero Tolerance to Spam

    Post Spam and you Will Be Deleted as a User

    Hui...

  • When starting a new post, to receive a quicker and more targeted answer, Please include a sample file in the initial post.

Cell Lock to be based on Formula

Pasadu

Member
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?

Thank you.
 
pecoflyer
Do You mean something like this?
Screenshot 2023-01-09 at 10.53.32.png
... 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:

82365

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:

82366
 
Last edited:
p45cal
... better ...
Still, copy any 'clean' cell cell and paste to cell C5 ... that will clear Data Validation
or deletion that row.
 
p45cal
... better ...
Still, copy any 'clean' cell cell and paste to cell C5 ... that will clear Data Validation
or deletion that row.
Sure, delete the sheet, that should put a spanner in the works.
Of course you could unlock some cells and protect the sheet as well.
 
Back
Top