XL: Returning the Smallest Number Greater Than Zero

ID: Q60116


The information in this article applies to:


SUMMARY

The Microsoft Excel MIN function returns the smallest number in a list of arguments. If the smallest number is zero (0), the function returns zero.

To return the smallest number greater than zero, enter the following array formula


   =MIN(IF(A1:A10>0,A1:A10)) 


where A1:A10 represents the range of the numbers. This returns an array of a single value with the smallest positive number.

NOTE: The formula above is an array formula. To enter array formulas in Microsoft Excel for Windows or OS/2, press CTRL+SHIFT+ENTER. To enter array formulas in Microsoft Excel for Macintosh, press COMMAND+RETURN.

For more information about the MIN function, see page 152 in the "Microsoft Excel Function Reference" version 3.0 manual. If you are using Excel 2.20, see page 60 in the "Microsoft Excel Functions and Macros" version 2.2 manual.

For more information on arrays, see pages 268-281 in the "Microsoft Excel User's Guide" version 3.0 manual. If you are using Excel 2.20, see pages 10-23 in the "Microsoft Excel Reference" version 2.2 manual.

Additional query words: XL98 XL97 XL7 XL5 XL4 XL3 XL2


Keywords          : xlformula 
Version           : WINDOWS: 7.0,7.0a; MACINTOSH:2.0,3.0,4.0,5.0,5.0a,98; os/2:2.0,3.0
Platform          : MACINTOSH WINDOWS 
Issue type        : kbinfo 

Last Reviewed: March 17, 1999