Hi All,
I'm struggling with a query on Excel.
I have some cells which i would like to change colour to Red amber and Green depending on where the number falls within a reference table
So my information table will automatically change Cell A2, B2, C2, D2 to red, amber or green depending on where that number falls within table 2 - Reference data
Table 1
[TABLE="width: 500"]
<tbody>[TR]
[TD][/TD]
[TD]A[/TD]
[TD]B[/TD]
[TD]C[/TD]
[TD]D[/TD]
[/TR]
[TR]
[TD]1[/TD]
[TD]Temple[/TD]
[TD]Sun[/TD]
[TD]Chapel[/TD]
[TD]Yard[/TD]
[/TR]
[TR]
[TD]2[/TD]
[TD]1[/TD]
[TD]5[/TD]
[TD]8[/TD]
[TD]10[/TD]
[/TR]
</tbody>[/TABLE]
Table 2
[TABLE="width: 500"]
<tbody>[TR]
[TD][/TD]
[TD]A[/TD]
[TD]B[/TD]
[TD]C[/TD]
[TD]D[/TD]
[TD]E[/TD]
[TD]F[/TD]
[TD]G[/TD]
[TD]H[/TD]
[/TR]
[TR]
[TD]1[/TD]
[TD][/TD]
[TD]RED[/TD]
[TD][/TD]
[TD]AMBER[/TD]
[TD][/TD]
[TD]GREEN[/TD]
[TD][/TD]
[TD]MAX[/TD]
[/TR]
[TR]
[TD]2[/TD]
[TD][/TD]
[TD]From[/TD]
[TD]To[/TD]
[TD]From[/TD]
[TD]To[/TD]
[TD]From[/TD]
[TD]To[/TD]
[TD][/TD]
[/TR]
[TR]
[TD]3[/TD]
[TD]Temple[/TD]
[TD]0[/TD]
[TD]3[/TD]
[TD]4[/TD]
[TD]6[/TD]
[TD]7[/TD]
[TD]10[/TD]
[TD]10[/TD]
[/TR]
[TR]
[TD]4[/TD]
[TD]Sun[/TD]
[TD]0[/TD]
[TD]3[/TD]
[TD]4[/TD]
[TD]5[/TD]
[TD]6[/TD]
[TD]11[/TD]
[TD]11[/TD]
[/TR]
[TR]
[TD]5[/TD]
[TD]Chapel[/TD]
[TD]0[/TD]
[TD]4[/TD]
[TD]5[/TD]
[TD]7[/TD]
[TD]8[/TD]
[TD]12[/TD]
[TD]12[/TD]
[/TR]
[TR]
[TD]6[/TD]
[TD]Yard[/TD]
[TD]0[/TD]
[TD]8[/TD]
[TD]9[/TD]
[TD]15[/TD]
[TD]16[/TD]
[TD]23[/TD]
[TD]23[/TD]
[/TR]
</tbody>[/TABLE]
I have 3 formulas in conditional formatting for each of the four cells in table 1. I've been using:
For cell A2
=and(A2>=B3,A2<=C3) Colour Red
=and(A2>=D3,A2<=E3) Colour Amber
=and(A2>=F3,A2<=F3) Colour Green
And i do this 3 times for each of the cells in the information table 1 = A2, B2, C2 & D2.
This works sometimes but not always and i'm totally confused as to why that is!
Any help will be welcomed. Thanks in advance
I'm struggling with a query on Excel.
I have some cells which i would like to change colour to Red amber and Green depending on where the number falls within a reference table
So my information table will automatically change Cell A2, B2, C2, D2 to red, amber or green depending on where that number falls within table 2 - Reference data
Table 1
[TABLE="width: 500"]
<tbody>[TR]
[TD][/TD]
[TD]A[/TD]
[TD]B[/TD]
[TD]C[/TD]
[TD]D[/TD]
[/TR]
[TR]
[TD]1[/TD]
[TD]Temple[/TD]
[TD]Sun[/TD]
[TD]Chapel[/TD]
[TD]Yard[/TD]
[/TR]
[TR]
[TD]2[/TD]
[TD]1[/TD]
[TD]5[/TD]
[TD]8[/TD]
[TD]10[/TD]
[/TR]
</tbody>[/TABLE]
Table 2
[TABLE="width: 500"]
<tbody>[TR]
[TD][/TD]
[TD]A[/TD]
[TD]B[/TD]
[TD]C[/TD]
[TD]D[/TD]
[TD]E[/TD]
[TD]F[/TD]
[TD]G[/TD]
[TD]H[/TD]
[/TR]
[TR]
[TD]1[/TD]
[TD][/TD]
[TD]RED[/TD]
[TD][/TD]
[TD]AMBER[/TD]
[TD][/TD]
[TD]GREEN[/TD]
[TD][/TD]
[TD]MAX[/TD]
[/TR]
[TR]
[TD]2[/TD]
[TD][/TD]
[TD]From[/TD]
[TD]To[/TD]
[TD]From[/TD]
[TD]To[/TD]
[TD]From[/TD]
[TD]To[/TD]
[TD][/TD]
[/TR]
[TR]
[TD]3[/TD]
[TD]Temple[/TD]
[TD]0[/TD]
[TD]3[/TD]
[TD]4[/TD]
[TD]6[/TD]
[TD]7[/TD]
[TD]10[/TD]
[TD]10[/TD]
[/TR]
[TR]
[TD]4[/TD]
[TD]Sun[/TD]
[TD]0[/TD]
[TD]3[/TD]
[TD]4[/TD]
[TD]5[/TD]
[TD]6[/TD]
[TD]11[/TD]
[TD]11[/TD]
[/TR]
[TR]
[TD]5[/TD]
[TD]Chapel[/TD]
[TD]0[/TD]
[TD]4[/TD]
[TD]5[/TD]
[TD]7[/TD]
[TD]8[/TD]
[TD]12[/TD]
[TD]12[/TD]
[/TR]
[TR]
[TD]6[/TD]
[TD]Yard[/TD]
[TD]0[/TD]
[TD]8[/TD]
[TD]9[/TD]
[TD]15[/TD]
[TD]16[/TD]
[TD]23[/TD]
[TD]23[/TD]
[/TR]
</tbody>[/TABLE]
I have 3 formulas in conditional formatting for each of the four cells in table 1. I've been using:
For cell A2
=and(A2>=B3,A2<=C3) Colour Red
=and(A2>=D3,A2<=E3) Colour Amber
=and(A2>=F3,A2<=F3) Colour Green
And i do this 3 times for each of the cells in the information table 1 = A2, B2, C2 & D2.
This works sometimes but not always and i'm totally confused as to why that is!
Any help will be welcomed. Thanks in advance