+ Reply to Thread
Results 1 to 12 of 12

need to find smallest 3 values in table with #DIV/0!

Hybrid View

  1. #1
    Forum Contributor
    Join Date
    08-03-2012
    Location
    london, england
    MS-Off Ver
    Excel 2003
    Posts
    120

    need to find smallest 3 values in table with #DIV/0!

    hi guys,
    i am trying to find the smallest three values in a column but this column has #DIV/0! and whatever formula i type in i get #DIV/0!
    . min() and small() dont work. can anyone help?

  2. #2
    Forum Moderator - RIP Richard Buttrey's Avatar
    Join Date
    01-14-2008
    Location
    Stockton Heath, Cheshire, UK
    MS-Off Ver
    Office 365, Excel for Windows 2010 & Excel for Mac
    Posts
    29,464

    Re: need to find smallest 3 values in table with #DIV/0!

    Hi,

    If you only have Excel 2003 then wrap your formula in an =IF(ISERROR()) formula. i.e

    Formula: copy to clipboard
    =IF(ISERROR(your_formula),"",yourformula)
    Richard Buttrey

    RIP - d. 06/10/2022

    If any of the responses have helped then please consider rating them by clicking the small star icon below the post.

  3. #3
    Administrator FDibbins's Avatar
    Join Date
    12-29-2011
    Location
    Duncansville, PA USA
    MS-Off Ver
    Excel 7/10/13/16/365 (PC ver 2310)
    Posts
    53,048

    Re: need to find smallest 3 values in table with #DIV/0!

    #DIV/0!
    means just that - you are trying to divide something by 0. So you need to structure that formula to catch that.

    If B2 is blank of 0, then A1/B1 will result in #DIV/0!
    but youi could error trap with...
    =if(iserror(A1/B1),"",A1/B1)
    or
    =IF(OR(B1=0,B1=""),"",A1/B1)
    1. Use code tags for VBA. [code] Your Code [/code] (or use the # button)
    2. If your question is resolved, mark it SOLVED using the thread tools
    3. Click on the star if you think someone helped you

    Regards
    Ford

  4. #4
    Forum Expert martindwilson's Avatar
    Join Date
    06-23-2007
    Location
    London,England
    MS-Off Ver
    office 97 ,2007
    Posts
    19,320

    Re: need to find smallest 3 values in table with #DIV/0!

    depends if you have no 0 values than you could use this array formula filled down

    =SMALL(IF(ISERROR(1/$A$1:$A$20),10^99,$A$1:$A$20),ROWS($A$1:A1))
    "Unless otherwise stated all my comments are directed at OP"

    Mojito connoisseur and now happily retired
    where does code go ?
    look here
    how to insert code

    how to enter array formula

    why use -- in sumproduct
    recommended reading
    wiki Mojito

    how to say no convincingly

    most important thing you need
    Martin Wilson: SPV
    and RSMBC

  5. #5
    Forum Expert Tony Valko's Avatar
    Join Date
    12-31-2011
    Location
    Pittsburgh
    MS-Off Ver
    2002, 2007:2013
    Posts
    18,890

    Re: need to find smallest 3 values in table with #DIV/0!

    Try this...

    Data Range
    A
    B
    C
    1
    48
    10
    2
    98
    33
    3
    #DIV/0!
    48
    4
    52
    5
    87
    6
    33
    7
    10
    8
    #DIV/0!
    9
    96
    10
    91
    ------
    ------


    This array formula** entered in C1 and copied down:

    =IF(COUNT(A$1:A$10)>=3,SMALL(IF(ISNUMBER(A$1:A$10),A$1:A$10),ROWS(C$1:C1)),"")

    ** 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 MVP Excel
    Keep It Simple Stupid

    Let's Go Pens. We Want The Cup.

  6. #6
    Forum Moderator vlady's Avatar
    Join Date
    09-22-2011
    Location
    Philippines - OLSHCO -Guimba-Nueva Ecija
    MS-Off Ver
    2021
    Posts
    4,366

    Re: need to find smallest 3 values in table with #DIV/0!

    how about aggregate? Don't know if will work in '03
    something like

    =AGGREGATE(15,6,$A$1:$A$10,ROW(A1))
    I think people forget the word "THANK YOU!!!!" Do you still know it???

    There is a little star ( ADD REPUTATION ) below those person who helped you. Click it to say your "PRIVATE APPRECIATION TO THEIR EFFORT ON THEIR CONTRIBUTIONS "

    Regards,
    Vladimir

  7. #7
    Forum Expert Tony Valko's Avatar
    Join Date
    12-31-2011
    Location
    Pittsburgh
    MS-Off Ver
    2002, 2007:2013
    Posts
    18,890

    Re: need to find smallest 3 values in table with #DIV/0!

    Quote Originally Posted by vlady View Post
    how about aggregate? Don't know if will work in '03
    AGGREGATE was introduced in Excel 2010.

  8. #8
    Forum Expert martindwilson's Avatar
    Join Date
    06-23-2007
    Location
    London,England
    MS-Off Ver
    office 97 ,2007
    Posts
    19,320

    Re: need to find smallest 3 values in table with #DIV/0!

    it wont ,wasn't introduced until 2010

  9. #9
    Forum Moderator vlady's Avatar
    Join Date
    09-22-2011
    Location
    Philippines - OLSHCO -Guimba-Nueva Ecija
    MS-Off Ver
    2021
    Posts
    4,366

    Re: need to find smallest 3 values in table with #DIV/0!

    thanks both. that's what i'm afraid of.
    if just the OP could upgrade he can benefit from the new functions introduced by excel.

  10. #10
    Forum Expert martindwilson's Avatar
    Join Date
    06-23-2007
    Location
    London,England
    MS-Off Ver
    office 97 ,2007
    Posts
    19,320

    Re: need to find smallest 3 values in table with #DIV/0!

    £199.99 for the sake of ctrl+shift+enter?

  11. #11
    Forum Expert Tony Valko's Avatar
    Join Date
    12-31-2011
    Location
    Pittsburgh
    MS-Off Ver
    2002, 2007:2013
    Posts
    18,890

    Re: need to find smallest 3 values in table with #DIV/0!

    Quote Originally Posted by martindwilson View Post
    £199.99 for the sake of ctrl+shift+enter?
    If the OP really is using Excel 2003 the price to upgrade is worth it just for the IFERROR function alone!

  12. #12
    Forum Expert martindwilson's Avatar
    Join Date
    06-23-2007
    Location
    London,England
    MS-Off Ver
    office 97 ,2007
    Posts
    19,320

    Re: need to find smallest 3 values in table with #DIV/0!

    i only ugraded from 97 to 2007 because i got it free!

+ 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. [SOLVED] How to find smallest value in two columns
    By gogz2005 in forum Excel General
    Replies: 21
    Last Post: 04-16-2014, 11:44 AM
  2. [SOLVED] find smallest Number in a col
    By bnwash in forum Excel Programming / VBA / Macros
    Replies: 7
    Last Post: 11-12-2013, 10:26 PM
  3. Replies: 5
    Last Post: 09-29-2011, 06:39 AM
  4. Find smallest num in array
    By Vinodsralian in forum Excel General
    Replies: 3
    Last Post: 09-25-2010, 02:31 PM
  5. Find Smallest value in column
    By azidrane in forum Excel General
    Replies: 3
    Last Post: 06-07-2006, 01:35 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