+ Reply to Thread
Results 1 to 4 of 4

finding the max value from an array produced from several criterias ("MAXIFS")

Hybrid View

  1. #1
    Registered User
    Join Date
    04-28-2010
    Location
    israel
    MS-Off Ver
    Excel 2007
    Posts
    14

    finding the max value from an array produced from several criterias ("MAXIFS")

    Hi everyone,
    In my attached file, you can see that with the good help of "Donkey Ote" I managed to calculate the average rating for a program from a specific channel, from a specific date and time.
    Now I would like to calculate the MAX rating out of these criterias, and since there is not such a formula like MAXIFS, I have a problem.
    Is there any "manipulation" that can be done?

    and another question regarding this file-
    can I define the name "_Data" (that fits to the database table size) to fit new number of columns and not just rows??

    thanks a lot!!!!

    shay
    Attached Files Attached Files
    Last edited by shay z; 05-04-2010 at 04:06 AM.

  2. #2
    Forum Expert Bob Phillips's Avatar
    Join Date
    09-03-2005
    Location
    Wessex
    MS-Off Ver
    Office 2003, 2010, 2013, 2016, 365
    Posts
    3,284

    Re: finding the max value from an array produced from several criterias ("MAXIFS")

    Try this ARRAY formula

    =IFERROR(MAX(IF((INDEX(_Data,0,1)=O5)*(INDEX(_Data,0,2)>=R5)*(INDEX(_Data,0,3)<=S5),INDEX(_Data,0,MATCH(P5,INDEX(_Data,1,0),0)))),
    IFERROR(MAX(IF((INDEX(_Data,0,1)=O5)*(INDEX(_Data,0,2)>=R5),INDEX(_Data,0,MATCH(P5,INDEX(_Data,1,0),0)))),
    MAX(IF((INDEX(_Data,0,1)=O5)*(INDEX(_Data,0,3)=S5),INDEX(_Data,0,MATCH(P5,INDEX(_Data,1,0),0))))))

  3. #3
    Forum Guru DonkeyOte's Avatar
    Join Date
    10-22-2008
    Location
    Northumberland, UK
    MS-Off Ver
    O365
    Posts
    21,531

    Re: finding the max value from an array produced from several criterias ("MAXIFS")

    Quote Originally Posted by shay z
    can I define the name "_Data" (that fits to the database table size) to fit new number of columns and not just rows??
    Yes.

    Name: _Data
    RefersTo: =Sheet1!$A$1:INDEX(Sheet1!$1:$65536,MATCH(9.99E+307,Sheet1!$A:$A),MATCH(REPT("Z",255),Sheet1!$1:$1))

    (modify INDEX range as required)

    Note above text string will be last value in row 1 - if not always the case then we can modify.

  4. #4
    Registered User
    Join Date
    04-28-2010
    Location
    israel
    MS-Off Ver
    Excel 2007
    Posts
    14

    Re: finding the max value from an array produced from several criterias ("MAXIFS")

    thank you both.
    this is a great site and a great forum

    shay

+ 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