+ Reply to Thread
Results 1 to 9 of 9

Finding the MAX and MIN values in range within a range

Hybrid View

  1. #1
    Registered User
    Join Date
    02-21-2012
    Location
    SoCal
    MS-Off Ver
    Excel 2007
    Posts
    5

    Finding the MAX and MIN values in range within a range

    I've got some data collected from a test, and I'm trying to find the MAX and MIN values in a range within a range.

    Example, from the test, I've collected a total of 100 data points (column A = record #1 thru 100). However, I'm only interested in the MAX and MIN values in column B (temp readings, for example) between record #10 thru 50. What should be the formulas for this?

    Thanks very much.
    Last edited by vwong107; 02-21-2012 at 03:44 PM.

  2. #2
    Forum Expert NBVC's Avatar
    Join Date
    12-06-2006
    Location
    Mississauga, CANADA
    MS-Off Ver
    2003:2010
    Posts
    34,898

    Re: Finding the MAX and MIN values in range within a range

    Try

    =MAX(IF($A$1:$A$100>=10,$A$1:$A$100<=50,$B$1:$B$100))

    edit ranges as necessary and confirm the formula with CTRL+SHIFT+ENTER not just ENTER...

    likewise for MIN...
    Where there is a will there are many ways.

    If you are happy with the results, please add to the contributor's reputation by clicking the reputation icon (star icon) below left corner

    Please also mark the thread as Solved once it is solved. Check the FAQ's to see how.

  3. #3
    Registered User
    Join Date
    02-21-2012
    Location
    SoCal
    MS-Off Ver
    Excel 2007
    Posts
    5

    Re: Finding the MAX and MIN values in range within a range

    Just tried that, but it returned a max value outside of the 10-50 range. Also, what does the CTRL+SHIFT+ENTER do that is different from ENTER?

  4. #4
    Forum Expert NBVC's Avatar
    Join Date
    12-06-2006
    Location
    Mississauga, CANADA
    MS-Off Ver
    2003:2010
    Posts
    34,898

    Re: Finding the MAX and MIN values in range within a range

    After entering the formula, hold the CTRL and SHIFT keys down, then press ENTER and you will see { } brackets appear around the formula.

    This is called an Array Formula.

    After doing that, do you still get incorrect results?

  5. #5
    Registered User
    Join Date
    02-21-2012
    Location
    SoCal
    MS-Off Ver
    Excel 2007
    Posts
    5

    Re: Finding the MAX and MIN values in range within a range

    Quote Originally Posted by NBVC View Post
    After entering the formula, hold the CTRL and SHIFT keys down, then press ENTER and you will see { } brackets appear around the formula.

    This is called an Array Formula.

    After doing that, do you still get incorrect results?
    Yes, it was still returning a max value outside of that range.

  6. #6
    Forum Expert NBVC's Avatar
    Join Date
    12-06-2006
    Location
    Mississauga, CANADA
    MS-Off Ver
    2003:2010
    Posts
    34,898

    Re: Finding the MAX and MIN values in range within a range

    Are you sure the values in column A are really numbers? Try selecting the column or range and go to Data|Text to columns and just click Finish.

    Does that fix it? If not, please post sample workbook.. as I think it should work if column A is numeric.

  7. #7
    Registered User
    Join Date
    02-21-2012
    Location
    SoCal
    MS-Off Ver
    Excel 2007
    Posts
    5

    Re: Finding the MAX and MIN values in range within a range

    My data actually consists of over 6000 data points, so it might be too big to include. Anyway, I just created the following sample and it was still returning a MAX value outside of the range.

    A B
    1 98
    2 105
    3 100
    4 100
    5 101
    6 99
    7 103
    8 100
    9 97
    10 100

    I'm only interested in finding the MAX value in column B between the range of 3 and 6 in column A. In this example, if the formula is working, it should return a value of 101. However, it was returning a value of 105 instead.

  8. #8
    Forum Expert NBVC's Avatar
    Join Date
    12-06-2006
    Location
    Mississauga, CANADA
    MS-Off Ver
    2003:2010
    Posts
    34,898

    Re: Finding the MAX and MIN values in range within a range

    I do apologize, I forgot another IF in there... it should be:

    =MAX(IF($A$1:$A$100>=3,IF($A$1:$A$100<=6,$B$1:$B$100)))

    confirmed with CTRL+SHIFT+ENTER...

    sorry 'bout that

  9. #9
    Registered User
    Join Date
    02-21-2012
    Location
    SoCal
    MS-Off Ver
    Excel 2007
    Posts
    5

    Re: Finding the MAX and MIN values in range within a range

    Thanks very much. It works now.

+ 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