Home |
Search |
Today's Posts |
|
#1
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
How would I do this please?
If any one of the cells in the range("Block_Three") = 8 then shade the range("Block_Three") yellow. |
#2
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
if application.countif(Range("Block_Three"),8) 0 then
Range("Block_Three").Interior.ColorIndex = 6 End if or if only exactly 1 if application.countif(Range("Block_Three"),8) = 1 then Range("Block_Three").Interior.ColorIndex = 6 End if -- Regards, Tom Ogilvy "JJ" wrote in message ... How would I do this please? If any one of the cells in the range("Block_Three") = 8 then shade the range("Block_Three") yellow. |
#3
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
Fantastic Tom, thank you.
"Tom Ogilvy" wrote in message ... if application.countif(Range("Block_Three"),8) 0 then Range("Block_Three").Interior.ColorIndex = 6 End if or if only exactly 1 if application.countif(Range("Block_Three"),8) = 1 then Range("Block_Three").Interior.ColorIndex = 6 End if -- Regards, Tom Ogilvy "JJ" wrote in message ... How would I do this please? If any one of the cells in the range("Block_Three") = 8 then shade the range("Block_Three") yellow. |
#4
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
JJ,
Use Format -- Conditional Formatting in Excel. Highlight Block_Three and enter this formula in the dialog: =COUNTIF(Block_Three,8) Then choose yellow as the format. hth, Doug "JJ" wrote in message ... How would I do this please? If any one of the cells in the range("Block_Three") = 8 then shade the range("Block_Three") yellow. |
Reply |
Thread Tools | Search this Thread |
Display Modes | |
|
|
![]() |
||||
Thread | Forum | |||
Referencing a named range based upon Range name entry in cell | Excel Worksheet Functions | |||
Array as a "named range" - formula ok in cells, but error as "named range" | Excel Discussion (Misc queries) | |||
inserting a named range into new cells based on a named cell | Excel Discussion (Misc queries) | |||
Getting a named range from a cell value | Excel Worksheet Functions | |||
First and Last cell of a named range | Excel Programming |