+ Reply to Thread
Results 1 to 2 of 2

Find the minimum value in a range, WITH conditions

  1. #1
    Forum Contributor
    Join Date
    02-23-2006
    Location
    Near London, England
    MS-Off Ver
    Office 2003
    Posts
    770

    Question Find the minimum value in a range, WITH conditions

    Ok, so here is my data:
    Please Login or Register  to view this content.
    What I want to achieve is to find the minimum value in the bottom row, however columns that have "YES" in the top row should be ignored when calculating the minimum, (so in the example above the minimum in the second row would be 3, as the 1 in the BLUE column is ignored).

    In addition to this, some, all, or none of the bottom row could have the text "Inf." instead of a value. In my data this represents 'Infinite' so can effectively be ignored.

    Finally, to highlight an issue I have had, if all of the bottom row are "Inf." then running MIN() against the bottom row will return 0, however in this situation that is obviously misleading.

    Thanks all, I hope to learn something here
    Last edited by Phil_V; 07-30-2009 at 09:14 AM.
    If you find the response helpful please click the scales in the blue bar above and rate it
    If you don't like the response, don't bother with the scales, they are not for you

  2. #2
    Forum Contributor
    Join Date
    02-23-2006
    Location
    Near London, England
    MS-Off Ver
    Office 2003
    Posts
    770

    Re: Find the minimum value in a range, WITH conditions

    Always the way... find out how to do it just after posting

    Anyway, here is my solution.

    Assuming the top left cell of the data is in B2.
    I am going to use the value of 1000 to represent Infinity as that is good enough for what I am doing

    Entered as an Array Formula into another cell:
    Please Login or Register  to view this content.
    Thanks anyway

+ 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