Use array formulas. In the following examples, the values ββyou are checking are in A2:A10 .
Maximum minus:
=MAX(IF(A2:A10<0,A2:A10))
Press Ctrl + Shift + Enter while entering a formula. Then the formula appears in brackets with {...}.
Minimum positive:
=MIN(IF(A2:A10>=0,A2:A10))
Also enter the array formula by pressing Ctrl + Shift + Enter
Excellll
source share