ExcelBanter

ExcelBanter (https://www.excelbanter.com/)
-   Excel Worksheet Functions (https://www.excelbanter.com/excel-worksheet-functions/)
-   -   2nd lowest Value in Array (https://www.excelbanter.com/excel-worksheet-functions/137733-2nd-lowest-value-array.html)

Dale

2nd lowest Value in Array
 
I need to return the 2nd lowest value in a contiguous number array but I want
to exclude zero values, how can I write this formula?

Peo Sjoblom

2nd lowest Value in Array
 
One way

=SMALL(IF(A1:A10<0,A1:A10),2)

needs to be entered with ctrl + shift & enter


--
Regards,

Peo Sjoblom


"Dale" wrote in message
...
I need to return the 2nd lowest value in a contiguous number array but I
want
to exclude zero values, how can I write this formula?




Harlan Grove[_2_]

2nd lowest Value in Array
 
"Peo Sjoblom" wrote...
One way

=SMALL(IF(A1:A10<0,A1:A10),2)

needs to be entered with ctrl + shift & enter


Standard quibble: condition should be 0. If negative and positive
values are 'valid', zero values should be as well.

Anyway, this could be done without array formulas using

=SMALL(A1:A10,COUNTIF(A1:A10,"<=0")+2)



All times are GMT +1. The time now is 12:01 AM.

Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
ExcelBanter.com