+ Reply to Thread
Results 1 to 5 of 5

computing 2nd (3rd and 4th also) smallest numbers greater than zero

Hybrid View

  1. #1
    Registered User
    Join Date
    07-09-2012
    Location
    michigan
    MS-Off Ver
    Excel 2003
    Posts
    61

    computing 2nd (3rd and 4th also) smallest numbers greater than zero

    Hi there,

    I am tracking smallest margins of victory in a fantasy football league. In a row for each week I have a series of positive (for points won by) and negative numbers (for points lost by).

    I can't figure out the formula to calculate the 2nd smallest number greater than zero (and subsequently the 3rd and 4th smallest).

    One of my ranges is from F509:V:509 for example (Spanning 17 weeks of the season).

    Here's what I have to figure out my first number greater than zero: {=MIN(IF(F509:V509<0.01,"",F509:V509))} I have used .01 as we don't use anything smaller than that in our league.

    Can anyone help with this?

    Thanks,
    Damian

  2. #2
    Forum Expert macropod's Avatar
    Join Date
    12-22-2011
    Location
    Canberra, Australia
    MS-Off Ver
    Word, Excel & Powerpoint 2003 & 2010
    Posts
    3,726

    Re: computing 2nd (3rd and 4th also) smallest numbers greater than zero

    Have you looked at the SMALL function? For example:
    =SMALL(IF($F$509:$V$509>0,$F$509:$V$509),1)
    =SMALL(IF($F$509:$V$509>0,$F$509:$V$509),2)
    =SMALL(IF($F$509:$V$509>0,$F$509:$V$509),3)
    input as array formulae. Note that, if there are two or more results with the same values in the rankings, they'll appear multiple times.
    Cheers,
    Paul Edstein
    [Fmr MS MVP - Word]

  3. #3
    Forum Guru (RIP) Marcol's Avatar
    Join Date
    12-23-2009
    Location
    Fife, Scotland
    MS-Off Ver
    Excel '97 & 2003/7
    Posts
    7,216

    Re: computing 2nd (3rd and 4th also) smallest numbers greater than zero

    Try this non-array option
    In say W509
    Drag Across as required.
    Formula: copy to clipboard
    =SMALL($F509:$V509,COUNTIF($F509:$V509,0)+COLUMNS($A:A))

    Or Drag Down as required.
    Formula: copy to clipboard
    =SMALL(F$509:V$509,COUNTIF(F$509:V$509,0)+ROWS($1:1))
    Last edited by Marcol; 10-18-2012 at 05:17 AM.
    If you need any more information, please feel free to ask.

    However,If this takes care of your needs, please select Thread Tools from menu above and set this topic to SOLVED. It helps everybody! ....

    Also
    اس کی مدد کرتا ہے اگر
    شکریہ کہنے کے لئے سٹار کلک کریں
    If you are satisfied by any members response to your problem please consider using the small Star icon bottom left of their post to show your appreciation.

  4. #4
    Registered User
    Join Date
    07-09-2012
    Location
    michigan
    MS-Off Ver
    Excel 2003
    Posts
    61

    Re: computing 2nd (3rd and 4th also) smallest numbers greater than zero

    Macropod,

    Thank you!

    Works like a charm!

  5. #5
    Forum Expert Cutter's Avatar
    Join Date
    05-24-2004
    Location
    Ontario,Canada
    MS-Off Ver
    Excel 2010
    Posts
    6,451

    Re: computing 2nd (3rd and 4th also) smallest numbers greater than zero

    @ damianberry

    Based on your last post it seems that you are satisfied with the solution(s) you've received but you haven't marked your thread as SOLVED. I'll do that for you now but please keep in mind for your future threads that Rule #9 requires you to do that yourself. If your problem has not been solved you can use Thread Tools (located above your first post) and choose "Mark this thread as unsolved".
    Thanks.

    Also, as a relatively new member of the forum, you may not be aware that you can thank those who have helped you by clicking the small star icon located in the lower left corner of the post in which the help was given. By doing so you can add to the reputation(s) of those who helped.

+ Reply to Thread

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts

Search Engine Friendly URLs by vBSEO 3.6.0 RC 1