I'm trying to highlight cells within 5% of goal green and those that are outside the range to be highlighted red
I tried to use conditional formatting formula and wrote it as the following, but it's not working out.
=(ABS(A2-$A$1)/$A$1)<=0.05
Where is my error? Also, where should my anchors be for the first cell I select? The goal value is a fixed value/cell so I anchored that one, not sure how to place the anchors if I want the formula rule to apply to all the cells in the range I select.
[TABLE="class: grid, width: 500"]
<tbody>[TR]
[TD][/TD]
[TD]A[/TD]
[TD]B[/TD]
[TD]C[/TD]
[/TR]
[TR]
[TD]1[/TD]
[TD]405[/TD]
[TD]<-Goal[/TD]
[TD][/TD]
[/TR]
[TR]
[TD]2[/TD]
[TD]468[/TD]
[TD]414[/TD]
[TD]534[/TD]
[/TR]
[TR]
[TD]3[/TD]
[TD]474[/TD]
[TD]420[/TD]
[TD]564[/TD]
[/TR]
[TR]
[TD]4[/TD]
[TD]456[/TD]
[TD]426[/TD]
[TD]546[/TD]
[/TR]
[TR]
[TD]5[/TD]
[TD]468[/TD]
[TD]432[/TD]
[TD]600[/TD]
[/TR]
</tbody>[/TABLE]
I tried to use conditional formatting formula and wrote it as the following, but it's not working out.
=(ABS(A2-$A$1)/$A$1)<=0.05
Where is my error? Also, where should my anchors be for the first cell I select? The goal value is a fixed value/cell so I anchored that one, not sure how to place the anchors if I want the formula rule to apply to all the cells in the range I select.
[TABLE="class: grid, width: 500"]
<tbody>[TR]
[TD][/TD]
[TD]A[/TD]
[TD]B[/TD]
[TD]C[/TD]
[/TR]
[TR]
[TD]1[/TD]
[TD]405[/TD]
[TD]<-Goal[/TD]
[TD][/TD]
[/TR]
[TR]
[TD]2[/TD]
[TD]468[/TD]
[TD]414[/TD]
[TD]534[/TD]
[/TR]
[TR]
[TD]3[/TD]
[TD]474[/TD]
[TD]420[/TD]
[TD]564[/TD]
[/TR]
[TR]
[TD]4[/TD]
[TD]456[/TD]
[TD]426[/TD]
[TD]546[/TD]
[/TR]
[TR]
[TD]5[/TD]
[TD]468[/TD]
[TD]432[/TD]
[TD]600[/TD]
[/TR]
</tbody>[/TABLE]