简体   繁体   中英

Format another cell based on this cell value

Is it possible based on current cell value, format another cell? Maybe I am overcomplicating things, but what I need to achieve is to display a message in a cell if the file is in Protected Mode. Once a user clicks "Enable Editing" this message should disappear. So what I thought of doing is have a cell set to the message. Then have another cell change this is cell if some calculation is correct. Since it won't be able to calculate until Editing is enabled, the message will display. And once a user Enables Editing, the message will be gone. Is there a direct way to do this or a workaround that will do the trick. Thank you.

have you tried using an IF formula?

=IF(cell=correct,"","Displayed Message")

You can replace the cell=correct with your condition check that you mentioned in your post. Leave the next set of quotes blank (so if that condition is met no message will appear) Change the contents of "Displayed Message" to whatever you want to display if your condition is not correct ie. your sheet is in protected mode.

I found a solution. Still using conditional formatting. I set the value of another cell to a formula (=2+2) and then in my cell check if the value is 4 then change format. Guess could do the same with the IF. Just needed to think from a different angle.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM