Conditional format

Fester675

Board Regular
Joined
Sep 16, 2016
Messages
141
Hi I need some help please!

I have 3 cells - A1 contains a value; B1 contains a value; and C1 is to be formatted with a RAG status colour.

If(A1>B1) then C1 should be filled green
If(A1=B1) then C1 should be filled amber
If(A1 <B1) then C1 should be filled red
 

Excel Facts

What is the last column in Excel?
Excel columns run from A to Z, AA to AZ, AAA to XFD. The last column is XFD.
Just set up multiple Conditional Formats.

For the first one, select cell C1, go to Conditional Formatting, choose the formula option and enter this formula:
Code:
=$A1 > $B1
and choose your green color option.

Repeat the process for your other conditions.
 
Upvote 0
You will need to make multiple rules in conditional formatting

use the formula in conditional formatting and select the green formatting
Code:
=A1>B1

use this and select amber formatting
Code:
=A1=B1

your formula got cut off but I am assuming you want to test if A1 is less than B1 and select your formatting
Code:
=A1 < B1
<b1[ html="" CODE]<=""></b1[>
 
Last edited:
Upvote 0

Forum statistics

Threads
1,223,903
Messages
6,175,284
Members
452,630
Latest member
OdubiYouth

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