i've been trying to get status in cell based on reference value A3:A. The reference value compare to another column with several level. But it seems my logic seems a bit off as if i put reference value a number, the result in B3:B is either give a result or give #value result. I've attached the note problem and link to the google doc.
Any clue or solution will be great. Thank you
here's my formula =if(and($A5<=C5,$A5>D5),C$1,if(and($A5<=D5,$A5>E5),D$1,if(and($A5<=E5,$A5>F5),E$1,if(and($A5<=F5,$A5>G5),F$1,if(and($A5<=G5,$A5>=H5),G$1,if(and($A5<H5,$A5>=I5),H$1,if(and($A5<I5,$A5>J5),I$1,if(and($A5<=J5,$A5>K5),J$1,if(and($A5<=K5,$A5>L5),K$1,if(and($A5<=L5,$A5>M5),L$1,if(and($A5<=M5,$A5>N5),M$1,if(and($A5<=N5,$A5>=O5),N$1,if(and($A5<O5,$A5>=P5),O$1,if(and($A5<P5,$A5>AC5),P$1,if(and($A5>=Q5,$A5<R5),Q$1,if(and($A5>=R5,$A5<S5),R$1,if(and($A5>=S5,$A5<T5),S$1,if(and($A5>=T5,$A5<U5),T$1,if(and($A5>=U5,$A5<V5),U$1,if(and($A5>=V5,$A5<W5),V$1,if(and($A5<=AC5),AC$1,if(and($A5>=W5,$A5<X5),W$1,if(and($A5>=X5,$A5<Y5),X$1,if(and($A5>=Y5,$A5<Z5),Y$1,if(and($A5>=Z5,$A5<AA5),Z$1,if(and($A5>=AA5,$A5<AB5),AA$1,if($A5>=AB5,AB$1,"")))))))))))))))))))))))))))
i expect the formula can be optimized so it will give a status for any reference value , not a #value.
If any modification or better suggestion arise, it will be great.
Thank you

Match()worksheet function (but instead of "Exact match", use a "smaller than" or "larger than" option)?