both formulas are complex
The main reason for this is that you allow several comparison signs at the same time in a table (being a unique combination of test and area).
This formula works well when the table (being a unique combination of test and area) contains 1 or more times the comparison sign >= in combination with 0 or 1 time <.
And the formula also works well when the table contains 1 or more of the comparison sign <= in combination with 0 or 1 times >.
Even when the table is not sorted properly.
The formula does not work correctly when a table contains more than 2 times the comparison sign > in combination with 0 or 1 time <=.
This table can always be converted to a table with 1 or more times the comparison sign <= in combination with 0 or 1 time >.
The formula also does not work properly if a table contains more than 2 times the comparison sign > in combination with 0 or 1 time <=.
This table can always be converted to a table with 1 or more times the comparison sign >= in combination with 0 or 1 time <.
Please try in E4 and copy to I4 and M4:
Bookmarks