+ Reply to Thread
Results 1 to 8 of 8

how to find the min value in a list with #div/0!

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

    how to find the min value in a list with #div/0!

    hi,
    i have a list with lots of values and i want to find the min value. when i type in =min() i get #div/0! i want numbers and not this error. at the same time i do not want to make any changes to the table. is there a way?

  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: how to find the min value in a list with #div/0!

    Hi,

    This suggests that one or more of your values is returning a #Div/0 hence the smartest way would be to wrap all those formulae in an IFERROR() (or =IF(ISERROR()) if you only have 2003)

    Otherwise you'll need an array formula which returns non error values.
    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
    Forum Expert martindwilson's Avatar
    Join Date
    06-23-2007
    Location
    London,England
    MS-Off Ver
    office 97 ,2007
    Posts
    19,320

    Re: how to find the min value in a list with #div/0!

    min() will not give #div/0 on its own you must have #div/0 errors in the table
    so try
    =MIN(IF(ISNUMBER($D$1:$E$9),$D$1:$E$9)) array entered with ctrl shift and enter
    "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

  4. #4
    Forum Expert
    Join Date
    05-01-2014
    Location
    California, US
    MS-Off Ver
    Excel 2010
    Posts
    1,795

    Re: how to find the min value in a list with #div/0!

    Quote Originally Posted by freak11 View Post
    i have a list with lots of values and i want to find the min value. when i type in =min() i get #div/0! i want numbers and not this error. at the same time i do not want to make any changes to the table. is there a way?
    AFAIK, MIN(A1:A100) returns a #DIV/0 error only when one of A1:A100 contains the #DIV/0 error. Use the following array-entered formula (press ctrl+shift+Enter instead just Enter) to ignore cells with Excel errors:

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

    That formula returns zero if there are no numeric values in A1:A100. If you want something else (e.g. null string), use the following array-entered formula (press ctrl+shift+Enter):

    =IF(COUNT(A1:A100)=0,"",MIN(IF(ISNUMBER(A1:A100),A1:A100)))

    [EDIT] PS.... IMHO, it would be better to remove Excel errors in the data (A1:A100). But you wrote: "i do not want to make any changes to the table".
    Last edited by joeu2004; 06-12-2014 at 01:58 PM.

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

    Re: how to find the min value in a list with #div/0!

    thanks for hte help,
    how can i modify the value in such a manner that i get the second smallest value because i do not want zero

    Quote Originally Posted by joeu2004 View Post
    AFAIK, MIN(A1:A100) returns a #DIV/0 error only when one of A1:A100 contains the #DIV/0 error. Use the following array-entered formula (press ctrl+shift+Enter instead just Enter) to ignore cells with Excel errors:

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

    That formula returns zero if there are no numeric values in A1:A100. If you want something else (e.g. null string), use the following array-entered formula (press ctrl+shift+Enter):

    =IF(COUNT(A1:A100)=0,"",MIN(IF(ISNUMBER(A1:A100),A1:A100)))

    [EDIT] PS.... IMHO, it would be better to remove Excel errors in the data (A1:A100). But you wrote: "i do not want to make any changes to the table".

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

    Re: how to find the min value in a list with #div/0!

    Try
    =MIN(IF(ISNUMBER(A1:A100),if(A1:A100>0,A1:A100)))
    array entered
    Last edited by martindwilson; 06-12-2014 at 08:26 PM.

  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: how to find the min value in a list with #div/0!

    If you have Excel 2010 or later...

    Data Range
    A
    B
    C
    1
    45
    2
    2
    17
    3
    #DIV/0!
    4
    83
    5
    92
    6
    #N/A
    7
    45
    8
    0
    9
    2
    10
    28
    11
    ------
    ------
    ------


    =AGGREGATE(15,6,1/(1/A1:A10),1)
    Biff
    Microsoft MVP Excel
    Keep It Simple Stupid

    Let's Go Pens. We Want The Cup.

  8. #8
    Forum Expert
    Join Date
    05-01-2014
    Location
    California, US
    MS-Off Ver
    Excel 2010
    Posts
    1,795

    Re: how to find the min value in a list with #div/0!

    Quote Originally Posted by freak11 View Post
    Quote Originally Posted by joeu2004 View Post
    Use [one of] the following array-entered formula (press ctrl+shift+Enterinstead just Enter) [....]:

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

    [....or....]

    =IF(COUNT(A1:A100)=0,"",MIN(IF(ISNUMBER(A1:A100),A1:A100)))
    how can i modify the value in such a manner that i get the second smallest value because i do not want zero
    I presume you mean: you just want to ignore zeros.

    In that case, try one of the following array-entered formula (press ctrl+shift+Enter instead just Enter), whichever serves your intent better:

    =MIN(IF(ISNUMBER(A1:A100),IF(A1:A100<>0,A1:A100)))

    or

    =IF(COUNT(A1:A100)=0,"",MIN(IF(ISNUMBER(A1:A100),IF(A1:A100<>0,A1:A100))))
    Last edited by joeu2004; 06-12-2014 at 11:31 PM.

+ 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. list 1 has 400 names List 2 has 4000. find manes from list 1 on 2
    By Max in forum Excel Formulas & Functions
    Replies: 6
    Last Post: 09-06-2005, 05:05 PM
  2. [SOLVED] list 1 has 400 names List 2 has 4000. find manes from list 1 on 2
    By Ed in forum Excel Formulas & Functions
    Replies: 0
    Last Post: 09-06-2005, 12:05 PM
  3. list 1 has 400 names List 2 has 4000. find manes from list 1 on 2
    By Ed in forum Excel Formulas & Functions
    Replies: 0
    Last Post: 09-06-2005, 10:05 AM
  4. [SOLVED] list 1 has 400 names List 2 has 4000. find manes from list 1 on 2
    By Max in forum Excel Formulas & Functions
    Replies: 9
    Last Post: 09-06-2005, 08:05 AM
  5. [SOLVED] list 1 has 400 names List 2 has 4000. find manes from list 1 on 2
    By Ed in forum Excel Formulas & Functions
    Replies: 0
    Last Post: 09-06-2005, 04:05 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