Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 229
Default Min function excluding zero

hi, i have a set of positive numbers (randomly generated) which includes a
zero . I want to pickout the Min from them which excludes zero. i.e, Min
greater than zero.

My second question is
=if(or(a1=1,a1=2),"A","B")) I modified it to
=if(a1={1,2},"A","B"). But This formula is true only for a1=1
any suggestions.
Thank you all
With regards
Sridhar
  #2   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 15,768
Default Min function excluding zero

Try one of these for the MIN:

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

Or this array formula**:

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

** array formulas need to be entered using the key combination of
CTRL,SHIFT,ENTER (not just ENTER)

My second question is
=if(or(a1=1,a1=2),"A","B")) I modified it to
=if(a1={1,2},"A","B"). But This formula is true only for a1=1


Try it like this:

=IF(OR(A1={1,2}),"A","B")

--
Biff
Microsoft Excel MVP


"yshridhar" wrote in message
...
hi, i have a set of positive numbers (randomly generated) which includes
a
zero . I want to pickout the Min from them which excludes zero. i.e, Min
greater than zero.

My second question is
=if(or(a1=1,a1=2),"A","B")) I modified it to
=if(a1={1,2},"A","B"). But This formula is true only for a1=1
any suggestions.
Thank you all
With regards
Sridhar



  #3   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 229
Default Min function excluding zero

Thank you Mr. Biff. It solved my problem.
With regards
Sridhar

"T. Valko" wrote:

Try one of these for the MIN:

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

Or this array formula**:

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

** array formulas need to be entered using the key combination of
CTRL,SHIFT,ENTER (not just ENTER)

My second question is
=if(or(a1=1,a1=2),"A","B")) I modified it to
=if(a1={1,2},"A","B"). But This formula is true only for a1=1


Try it like this:

=IF(OR(A1={1,2}),"A","B")

--
Biff
Microsoft Excel MVP


"yshridhar" wrote in message
...
hi, i have a set of positive numbers (randomly generated) which includes
a
zero . I want to pickout the Min from them which excludes zero. i.e, Min
greater than zero.

My second question is
=if(or(a1=1,a1=2),"A","B")) I modified it to
=if(a1={1,2},"A","B"). But This formula is true only for a1=1
any suggestions.
Thank you all
With regards
Sridhar




  #4   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 15,768
Default Min function excluding zero

You're welcome. Thanks for the feedback!

--
Biff
Microsoft Excel MVP


"yshridhar" wrote in message
...
Thank you Mr. Biff. It solved my problem.
With regards
Sridhar

"T. Valko" wrote:

Try one of these for the MIN:

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

Or this array formula**:

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

** array formulas need to be entered using the key combination of
CTRL,SHIFT,ENTER (not just ENTER)

My second question is
=if(or(a1=1,a1=2),"A","B")) I modified it to
=if(a1={1,2},"A","B"). But This formula is true only for a1=1


Try it like this:

=IF(OR(A1={1,2}),"A","B")

--
Biff
Microsoft Excel MVP


"yshridhar" wrote in message
...
hi, i have a set of positive numbers (randomly generated) which
includes
a
zero . I want to pickout the Min from them which excludes zero. i.e,
Min
greater than zero.

My second question is
=if(or(a1=1,a1=2),"A","B")) I modified it to
=if(a1={1,2},"A","B"). But This formula is true only for a1=1
any suggestions.
Thank you all
With regards
Sridhar






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
Excluding subtotals from SUMIF function Graeme Excel Worksheet Functions 5 June 21st 07 02:26 PM
Workday function including sat, excluding sun Handyy Excel Worksheet Functions 3 February 23rd 06 06:35 AM
Min Function Excluding Zero Values & More WeatherGuy Excel Worksheet Functions 8 January 1st 06 04:44 AM
Excluding 0s and blanks from a LINEST function Disco Excel Worksheet Functions 4 February 4th 05 04:54 AM
MIN excluding 0s Thore Excel Worksheet Functions 3 December 20th 04 12:09 PM


All times are GMT +1. The time now is 08:19 PM.

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"