I want to change cell background colour of ANY cell in D5:D15 that is within + or - .05 of B5
B5 = 2.5 (is the reference cell)
D5:D15 = values that change dependent on another cell
In this example,
B5 = 2.5
D11 = 2.52,
So B5+0.05 = 2.55, D11= 2.52 so is below 2.55, so background colour is changed to green
and if the reverse, B5-0.05 = 2.45, D10 = 2.47, so it is above 2.45 then background colour is changed to orange
Col F is some testing of formula as a potential helper column for Condition Formating to use
B5 = 2.5 (is the reference cell)
D5:D15 = values that change dependent on another cell
In this example,
B5 = 2.5
D11 = 2.52,
So B5+0.05 = 2.55, D11= 2.52 so is below 2.55, so background colour is changed to green
and if the reverse, B5-0.05 = 2.45, D10 = 2.47, so it is above 2.45 then background colour is changed to orange
Col F is some testing of formula as a potential helper column for Condition Formating to use
Book1.xlsm | |||||||||
---|---|---|---|---|---|---|---|---|---|
A | B | C | D | E | F | G | |||
1 | |||||||||
2 | |||||||||
3 | Quantity | Variable values | |||||||
4 | |||||||||
5 | 2.5 | 1.44 | below | ||||||
6 | 1.62 | below | |||||||
7 | 1.81 | below | |||||||
8 | 2.16 | below | |||||||
9 | 2.34 | below | |||||||
10 | 2.47 | tt | |||||||
11 | 2.52 | tt | |||||||
12 | 2.71 | above | |||||||
13 | 2.88 | above | |||||||
14 | 3.06 | above | |||||||
15 | 3.24 | above | |||||||
16 | |||||||||
Sheet1 |
Cell Formulas | ||
---|---|---|
Range | Formula | |
F5:F15 | F5 | =IF(D5>($B$5+0.05),"above",IF(D5<($B$5-0.05),"below","tt")) |