+ Reply to Thread
Results 1 to 3 of 3

returning the least of a set of numbers...

  1. #1
    Registered User
    Join Date
    07-19-2013
    Location
    Florida
    MS-Off Ver
    Excel 2010
    Posts
    4

    returning the least of a set of numbers...

    Okay, So what i want to do is take a series of numbers, located on another sheet, and return the lowest number that is NOT zero. If the number is zero, it should return the penultimate least number.

    This is my formula:
    Please Login or Register  to view this content.
    I'm sorry if this formula is hard to read because I've spaced it out, but I am a programmer and it's insanely hard to read my code any other way as I am used to reading code line-by-line.

    For some reason, this method is only returning the value within cell B2 of the DUVAL SPA 5468 worksheet. I have no clue WHY it is, but that's what it is doing.. The value of B2 in the duval spa worksheet is 354.49, but if I go to C2, which is also being checked in my formula, and put a value of 100, which is obviously less than 354.49, it still only returns B2. I don't think this is a logic issue, but it could be..

  2. #2
    Registered User
    Join Date
    07-12-2012
    Location
    New Hampshire, United States
    MS-Off Ver
    Excel 2010
    Posts
    80

    Re: returning the least of a set of numbers...

    Is this what you are looking for?

    =SMALL('DUVAL SPA 5468'!B2:H2, COUNTIF('DUVAL SPA 5468'!B2:H2, "=0")+1)

  3. #3
    Forum Expert ConneXionLost's Avatar
    Join Date
    03-11-2009
    Location
    Victoria, Canada
    MS-Off Ver
    2010
    Posts
    2,952

    Re: returning the least of a set of numbers...

    An alternative that includes negative numbers (still not zero):

    Please Login or Register  to view this content.
    Confirm as an array formula with Ctrl-Shift-Enter.
    Would you like to say thanks? Please click the: " Add Reputation" button, on the grey bar below the post.

+ Reply to Thread

Thread Information

Users Browsing this Thread

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

Similar Threads

  1. Returning row numbers in a selection.
    By kwaldersen in forum Excel Programming / VBA / Macros
    Replies: 13
    Last Post: 08-03-2012, 03:50 PM
  2. [SOLVED] IIF Statement - Returning Text and Numbers
    By rmikulas in forum Access Tables & Databases
    Replies: 3
    Last Post: 07-06-2012, 10:24 AM
  3. IF - returning a value between a range of numbers
    By magpye60 in forum Excel Formulas & Functions
    Replies: 5
    Last Post: 11-04-2010, 08:52 AM
  4. Returning X for essential numbers
    By Bandini in forum Excel General
    Replies: 4
    Last Post: 04-14-2010, 12:32 PM
  5. Returning a value from an array of numbers
    By Sanjay9553 in forum Excel General
    Replies: 1
    Last Post: 09-29-2007, 11:18 AM

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