Conditional Formatting - Again!

Mr Nick

Board Regular
Joined
Mar 11, 2002
Messages
95
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!
 

Excel Facts

Difference between two dates
Secret function! Use =DATEDIF(A2,B2,"Y")&" years"&=DATEDIF(A2,B2,"YM")&" months"&=DATEDIF(A2,B2,"MD")&" days"
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)
 
Upvote 0
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.

Aladin
 
Upvote 0
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
 
Upvote 0
Thanks for the replies. With a crafty combination of all suggestions, the turnip counting world has been revolutionised!! Look out cabbages - here I come!
 
Upvote 0

Forum statistics

Threads
1,214,516
Messages
6,119,976
Members
448,934
Latest member
audette89

We've detected that you are using an adblocker.

We have a great community of people providing Excel help here, but the hosting costs are enormous. You can help keep this site running by allowing ads on MrExcel.com.
Allow Ads at MrExcel

Which adblocker are you using?

Disable AdBlock

Follow these easy steps to disable AdBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the icon in the browser’s toolbar.
2)Click on the "Pause on this site" option.
Go back

Disable AdBlock Plus

Follow these easy steps to disable AdBlock Plus

1)Click on the icon in the browser’s toolbar.
2)Click on the toggle to disable it for "mrexcel.com".
Go back

Disable uBlock Origin

Follow these easy steps to disable uBlock Origin

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back

Disable uBlock

Follow these easy steps to disable uBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back
Back
Top