Closed Thread
Results 1 to 5 of 5

Why is my =MIN(IF( returning #VALUE?

  1. #1
    Registered User
    Join Date
    03-20-2019
    Location
    Texas, US
    MS-Off Ver
    Excel 2016
    Posts
    2

    Question Why is my =MIN(IF( returning #VALUE?

    =MIN(IF(A1:E1>0,A1:E1)) works fine, but I want to find the Min Value excluding zeros for only cells A1, C1, and E1.

    =MIN(IF((A1,C1,E1)>0,(A1,C1,E1))) returns #VALUE

    Is there a better way to find the minimum while excluding zeros for individually selected cells?

  2. #2
    Forum Expert etaf's Avatar
    Join Date
    10-22-2004
    Location
    Wittering, West Sussex, UK
    MS-Off Ver
    365 (Mac OSX) (16.83 (24031120))
    Posts
    8,734

    Re: Why is my =MIN(IF( returning #VALUE?

    have a read here
    https://www.excelforum.com/excel-new...ding-zero.html
    Wayne
    if my assistance has helped, and only if you wish to , there is an "* Add Reputation" on the left hand side - you can add to my reputation here

    If you have a solution to your thread - Please mark your thread solved do the following: >
    Select Thread Tools-> Mark thread as Solved. To undo, select Thread Tools-> Mark thread as Unsolved.

  3. #3
    Forum Expert XLent's Avatar
    Join Date
    10-13-2010
    Location
    Northumberland, UK
    MS-Off Ver
    various
    Posts
    2,704

    Re: Why is my =MIN(IF( returning #VALUE?

    non-contiguous ranges can be hard to work with, in array context; given the requirement you could perhaps use:

    Formula: copy to clipboard
    Please Login or Register  to view this content.

  4. #4
    Forum Expert XLent's Avatar
    Join Date
    10-13-2010
    Location
    Northumberland, UK
    MS-Off Ver
    various
    Posts
    2,704

    Re: Why is my =MIN(IF( returning #VALUE?

    another alternative to the above, if your ranges don't follow a nice pattern (like your example) thereby precluding use of contiguous range coupled with ISODD etc, would be:

    Formula: copy to clipboard
    Please Login or Register  to view this content.

    above assumes min 1 positive number, but you could add handle that eventuality, if required.

    I've copied this approach from a post by another board member (lexce), albeit on a different message board

  5. #5
    Administrator 6StringJazzer's Avatar
    Join Date
    01-27-2010
    Location
    Tysons Corner, VA, USA
    MS-Off Ver
    MS365 Family 64-bit
    Posts
    24,720

    Re: Why is my =MIN(IF( returning #VALUE?

    Administrative Note:


    Unfortunately, this is a duplicate thread, and you are allowed only ONE thread per issue here. I am, therefore, closing this thread, but you may continue here in the original thread
    Jeff
    | | |會 |會 |會 |會 | |:| | |會 |會
    Read the rules
    Use code tags to [code]enclose your code![/code]

Closed Thread

Thread Information

Users Browsing this Thread

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

Similar Threads

  1. [SOLVED] Average returning #div/0 and sum/count returning 0
    By Sinnie in forum Excel Formulas & Functions
    Replies: 0
    Last Post: 02-12-2016, 12:01 PM
  2. [SOLVED] INDEX MATCH is returning values when it should be returning "0"s.
    By mattsonberg in forum Excel Formulas & Functions
    Replies: 2
    Last Post: 01-24-2014, 11:51 AM
  3. Replies: 3
    Last Post: 05-03-2012, 04:00 PM
  4. Formula sometimes returning correct answer and sometimes returning 0
    By redimp in forum Excel Programming / VBA / Macros
    Replies: 4
    Last Post: 09-09-2010, 06:28 AM
  5. If and/or - or + 15% returning with #Value
    By AESP920 in forum Excel Formulas & Functions
    Replies: 2
    Last Post: 05-14-2010, 01:05 PM
  6. [SOLVED] Returning a 0 Value
    By Steved in forum Excel Formulas & Functions
    Replies: 3
    Last Post: 07-28-2005, 10:05 PM

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