Thanks:  0
Likes:  0

# Thread: Conditional Formatting - Again!

1. If I have a cell containing a formula A1+A2+A3 which is conditionally formatted to turn blue if the resulting value is greater than (B1*0.7), how do I further expand this formula to incorporate a statement such as 'If C1 = "Turnip" then turn the cell blue only if the resulting value is greater than (B1*0.7+25) ?

I hope I have written this clearly enough to explain what I want to achieve. Oh, and this is not to be used in a turnip counting program if you were wondering. This is a purely hypothetical scenario!

2. On 2002-03-15 02:10, Mr Nick wrote:
If I have a cell containing a formula A1+A2+A3 which is conditionally formatted to turn blue if the resulting value is greater than (B1*0.7), how do I further expand this formula to incorporate a statement such as 'If C1 = "Turnip" then turn the cell blue only if the resulting value is greater than (B1*0.7+25) ?

I hope I have written this clearly enough to explain what I want to achieve. Oh, and this is not to be used in a turnip counting program if you were wondering. This is a purely hypothetical scenario!
The following seems to work:
Cell Value Is:: greater than:: =(b1*0.7)+if(c1="turnip",25,0)

3. On 2002-03-15 02:10, Mr Nick wrote:
If I have a cell containing a formula A1+A2+A3 which is conditionally formatted to turn blue if the resulting value is greater than (B1*0.7), how do I further expand this formula to incorporate a statement such as 'If C1 = "Turnip" then turn the cell blue only if the resulting value is greater than (B1*0.7+25) ?

I hope I have written this clearly enough to explain what I want to achieve. Oh, and this is not to be used in a turnip counting program if you were wondering. This is a purely hypothetical scenario!
=AND(E1>(B1*0.7+25),C1="Turnip")

where I assume that E1 is the target cell for cond format.

4. Try this in the conditional format dialog assuming the cell you want to format is D1)

Condition 1: Select "Formula Is" and type in the formula
=AND(\$C\$1="turnip";\$D\$1=\$B\$1*0.7)
Condition 2: Select "Formula Is" and type in the formula
=AND(\$C\$1<>"turnip";\$D\$1=\$B\$1*0.7+25)

Choose the same formatting for both conditions.

Marc

5. Thanks for the replies. With a crafty combination of all suggestions, the turnip counting world has been revolutionised!! Look out cabbages - here I come!

## User Tag List

#### Posting Permissions

• You may not post new threads
• You may not post replies
• You may not post attachments
• You may not edit your posts
•