ExcelBanter

ExcelBanter (https://www.excelbanter.com/)
-   Excel Worksheet Functions (https://www.excelbanter.com/excel-worksheet-functions/)
-   -   How do I find the minimum value in a range while ignoring zeros? (https://www.excelbanter.com/excel-worksheet-functions/260761-how-do-i-find-minimum-value-range-while-ignoring-zeros.html)

Ted B.

How do I find the minimum value in a range while ignoring zeros?
 

-- How do I find the minimum value in a range while ignoring any zeros in
that range using Excel 2007?


T. Valko

How do I find the minimum value in a range while ignoring zeros?
 
If the numbers are *always* positive..

Array entered**:

..=MIN(IF(A1:A100,A1:A10))

Or, normally entered:

=SMALL(A1:A10,COUNTIF(A1:A10,0)+1)

If there might be negative numbers...

Array entered**:

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

** array formulas need to be entered using the key combination of
CTRL,SHIFT,ENTER (not just ENTER). Hold down both the CTRL key and the SHIFT
key then hit ENTER.

--
Biff
Microsoft Excel MVP


"Ted B." wrote in message
...

-- How do I find the minimum value in a range while ignoring any zeros in
that range using Excel 2007?




FSt1

How do I find the minimum value in a range while ignoring zeros?
 
hi
try this.....
=small(A1:A50,countif(A1:A50,0)+1)

regards
FSt1

"Ted B." wrote:


-- How do I find the minimum value in a range while ignoring any zeros in
that range using Excel 2007?


Max

How do I find the minimum value in a range while ignoring zeros?
 
You could use a conditional MIN, something like this in say B2, array-entered
ie press CTRL+SHIFT+ENTER to confirm the formula (instead of just pressing
ENTER):
=MIN(IF(A2:A100,A2:A10))
Success? hit the YES below
--
Max
Singapore
---
"Ted B." wrote:
-- How do I find the minimum value in a range while ignoring any zeros in
that range using Excel 2007?


FSt1

How do I find the minimum value in a range while ignoring zeros?
 
hi
forgot to mention.
adjust ranges to suit your data.

Regards
FSt1

"Ted B." wrote:


-- How do I find the minimum value in a range while ignoring any zeros in
that range using Excel 2007?



All times are GMT +1. The time now is 03:04 PM.

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