Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.misc
Melissa
 
Posts: n/a
Default return min. of range except 0

What formula should I use to return the minimum no. in a range of numbers,
except 0?
e.g. 1, 4, 7, 0, 6, 8
The min should be 1 and not 0.
  #2   Report Post  
Posted to microsoft.public.excel.misc
Jim Rech
 
Posts: n/a
Default return min. of range except 0

One way:

=SMALL(A1:A6,IF(MIN(A1:A6)=0,2,1))

--
Jim
"Melissa" wrote in message
...
| What formula should I use to return the minimum no. in a range of numbers,
| except 0?
| e.g. 1, 4, 7, 0, 6, 8
| The min should be 1 and not 0.


  #3   Report Post  
Posted to microsoft.public.excel.misc
Dave Peterson
 
Posts: n/a
Default return min. of range except 0

=min(if(a1:a10<0,a1:a10))
or if there's a chance you won't have any non-zero numbers:
=IF(COUNT(A1:A10)-COUNTIF(A1:A10,0)=0,"No data!",MIN(IF(A1:A10<0,A1:A10)))

These are both array formulas. Hit ctrl-shift-enter instead of enter. If you
do it correctly, excel will wrap curly brackets {} around your formula. (don't
type them yourself.)

Adjust the range to match--but you can't use the whole column.))

Melissa wrote:

What formula should I use to return the minimum no. in a range of numbers,
except 0?
e.g. 1, 4, 7, 0, 6, 8
The min should be 1 and not 0.


--

Dave Peterson
Reply
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules

Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
Help with using range names in sum function soteman2005 Excel Worksheet Functions 2 November 28th 05 05:43 PM
how to lookup a value within a range and return a label jocmccoy Excel Discussion (Misc queries) 1 November 16th 05 12:52 PM
Return Range of Numerical Values in Single Column based on Frequency Percentage Sam via OfficeKB.com Excel Worksheet Functions 9 October 29th 05 12:01 AM
Array to named range conversion... i-Zapp Excel Discussion (Misc queries) 4 October 25th 05 10:09 PM
if the value of a cell in a range is not blank, then return the v. kvail Excel Worksheet Functions 2 April 8th 05 11:07 PM


All times are GMT +1. The time now is 07:49 AM.

Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
Copyright ©2004-2025 ExcelBanter.
The comments are property of their posters.
 

About Us

"It's about Microsoft Excel"