conditional formatting

cloughie

New Member
Joined
Feb 6, 2018
Messages
11
[TABLE="width: 500"]
<tbody>[TR]
[TD]52[/TD]
[TD]45[/TD]
[TD]44
[/TD]
[/TR]
[TR]
[TD]100[/TD]
[TD]110[/TD]
[TD]99
[/TD]
[/TR]
[TR]
[TD]56[/TD]
[TD]64[/TD]
[TD]65[/TD]
[/TR]
[TR]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[/TR]
</tbody>[/TABLE]

Hi can anyone help me with the above?
I need to conditional format the third column so that if the cell is more than -5 of cell B then it highlights in red.
If column B is between -4 and -1 of column b then it should be amber.
 

Excel Facts

Pivot Table Drill Down
Double-click any number in a pivot table to create a new report showing all detail rows that make up that number
For amber
=AND(C1<B1-1,C1>B1-4)
For red
=C1>B1-5

Change the C1 & B1 to reflect the first row in the applies to range
 
Upvote 0
Hi

The html gobbled some characters in Fluff's first formula:

=AND(C1<b1-1,c1>B1-4)
 
Last edited:
Upvote 0
Thanks for that pgc01, I keep forgetting about the < & > characters :banghead:
 
Upvote 0

Forum statistics

Threads
1,223,911
Messages
6,175,331
Members
452,636
Latest member
laura12345

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