Conditional formatting based on another value

keymoo

New Member
Joined
May 31, 2012
Messages
19
I have two number columns A and B.

I want to highlight column A with either a GREEN fill or RED fill.

If the value of A is greater than B*0.95 AND A is less than B*1.1 fill it GREEN.
If the value of A is greater than or equal to B*1.1 OR A is less than or equal to B*0.95 fill it RED.

Been struggling to get this working, thanks for looking.

I'm using Office 365 latest version.
 

Fluff

MrExcel MVP, Moderator
Joined
Jun 12, 2014
Messages
32,438
Office Version
365
Platform
Windows
Assuming your data starts in A2, select A2:a & last row and use this formula for green
=AND(A2>B2*0.95, A2<B2*1.1)
and this for red
=AND(A2<>"",OR(A2<=B2*0.95, A2>=B2*1.1))
 

Forum statistics

Threads
1,082,558
Messages
5,366,309
Members
400,882
Latest member
zaldy_a

Some videos you may like

This Week's Hot Topics

Top