Conditional Format based on actual values

abrig005

Board Regular
Joined
Jan 6, 2017
Messages
82
Office Version
  1. 365
Platform
  1. Windows
Hello, I want to change the value of a cell based on the value of another cell.
Example:
I want A1 to change color based on the value of A5.
Here are the values. I am not sure how to get them to change between two numbers e.g. 0 & 0.5, 0.5 & 1,5 etc.

Between 0 and 0.5 = Dark Green
Between 0.5 and 1.5 = Light Green
Between 1.5 and 2.5 = Yellow

Thank you!
 

Excel Facts

Select all contiguous cells
Pressing Ctrl+* (asterisk) will select the "current region" - all contiguous cells in all directions.
abrig005, Good afternoon.

As you plan to change the color of cell A1 depending on the content of that of another cell, in the case of A5, the best alternative is to use the formula option.


Try to use:

Select A1

Conditional Format Menu --> Using Formula

Rule 1

Type: =AND(A5>=0;A5<=0,5)
Set format fill color to DARK GREEN
OK

Rule 2
Type: =AND(A5>0,5;A5<=1,5)
Set format fill color to LIGHT GREEN
OK

Rule 3
Type: =AND(A5>1,5;A5<=2,5)
Set format fill color to YELLOW
OK

Please, tell us if this is what you want.
I hope it helps.
 
Upvote 0
Hi,

Or you can use "Format only cells that contain" option in CF, and enter the values you want for each condition.
 
Upvote 0

Forum statistics

Threads
1,214,915
Messages
6,122,214
Members
449,074
Latest member
cancansova

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