A family of Microsoft spreadsheet software with tools for analyzing, charting, and communicating data.
yet another alternative:
=SUMPRODUCT(MIN(1E+100*(A1:A5=0)+A1:A5))
This browser is no longer supported.
Upgrade to Microsoft Edge to take advantage of the latest features, security updates, and technical support.
Simple Question (I Think):
Trying to use the MIN Function, but do not want it to include 0.
Example: Have 5 Numbers: 10, 8, 6, 15,0. Trying to find a formula to give me the smallest number but not include the 0.
Thanks
A family of Microsoft spreadsheet software with tools for analyzing, charting, and communicating data.
Locked Question. This question was migrated from the Microsoft Support Community. You can vote on whether it's helpful, but you can't add comments or replies or follow the question.
Answer accepted by question author
yet another alternative:
=SUMPRODUCT(MIN(1E+100*(A1:A5=0)+A1:A5))
Answer accepted by question author
An alternative formula -
=AGGREGATE(15,6,A1:A5/(A1:A5<>0),1)
Answer accepted by question author
Hi,
assuming that 5 numbers are in cells A1:A5
in cell B1 write
=IF(MIN(A1:A5)<>0,MIN(A1:A5),SMALL(A1:A5,COUNTIF(A1:A5,0)+1))
Array formula.
=MIN(IF($A$1:$A$10 <>0,$A$1:$A$10))
Enter using CRTL + SHIFT + ENTER
Gord