in A2, use

=IFERROR(MAX(IF(VLOOKUP($A$1,$A$4:$J$12,COLUMN($A$4:$J$4),FALSE)<>"",COLUMN($A$4:$J$4))),"Out of Area")

And change all the other formulas from

=OLDFormula
to
=IFERROR(OldFormula,"Out of Area")