Conditional formatting for cell based on value of adjacent cell

brendanatm

New Member
Joined
Jun 9, 2023
Messages
2
Office Version
  1. 2016
Platform
  1. Windows
Hi all!

Here's what I'm trying to do. I have two columns A & B. A is the balance and B is the Total Load Required.

If the value in any cell is column B is less than what's in the adjacent value in column A, then I want the cell in column B to go red or whatever color. In the example below, I would want this conditionally formatting to make cells B3 and B5 red sincce those values are less than what's in cells A3 and A5. Make sense? How do I do it? Any help would be AWESOME! Thanks!

1686313770179.png
 

Excel Facts

Links? Where??
If Excel says you have links but you can't find them, go to Formulas, Name Manager. Look for old links to dead workbooks & delete.
Hi & welcome to MrExcel.
Select B2 downwards & in CF new rule, use a formula & use
Excel Formula:
=B2<A2
and select the format you want.
 
Upvote 0
Thank you, but that actually did the opposite of what I wanted and it somehow highlighted the B4 cell which is equal to the A4 cell. Any other ideas? Also, which type of rule should I choose? Here are my options...(second screenshot)

1686314746903.png


1686315202433.png
 

Attachments

  • 1686315165429.png
    1686315165429.png
    62.1 KB · Views: 5
Upvote 0
You have selected the entire column rather than B2 down. Therefore the formula should be B1 & A1 as it must match the 1st row in the applies to range.
 
Upvote 0

Forum statistics

Threads
1,223,887
Messages
6,175,199
Members
452,617
Latest member
Narendra Babu D

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