Forum Discussion
JPScottIII
Nov 13, 2021Copper Contributor
MIN function exclude "Zero" values - Non Consecutive group of cells
I am struggling with ignore zero values when the group of cells to be tested is not a consecutive range The function "=MIN(D7,M7,V7,AE7,AN7)" works fine but I want to ignore lowest value if AE7 a...
Martin_Angosto
Jul 11, 2024Iron Contributor
SergeiBaklan
Jul 11, 2024MVP
If no zero formula returns second smallest.
If two or more zeroes formula returns zero.
- Martin_AngostoJul 11, 2024Iron Contributor
- SergeiBaklanJul 11, 2024MVP
One more variant
=MIN( CHOOSE( ROW(A1:A4), IF(A1,A1), IF(C25,C25), IF(E4,E4), IF(G5,G5)))
- Martin_AngostoJul 11, 2024Iron Contributor
Interesting!
Just replacing MIN by SMALL to meet Tom's requirement of retrieveing the second smallest number and beautiful alternative.
- SergeiBaklanJul 11, 2024MVP