+ Reply to Thread
Results 1 to 6 of 6

formula for max of one column based on criteria of another column

  1. #1
    Registered User
    Join Date
    01-23-2012
    Location
    Sheboygan,WI
    MS-Off Ver
    Excel 2003
    Posts
    5

    formula for max of one column based on criteria of another column

    need a formula to find the max number in col.b but only for 110 in col.a
    Col.a Col.b
    110 64.3
    117 66.6
    111 7.5
    114 55.8
    118 68.4
    115 55.7
    119 64.7
    110 65.2
    Last edited by rclose; 02-07-2012 at 03:34 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: formula for max of one column based on criteria of another column

    Try

    e.g.

    =MAX(IF(A1:A10=110,B1:B10))

    confirmed with CTRL+SHIFT+ENTER not just ENTER
    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
    11-03-2008
    Location
    India
    MS-Off Ver
    Excel 2010
    Posts
    2,400

    Re: formula for max of one column based on criteria of another column

    rclose,

    You can even try a NON CTRL+SHIFT+ENTER if you want...

    PHP Code: 
    =SUMPRODUCT(MAX(($A$2:$A$9=C2)*(B2:B9)))

    where C2=110 
    Warm Regards
    e4excel

  4. #4
    Registered User
    Join Date
    11-03-2008
    Location
    India
    MS-Off Ver
    Excel 2010
    Posts
    2,400

    Re: formula for max of one column based on criteria of another column

    Just for educational purpose I tried to use MIN instead of MAX but it doesn't work..
    I fail to understand the discrimination as MAX and MIN to me seemed to be two sides of the same coin.. ?????

    Kindly delete this post as double posting due to slow net speed
    Last edited by e4excel; 01-23-2012 at 06:02 PM.

  5. #5
    Registered User
    Join Date
    11-03-2008
    Location
    India
    MS-Off Ver
    Excel 2010
    Posts
    2,400

    Re: formula for max of one column based on criteria of another column

    Just for educational purpose I tried to use MIN instead of MAX but it doesn't work..
    I fail to understand the discrimination as MAX and MIN to me seemed to be two sides of the same coin.. ?????

    I think the Boolean zeroes get mixed up with the MINS logic...

  6. #6
    Registered User
    Join Date
    11-03-2008
    Location
    India
    MS-Off Ver
    Excel 2010
    Posts
    2,400

    Re: formula for max of one column based on criteria of another column

    Being a Hardcore Sumproduct fan I tried getting the MIN value using the LARGE funtion in a different manner...ANTI-USE of LARGE.

    PHP Code: 
    =SUMPRODUCT(LARGE((($A$2:$A$9=C2)*($B$2:$B$9)),COUNTIF($A$2:$A$9,C2)))

    where C2=110 

    Hope this helps..!!!

    Warm Regards
    e4excel

+ 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