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

Round to nearest half hour?
Use =MROUND(A2,"0:30") to round to nearest half hour. Use =CEILING(A2,"0:30") to round to next half hour.
Thanks for letting us know it has been solved.
 
Upvote 0

Forum statistics

Threads
1,224,822
Messages
6,181,165
Members
453,021
Latest member
Justyna P

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