Nice a big help I made a few adjustments In Cell N2 I enter my Set Point (264.5) I can get my Leading value by:
Formula:
=INDEX($B$2:$B$13,MIN(IF($E$2:$J$13>$N$2,ROW($E$2:$J$13)))-ROW($E$1:$J$1)+1)
and even the Column Letter for the leading value by:
Formula:
=INDEX($E$1:$J$1,MIN(IF($E$2:$J$13>$N$2,ROW($E$2:$J$13)))-ROW($E$1:$J$1)+1)
For the Lagging value I get the correct value by:
Formula:
=INDEX($B$2:$B$13,MAX(IF($E$2:$J$13<$N$2,ROW($E$2:$J$13)))-ROW($E$1:$J$1)+1)
However for the lagging column letter I enter:
Formula:
=INDEX($E$1:$J$1,MAX(IF($E$2:$J$13<$N$2,ROW($E$2:$J$13)))-ROW($E$2:$J$2)+1)
But get #REF!
While troubleshooting I entered a 1 and 2 as test values in this formula and get the correct column letter but do not understand how it is working:
Formula:
=INDEX($E$1:$J$1,MAX(IF($E$2:$J$13<$N$2,1,2)))
Cheers
Bookmarks