Hello,
Can anyone help me fix these formula so that when the number I'm searching for is "higher" than what's in the search parameter I don't get the #NUM! error? I'd be fine with it showing a negative number or zero. Thanks in advance.
=IF(COUNTIF(A1:A5,B1)>=1,A1:A10,LARGE(A1:A5,COUNTIF(A1:A10,">"&B1)))
=IF(COUNTIF(A1:A5,B1)>=1,A1:A10,SMALL(A1:A5,COUNTIF(A1:A10,"<"&B1)))
A1: 5
A2: 8
A3: 9
A4: 7
A5: 1
B1: 11
Bookmarks