Conditional formating

timsims

Board Regular
Joined
Nov 9, 2009
Messages
84
Hi,

I would like to do the conditional formatting in cell F10 so that if the value is more than the total of E20 it goes red and if it is within 2000 of the total of E20 it goes Orange.

Making it go red if it is more than I found easy but, how would I make it go Orange if it's within 2000 of the total?

Thanks
 

Excel Facts

VLOOKUP to Left?
Use =VLOOKUP(A2,CHOOSE({1,2},$Z$1:$Z$99,$Y$1:$Y$99),2,False) to lookup Y values to left of Z values.
Hi,

I would like to do the conditional formatting in cell F10 so that if the value is more than the total of E20 it goes red and if it is within 2000 of the total of E20 it goes Orange.

Making it go red if it is more than I found easy but, how would I make it go Orange if it's within 2000 of the total?

Thanks
I used to work with a guy named Tim Sims!

Need a better definition of "within 2000". Does that mean +/- 2000? That could also satisfy the condition of "if the value is more than the total of E20".

:confused:
 
Upvote 0
I used to work with a guy named Tim Sims!

Need a better definition of "within 2000". Does that mean +/- 2000? That could also satisfy the condition of "if the value is more than the total of E20".

:confused:

There was also a Tim Sims in Muriel's Wedding and the guy in the new Natwest advert is called Tim Sims, i never hear the end of it!

The number in cell E20 is usually around 4000, so, say it was 4000 then if the value in F10 got to 2000 it would go Orange and when it got to 4000 it would go red.

Please remember though that the number in E20 does change.

Thanks
 
Upvote 0
There was also a Tim Sims in Muriel's Wedding and the guy in the new Natwest advert is called Tim Sims, i never hear the end of it!

The number in cell E20 is usually around 4000, so, say it was 4000 then if the value in F10 got to 2000 it would go Orange and when it got to 4000 it would go red.

Please remember though that the number in E20 does change.

Thanks
Ok, what version of Excel are you using?
 
Upvote 0
OK, try this...

For RED...

• Select cell F10
• Goto the Home tab>Styles>Conditional Formatting>Manage rules>New rule>
• Use a formula to determine which cells to format
• Enter this formula in the box below:
• =AND(COUNT(E20,F10)=2,F10>=E20)
• Click the Format button
• Select the desired style(s)
• OK out

For ORANGE...

Repeat the above but use this formula:

=AND(COUNT(E20,F10)=2,F10>=E20-2000,F10<E20)
 
Upvote 0

Forum statistics

Threads
1,224,517
Messages
6,179,239
Members
452,898
Latest member
Capolavoro009

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