+ Reply to Thread
Results 1 to 14 of 14

MAXIFS with OR criteria

  1. #1
    Registered User
    Join Date
    03-10-2014
    Location
    California
    MS-Off Ver
    Excel 2007
    Posts
    70

    MAXIFS with OR criteria

    I know I just asked a somewhat similar question about SUMPRODUCT IFS, but I still can't figure this one out...

    I need to find the MAXIFS of column F where column C = either "Apples", or "Bananas".

    =MAXIFS(F$8:F$75,$C$8:$C$75, "Apples" or "Bananas")


    Oh, and then I need to return the address of that cell.

  2. #2
    Administrator FDibbins's Avatar
    Join Date
    12-29-2011
    Location
    Duncansville, PA USA
    MS-Off Ver
    Excel 7/10/13/16/365 (PC ver 2310)
    Posts
    52,929

    Re: MAXIFS with OR criteria

    There is no MAXIF/S() function (yet)

    Try something like this ARRAY formula...

    =MAX(IF($C$8:$C$75={"Apples","Bananas"},F$8:F$75))
    (untested)

    ...confirmed by pressing CTRL+SHIFT+ENTER to activate the array, not just ENTER. You will know the array is active when you see curly braces { } appear around your formula. If you do not CTRL+SHIFT+ENTER you will get an error or a clearly incorrect answer.
    1. Use code tags for VBA. [code] Your Code [/code] (or use the # button)
    2. If your question is resolved, mark it SOLVED using the thread tools
    3. Click on the star if you think someone helped you

    Regards
    Ford

  3. #3
    Forum Moderator AliGW's Avatar
    Join Date
    08-10-2013
    Location
    Retired in Ipswich, Suffolk, but grew up in Sawley, Derbyshire (England)
    MS-Off Ver
    MS 365 Subscription Insider Beta Channel v. 2404 (Windows 11 22H2 64-bit)
    Posts
    80,647

    Re: MAXIFS with OR criteria

    There is MAXIFS and MINIFS in my Office 365 version of Excel, Ford! However, it's not available in earlier versions.
    Ali


    Enthusiastic self-taught user of MS Excel who's always learning!
    Don't forget to say "thank you" in your thread to anyone who has offered you help.
    You can reward them by clicking on * Add Reputation below their user name on the left, if you wish.

    Forum Rules (updated August 2023): please read them here.

  4. #4
    Administrator FDibbins's Avatar
    Join Date
    12-29-2011
    Location
    Duncansville, PA USA
    MS-Off Ver
    Excel 7/10/13/16/365 (PC ver 2310)
    Posts
    52,929

    Re: MAXIFS with OR criteria

    Im using Office 2016 pro, and that is not (yet) included inthere

  5. #5
    Forum Expert
    Join Date
    06-08-2012
    Location
    Left the forum!
    MS-Off Ver
    Left the forum!
    Posts
    5,189

    Re: MAXIFS with OR criteria

    Try

    =MAX(MAXIFS(F$8:F$75,$C$8:$C$75,{"Apples","Bananas"}))

    I'm guessing that those of us not paying for the overpriced office 365 subscription will have to wait until the 2019 is released.

  6. #6
    Forum Moderator AliGW's Avatar
    Join Date
    08-10-2013
    Location
    Retired in Ipswich, Suffolk, but grew up in Sawley, Derbyshire (England)
    MS-Off Ver
    MS 365 Subscription Insider Beta Channel v. 2404 (Windows 11 22H2 64-bit)
    Posts
    80,647

    Re: MAXIFS with OR criteria

    Quote Originally Posted by jason.b75 View Post
    Try

    =MAX(MAXIFS(F$8:F$75,$C$8:$C$75,{"Apples","Bananas"}))

    I'm guessing that those of us not paying for the overpriced office 365 subscription will have to wait until the 2019 is released.
    What's overpriced about it? I don't consider £79 for five installations unreasonable (that's lest than £20 per machine).

    Anyway, just for completeness, your formula works in Office 365.

  7. #7
    Forum Expert
    Join Date
    06-08-2012
    Location
    Left the forum!
    MS-Off Ver
    Left the forum!
    Posts
    5,189

    Re: MAXIFS with OR criteria

    It probably works better for some, than it does for others, Ali.

    What you consider to be reasonable assumes that you are going to use all 5 installations.

    Also, bear in mind that the price you pay only gets you a year subscription, not a product to keep as long as needed.

    The home version of 2007 that I installed on 2 machines served its purpose for me for around 8 years, I can't remember the exact cost, but say it was £120, that works out at £7.50 per machine per year

    MS promote 365 as a way to get the latest updates, but given that MAXIFS() etc. were in the initial release of the 2016 suite to 365 subscribers (or at least an update very soon after), it would be fair to assume that these functions would have been ready to release with the regular versions of 2016, but that MS held them back.

    Not so much an update, more a premium feature that the rest of us don't have access to!

    No doubt MS will soon be applying the same money making model to Windows

  8. #8
    Forum Moderator AliGW's Avatar
    Join Date
    08-10-2013
    Location
    Retired in Ipswich, Suffolk, but grew up in Sawley, Derbyshire (England)
    MS-Off Ver
    MS 365 Subscription Insider Beta Channel v. 2404 (Windows 11 22H2 64-bit)
    Posts
    80,647

    Re: MAXIFS with OR criteria

    Quote Originally Posted by jason.b75 View Post
    It probably works better for some, than it does for others, Ali.
    Yes, true, but in our household it works: the main desktop PC, my two laptops, my partner's laptop and my daughter's laptop, plus using it on three iPads between us.

  9. #9
    Forum Moderator Glenn Kennedy's Avatar
    Join Date
    07-08-2012
    Location
    Digital Nomad... occasionally based in Ireland.
    MS-Off Ver
    O365 (PC) V 2403
    Posts
    44,000

    Re: MAXIFS with OR criteria

    Is there any room for the people in your house, Ali??
    Glenn




    None of us get paid for helping you... we do this for fun. So DON'T FORGET to say "Thank You" to all who have freely given some of their time to help YOU.

    Temporary addition of accented to illustrate ongoing problem to the TT: L? fh?ile P?draig sona dhaoibh

  10. #10
    Forum Moderator AliGW's Avatar
    Join Date
    08-10-2013
    Location
    Retired in Ipswich, Suffolk, but grew up in Sawley, Derbyshire (England)
    MS-Off Ver
    MS 365 Subscription Insider Beta Channel v. 2404 (Windows 11 22H2 64-bit)
    Posts
    80,647

    Re: MAXIFS with OR criteria

    Quote Originally Posted by Glenn Kennedy View Post
    Is there any room for the people in your house, Ali??
    Plenty.

  11. #11
    Registered User
    Join Date
    02-05-2014
    Location
    Cincinnati, OH
    MS-Off Ver
    Excel 2010
    Posts
    4

    Re: MAXIFS with OR criteria

    I realize this is quite an old post, but is there a way to accomplish this while referencing cells instead of text? For example (this doesn't work BTW):

    =MAX(MAXIFS(Data!G:G,Data!$A:$A,English!$B11,Data!$B:$B,{"$A$2","$A$3","$A$4"}))

    Ultimately I'd like to something similar to the following which captures all data meeting a date criteria and any criteria in A2:A100 (which happen to be skill numbers).

    =SUMPRODUCT(SUMIFS(Data!D:D,Data!$A:$A,English!$B11,Data!$B:$B,English!$A$2:$A$100))

  12. #12
    Forum Moderator AliGW's Avatar
    Join Date
    08-10-2013
    Location
    Retired in Ipswich, Suffolk, but grew up in Sawley, Derbyshire (England)
    MS-Off Ver
    MS 365 Subscription Insider Beta Channel v. 2404 (Windows 11 22H2 64-bit)
    Posts
    80,647

    Re: MAXIFS with OR criteria

    Unfortunately your post does not comply with Rule 4 of our Forum RULES. Do not post a question in the thread of another member -- start your own thread.

    If you feel an existing thread is particularly relevant to your need, provide a link to the other thread in your new thread.

    Old threads are often only monitored by the original participants. New threads not only open you up to all possible participants again, they typically get faster response, too.

  13. #13
    Forum Expert
    Join Date
    06-08-2012
    Location
    Left the forum!
    MS-Off Ver
    Left the forum!
    Posts
    5,189

    Re: MAXIFS with OR criteria

    As per forum rule #4, please do not post a question in an existing thread, please start your own.

  14. #14
    Registered User
    Join Date
    02-06-2019
    Location
    India
    MS-Off Ver
    2016
    Posts
    3

    Re: MAXIFS with OR criteria

    Very useful. Thank you!

+ 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. [SOLVED] MaxIFs help
    By Hondahawkrider in forum Excel Formulas & Functions
    Replies: 5
    Last Post: 03-25-2016, 02:23 PM
  2. MaxIFS help
    By Hondahawkrider in forum Excel Formulas & Functions
    Replies: 1
    Last Post: 01-06-2016, 03:17 PM
  3. Minifs, maxifs, averageifs, medianifs, coeffvarifs
    By qwertyjjj in forum Excel Formulas & Functions
    Replies: 1
    Last Post: 10-30-2014, 07:48 PM
  4. Count statement wtih multiple criteria only showing results for one criteria
    By uhlabomber in forum Excel Formulas & Functions
    Replies: 2
    Last Post: 07-17-2013, 02:47 PM
  5. [SOLVED] Having issues writing a 'MAXIFS' array function
    By qaliq in forum Excel Formulas & Functions
    Replies: 8
    Last Post: 04-23-2013, 11:01 AM
  6. Replies: 4
    Last Post: 01-08-2013, 12:37 PM
  7. Replies: 3
    Last Post: 05-04-2010, 04:06 AM

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