Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 989
Default Use of CELL("protect") in conditional formatting in Excel 07

I have seen this discussed before but have tried several formulas and have
not been able to do what I want to do. It is theoretically very simple: I
want to use conditional formatting on an entire worksheet, and for every cell
that is NOT locked, I want it to be shaded/filled with a color. I also have
values in my worksheet that are errors, and I read that conditional
formatting will not work with cells that have errors. How do I get around
this?

I tried:

=NOT(CELL("protect"))
=IF(CELL("protect") = "0",TRUE,FALSE)
=CELL("protect")

All with the 'applies to' field set to =$A$1:$I$35 (this is the effective
size of my worksheet) and the 'Stop if True' box unchecked.
  #2   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 15,768
Default Use of CELL("protect") in conditional formatting in Excel 07

You need to include the cell reference:

=CELL("protect",A1)=0

By default all cells are formatted as locked but they're not literally
locked until you apply sheet protection.

--
Biff
Microsoft Excel MVP


"Mark" wrote in message
...
I have seen this discussed before but have tried several formulas and have
not been able to do what I want to do. It is theoretically very simple: I
want to use conditional formatting on an entire worksheet, and for every
cell
that is NOT locked, I want it to be shaded/filled with a color. I also
have
values in my worksheet that are errors, and I read that conditional
formatting will not work with cells that have errors. How do I get around
this?

I tried:

=NOT(CELL("protect"))
=IF(CELL("protect") = "0",TRUE,FALSE)
=CELL("protect")

All with the 'applies to' field set to =$A$1:$I$35 (this is the effective
size of my worksheet) and the 'Stop if True' box unchecked.



  #3   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 989
Default Use of CELL("protect") in conditional formatting in Excel 07

The formula

=IF(CELL("protect",A1) = 0,TRUE,FALSE)

worked. Thanks.

"T. Valko" wrote:

You need to include the cell reference:

=CELL("protect",A1)=0

By default all cells are formatted as locked but they're not literally
locked until you apply sheet protection.

--
Biff
Microsoft Excel MVP


"Mark" wrote in message
...
I have seen this discussed before but have tried several formulas and have
not been able to do what I want to do. It is theoretically very simple: I
want to use conditional formatting on an entire worksheet, and for every
cell
that is NOT locked, I want it to be shaded/filled with a color. I also
have
values in my worksheet that are errors, and I read that conditional
formatting will not work with cells that have errors. How do I get around
this?

I tried:

=NOT(CELL("protect"))
=IF(CELL("protect") = "0",TRUE,FALSE)
=CELL("protect")

All with the 'applies to' field set to =$A$1:$I$35 (this is the effective
size of my worksheet) and the 'Stop if True' box unchecked.




  #4   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 15,768
Default Use of CELL("protect") in conditional formatting in Excel 07

You don't need the IF function but it will work equally as well.

Thanks for the feedback!

--
Biff
Microsoft Excel MVP


"Mark" wrote in message
...
The formula

=IF(CELL("protect",A1) = 0,TRUE,FALSE)

worked. Thanks.

"T. Valko" wrote:

You need to include the cell reference:

=CELL("protect",A1)=0

By default all cells are formatted as locked but they're not literally
locked until you apply sheet protection.

--
Biff
Microsoft Excel MVP


"Mark" wrote in message
...
I have seen this discussed before but have tried several formulas and
have
not been able to do what I want to do. It is theoretically very simple:
I
want to use conditional formatting on an entire worksheet, and for
every
cell
that is NOT locked, I want it to be shaded/filled with a color. I also
have
values in my worksheet that are errors, and I read that conditional
formatting will not work with cells that have errors. How do I get
around
this?

I tried:

=NOT(CELL("protect"))
=IF(CELL("protect") = "0",TRUE,FALSE)
=CELL("protect")

All with the 'applies to' field set to =$A$1:$I$35 (this is the
effective
size of my worksheet) and the 'Stop if True' box unchecked.






Reply
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules

Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
Excel - Golf - how to display "-2" as "2 Under" or "4"as "+4" or "4 Over" in a calculation cell Steve Kay Excel Discussion (Misc queries) 2 August 8th 08 01:54 AM
conditional formatting "if part of cell contents contains string" tom ossieur Excel Worksheet Functions 1 March 13th 07 11:11 AM
Help!!! Enter "7" in a cell and Excel changes the "7" to "11" immediately!!! [email protected] Excel Discussion (Misc queries) 3 January 5th 07 02:18 PM
Add "Protect ALL Sheets" that is the same as "Protect Sheet" KLLuoma Excel Worksheet Functions 0 July 27th 06 07:55 PM
inserting a conditional "go to" command on a excel "if" function velasques Excel Worksheet Functions 5 March 10th 06 08:16 PM


All times are GMT +1. The time now is 05:07 PM.

Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
Copyright ©2004-2025 ExcelBanter.
The comments are property of their posters.
 

About Us

"It's about Microsoft Excel"