Change Font Colour If Cell Less Than Another Cell

FatalLordes

New Member
Joined
Dec 22, 2017
Messages
26
Hi All. How do I use conditional formatting to say look at the value in cell B18 and if it is less than the value in B10, turn the font colour red. I want to compare B18 to B24 and do that, always comparing to B10. I will eventually want to do exactly the same again but changing B for C. How do I do that. I had a go and B18 changed to red, which is should, but none of the others did even though I highlighted those cells when I created the conditional formula so I obviously did it wrong. Help! :)

1693358540886.png
 

Excel Facts

Repeat Last Command
Pressing F4 adds dollar signs when editing a formula. When not editing, F4 repeats last command.
If you want Cells B18:B24 to be highlighted if less than B10 then

Choose cells B18:B24
Use formula for conditional formatting
Excel Formula:
=B18<B$10

Using Dollar sign is important as it makes Cell B10 static in one direction (downward) but you can use same rule in other columns like C as B is not static only row 10 is static.

If you want to compare with B10 only no matter which column it is then use -
Excel Formula:
=B18<$B$10

Hope it helps
 
Upvote 0
Solution
If you want Cells B18:B24 to be highlighted if less than B10 then

Choose cells B18:B24
Use formula for conditional formatting
Excel Formula:
=B18<B$10

Using Dollar sign is important as it makes Cell B10 static in one direction (downward) but you can use same rule in other columns like C as B is not static only row 10 is static.

If you want to compare with B10 only no matter which column it is then use -
Excel Formula:
=B18<$B$10

Hope it helps
Vunderbah! Thank you so much! That worked. So it I want to do the same for column C or more, I would actually need to create a new CF rule, correct? Or is there some way to say span that same rule across multiple columns. This is what the rule looks like presently:
1693359835304.png
 

Attachments

  • 1693359809548.png
    1693359809548.png
    9 KB · Views: 1
Upvote 0

Forum statistics

Threads
1,215,124
Messages
6,123,187
Members
449,090
Latest member
bes000

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