+ Reply to Thread
Results 1 to 9 of 9

Find the MAX value of changing sets

  1. #1
    Forum Contributor
    Join Date
    01-11-2011
    Location
    Frederick, MD, USA
    MS-Off Ver
    Excel 2007
    Posts
    125

    Find the MAX value of changing sets

    I've been fiddling with how to do this for a coupe of hours, to no avail. Time to ask the experts!

    Given three columns (SET, SAMPLE, and SIZE), I'd like a formula in a fourth column that give the maximum value of SIZE for all rows that match both SET and SAMPLE. There's got to be a simple way to do this, but my brain just isn't functioning at 100% today.

    My only real restriction is that it must be a formula, not VBA or anything.

    Example datasheet attached.
    Attached Files Attached Files

  2. #2
    Forum Guru AlKey's Avatar
    Join Date
    07-20-2009
    Location
    Lakeland, FL USA
    MS-Off Ver
    Microsoft Office 2010/ Office 365
    Posts
    8,903

    Re: Find the MAX value of changing sets

    Enter formula in E2 and copy down

    Formula: copy to clipboard
    Please Login or Register  to view this content.
    If you like my answer please click on * Add Reputation
    Don't forget to mark threads as "Solved" if your problem has been resolved

    "Nothing is so firmly believed as what we least know."
    --Michel de Montaigne

  3. #3
    Forum Contributor
    Join Date
    01-11-2011
    Location
    Frederick, MD, USA
    MS-Off Ver
    Excel 2007
    Posts
    125

    Re: Find the MAX value of changing sets

    Well, that was quick! Works perfectly, too...and now I've learned something new about INDEX, which I'm sure will come in handy in the future. Thanks!
    Last edited by Gunther Maplethorpe; 01-29-2016 at 02:44 PM. Reason: My typing skillz are not so mad.

  4. #4
    Forum Contributor
    Join Date
    01-11-2011
    Location
    Frederick, MD, USA
    MS-Off Ver
    Excel 2007
    Posts
    125

    Re: Find the MAX value of changing sets

    Is there a reason this doesn't seem to work with MIN? In the attached example, I would expect cell E2 to return 12.5...
    Attached Files Attached Files

  5. #5
    Forum Guru AlKey's Avatar
    Join Date
    07-20-2009
    Location
    Lakeland, FL USA
    MS-Off Ver
    Microsoft Office 2010/ Office 365
    Posts
    8,903

    Re: Find the MAX value of changing sets

    Quote Originally Posted by Gunther Maplethorpe View Post
    Is there a reason this doesn't seem to work with MIN? In the attached example, I would expect cell E2 to return 12.5...
    MIN would require a different array formula

    Enter in E2 and copy down

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

    ***Array formula must be entered by using key combination of CTRL+SHIFT+ENTER and not just ENTER

  6. #6
    Forum Contributor
    Join Date
    01-11-2011
    Location
    Frederick, MD, USA
    MS-Off Ver
    Excel 2007
    Posts
    125

    Re: Find the MAX value of changing sets

    That doesn't seem to be working; it's returning only the top-most value for each subset of data. (And yes, I've entered it as an array.)


    What's the underlying reason why the formula for MAX won't work the same for MIN?

  7. #7
    Forum Guru AlKey's Avatar
    Join Date
    07-20-2009
    Location
    Lakeland, FL USA
    MS-Off Ver
    Microsoft Office 2010/ Office 365
    Posts
    8,903

    Re: Find the MAX value of changing sets

    Must likely you didn't enter formula as an array. BTW, your comment, you put in F2 is wrong. The result of 12.5 can only be achieved if you drop the second criteria, ("Lower Marker").

    Please see attached file with the same formula as in post#5
    Attached Files Attached Files

  8. #8
    Forum Contributor
    Join Date
    01-11-2011
    Location
    Frederick, MD, USA
    MS-Off Ver
    Excel 2007
    Posts
    125

    Re: Find the MAX value of changing sets

    Ha...yep, I'm just dumb enough to not see the forest for the trees. Thanks, again.

    I'm still curious as to the underlying reason why the formula used for MAX doesn't work for MIN, though.

  9. #9
    Forum Guru AlKey's Avatar
    Join Date
    07-20-2009
    Location
    Lakeland, FL USA
    MS-Off Ver
    Microsoft Office 2010/ Office 365
    Posts
    8,903

    Re: Find the MAX value of changing sets

    The MAX function calculates values that are >=0 where MIN function has to perform calculations for the values that are >=0 and <=0 hence the different formula is required.

+ 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. changing alternatives in different sets
    By anmol786 in forum Excel General
    Replies: 0
    Last Post: 01-13-2015, 05:51 AM
  2. Replies: 6
    Last Post: 12-09-2013, 07:46 AM
  3. Replies: 1
    Last Post: 07-22-2010, 08:39 AM
  4. Replies: 2
    Last Post: 01-08-2008, 06:16 PM
  5. changing between sets of data
    By crowner in forum Excel General
    Replies: 3
    Last Post: 05-05-2007, 09:43 AM
  6. 27 sets of data. Need to find zero in each set
    By Cygnusx1 in forum Excel Formulas & Functions
    Replies: 4
    Last Post: 09-09-2005, 01:05 PM

Tags for this Thread

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