Conditional formatting

lasty48

New Member
Joined
Mar 22, 2013
Messages
1
Hello

I have a spreadsheet where i have applied some conditional formatting. Where if A2 - B2 = X and X is = +/- 2 its green, if its between = +/-4 its yellow and if its greater than 4 its red. This part i have running nicely down my page A3-B3 etc etc.

but what i now want to do is if the difference between X1 and X2 is greater than 4 i want it fill X2 as red even if it was or should be green from the original CF above, if not than keep it the orginal colour, then work on the difference bewteen x2 and x3 etc down the column.

Cheers

Lasty
 

Excel Facts

Who is Mr Spreadsheet?
Author John Walkenbach was Mr Spreadsheet until his retirement in June 2019.
4 conditions required.
In this order with "Stop if condition is true" ticked

=(X2-X1 > 4)
format as red for X2
=ABS(A2-B2 > 4)
format as yellow
=ABS(A2-B2 > 2)
format as red
=ABS(A2-B2 < 2)
format as green
 
Upvote 0

Forum statistics

Threads
1,214,540
Messages
6,120,106
Members
448,945
Latest member
Vmanchoppy

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