W westend9876 Member Jan 17, 2015 #1 I need to find the highest value in a column a < given value and > 0 AND I need to find the lowest value in a column a > given value and >0 I attached a sample workbook and highlighted the two cells in yellow where I want to retrieve the value Attachments example.xlsx example.xlsx 9 KB · Views: 6
I need to find the highest value in a column a < given value and > 0 AND I need to find the lowest value in a column a > given value and >0 I attached a sample workbook and highlighted the two cells in yellow where I want to retrieve the value
PaulF Active Member Jan 17, 2015 #2 =SMALL(A:A,COUNTIF(A:A,0)+1) =LARGE(A:A,COUNTIF(A:A,0)-1) See attachment... This work for you ?? Paul Attachments Answer_Small_Large.xlsx Answer_Small_Large.xlsx 10.1 KB · Views: 7
=SMALL(A:A,COUNTIF(A:A,0)+1) =LARGE(A:A,COUNTIF(A:A,0)-1) See attachment... This work for you ?? Paul
azumi Active Member Jan 17, 2015 #3 Maybe: =IF(B9="L",MAX(IF(((A1:A59<>0)*(A1:A59<D9)),A1:A59)),"") =IF(B10="H",MIN(IF(A1:A59<>0,IF(A1:A59>D9,A1:A59))),"") Array formula
Maybe: =IF(B9="L",MAX(IF(((A1:A59<>0)*(A1:A59<D9)),A1:A59)),"") =IF(B10="H",MIN(IF(A1:A59<>0,IF(A1:A59>D9,A1:A59))),"") Array formula
W westend9876 Member Jan 18, 2015 #4 PaulF said: =SMALL(A:A,COUNTIF(A:A,0)+1) =LARGE(A:A,COUNTIF(A:A,0)-1) See attachment... This work for you ?? Paul Click to expand... Hi Paul. There was a slight error in my explanation. I attached an updated workbook with the answer. Attachments example.xlsx example.xlsx 9.2 KB · Views: 9
PaulF said: =SMALL(A:A,COUNTIF(A:A,0)+1) =LARGE(A:A,COUNTIF(A:A,0)-1) See attachment... This work for you ?? Paul Click to expand... Hi Paul. There was a slight error in my explanation. I attached an updated workbook with the answer.
W westend9876 Member Jan 18, 2015 #5 azumi said: Maybe: =IF(B9="L",MAX(IF(((A1:A59<>0)*(A1:A59<D9)),A1:A59)),"") =IF(B10="H",MIN(IF(A1:A59<>0,IF(A1:A59>D9,A1:A59))),"") Array formula Click to expand... Hi Azumi. This formula works. Is there anyway to accomplish my goal without an array?
azumi said: Maybe: =IF(B9="L",MAX(IF(((A1:A59<>0)*(A1:A59<D9)),A1:A59)),"") =IF(B10="H",MIN(IF(A1:A59<>0,IF(A1:A59>D9,A1:A59))),"") Array formula Click to expand... Hi Azumi. This formula works. Is there anyway to accomplish my goal without an array?