Results 1 to 8 of 8

Conditional maximum and minimum values

Threaded View

  1. #1
    Registered User
    Join Date
    01-20-2013
    Location
    Massachusetts, USA
    MS-Off Ver
    Excel 2003
    Posts
    48

    Conditional maximum and minimum values

    I have an array of "x" and "y" data which gets updated frequently.

    I need to calculate the maximum value of "x" that has a "y" value < a value give in a specific reference cell outside the array.

    I also need to calculate the minimum value of "x" that has a "y" value >= that same reference value.

    To make it a little less abstract, here is a hypothetical example. I have set of data with x=height and y=weight. I have a reference cell into which I type a weight; say 175 pounds in this example. So I need to write formulas that find, in the x-y array, the tallest person less than 175 pounds and the shortest person >=175 pounds.

    So another way to look at it might be to say, "Find the maximum value of "x" looking only at data pairs that have "y" < 175, find the minimum value of "x" looking only at data pairs that have "y" >= 175

    Often when I am really stuck with tough formula coding, I will write some intermediate cells with formulae that get me to an answer when I can't figure out how to do it in one cell (by this I mean one cell for each condition). That type of solution would be acceptable here.

    Thanks for any help and/or suggestions,
    metsci
    Last edited by metsci; 01-20-2013 at 11:31 PM. Reason: mark as solved

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