Just a heads-up Tom
If you give the cell(s) on the other sheet a name, you can use the name in your
CF>Formula is.
Gord Dibben MS Excel MVP
On Fri, 29 Feb 2008 12:53:02 -0800, Tom Hutchins
<(E-Mail Removed)> wrote:
>Conditional Formatting doesn't let you reference cells on another sheet (at
>least, not in XL 2003). So, pick any out-of-the-way cell in the worksheet
>where the conditional formatting will be applied, and put a formula in it to
>pull the value from the cell on the other sheet. For example, on Sheet2, cell
>AA1, enter:
> =Sheet1!B10
>You can hide the row or column this cell is in.
>
>Now click on the cell where you want the color to change conditionally.
>Select Conditional Formatting from the Format menu. In Condition 1, set
>Formula Is to this:
> =(AA1<0.95)
>Click the Format button, select red on the Patterns tab, and click OK.
>
>Now click Add. In Condition 2, set Formula Is to this:
> =(AA1>0.97)
>Click the Format button, select green on the Patterns tab, and click OK.
>
>Click Add again. In Condition 3, set Formula Is to this:
> =(AA1>0.95)
>Click the Format button, select yellow on the Patterns tab, and click OK.
>Finally, click OK to close the Conditional Formatting dialog.
>
>Hope this helps,
>
>Hutch
>
>"Dasachtach" wrote:
>
>> I'm trying to figure out how to write code that will change the color of a
>> cell in one worksheet when a numerical value in a cell of another worksheet
>> in the same workbook is added or changed. For example:
>>
>> I want a cell in a worksheet to be red if a cell value in another worksheet
>> is < 95%
>> "" "" "" yellow ""
>> 95% - 97%
>> "" "" "" green ""
>> >97%
>> Any ideas?
>>
>> Mike
|