Conditional Formatting for Range

bruntonomo

Board Regular
Joined
Jul 29, 2018
Messages
67
Office Version
  1. 365
  2. 2016
Platform
  1. Windows
***THIS HAS BEEN SOLVED - MY APOLOGIES***

I'm looking to format a cell based on its value versus the value of another cell. I know how to format cells based on comparison of cell values, but my problem is I'm not sure what the formula would be in my instance.

My scenario is that I want to format a cell in green if it's within .5 of the cell to the right. If the left cell's value is greater than the right cell, then it would also be green. If the value is more than .5 below the cell to the right, it should be formatted red.

3.5 / 4 = 3.5 (green)
5 / 4 = 5 (green)
3.4 / 4 = 3.4 (red)

The kicker is I need the formula to be flexible in that it references the right cell and can calculate what .5 less than the value of that cell is, and make the correct formatting. Can someone help with a formula and give directions for what needs to be done with conditional formatting?
 
Last edited:

Excel Facts

Which lookup functions find a value equal or greater than the lookup value?
MATCH uses -1 to find larger value (lookup table must be sorted ZA). XLOOKUP uses 1 to find values greater and does not need to be sorted.
Thanks for letting us know it has been solved.
 
Upvote 0

Forum statistics

Threads
1,223,894
Messages
6,175,254
Members
452,623
Latest member
Techenthusiast

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