XL: Returning the Smallest Number Greater Than Zero

Last reviewed: February 2, 1998
Article ID: Q60116
The information in this article applies to:
  • Microsoft Excel 98 Macintosh Edition
  • Microsoft Excel 97 for Windows
  • Microsoft Excel for Windows 95, versions 7.0, 7.0a
  • Microsoft Excel for Windows, versions 2.x, 3.x, 4.x, 5.0, 5.0c
  • Microsoft Excel for the Macintosh, versions 2.x, 3.x, 4.x, 5.0, 5.0a
  • Microsoft Excel for OS/2, versions 2.x, 3.x

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


THE INFORMATION PROVIDED IN THE MICROSOFT KNOWLEDGE BASE IS PROVIDED "AS IS" WITHOUT WARRANTY OF ANY KIND. MICROSOFT DISCLAIMS ALL WARRANTIES, EITHER EXPRESS OR IMPLIED, INCLUDING THE WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE. IN NO EVENT SHALL MICROSOFT CORPORATION OR ITS SUPPLIERS BE LIABLE FOR ANY DAMAGES WHATSOEVER INCLUDING DIRECT, INDIRECT, INCIDENTAL, CONSEQUENTIAL, LOSS OF BUSINESS PROFITS OR SPECIAL DAMAGES, EVEN IF MICROSOFT CORPORATION OR ITS SUPPLIERS HAVE BEEN ADVISED OF THE POSSIBILITY OF SUCH DAMAGES. SOME STATES DO NOT ALLOW THE EXCLUSION OR LIMITATION OF LIABILITY FOR CONSEQUENTIAL OR INCIDENTAL DAMAGES SO THE FOREGOING LIMITATION MAY NOT APPLY.

Last reviewed: February 2, 1998
© 1998 Microsoft Corporation. All rights reserved. Terms of Use.