+ Reply to Thread
Results 1 to 8 of 8

Array Max If And

  1. #1
    Registered User
    Join Date
    05-25-2011
    Location
    San Diego, Calilfornia
    MS-Off Ver
    Excel 2007
    Posts
    11

    Array Max If And

    I don't full understand the array formulas but would like to get the maximum of a certain column based on a match criteria as well as a less than greater than criteria.

    I want to do something like:
    {max(and(Customer List=Particular Customer,Range>20,Range<20),Range,"")}

    but I guess it doesn't work like that?
    Attached Files Attached Files

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

    Re: Array Max If And

    Not sure I follow that second table... so why is the first column blank? and the other blanks too? why?
    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
    05-25-2011
    Location
    San Diego, Calilfornia
    MS-Off Ver
    Excel 2007
    Posts
    11

    Re: Array Max If And

    The blanks are there on purpose to show there is no value that meets the criteria. So the table with the blands is what I want. The table above it (second table) was used as an intermediate. I would rather not make an intermediate table to get what I want.

    I'm hoping I could use multiple criteria for the array formula not just the one IF criteria shown in the intermediate (second) table.

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

    Re: Array Max If And

    I guess I am confused about what is that secondary criteria, that should make those cells go blank.

  5. #5
    Registered User
    Join Date
    05-25-2011
    Location
    San Diego, Calilfornia
    MS-Off Ver
    Excel 2007
    Posts
    11

    Re: Array Max If And

    The IF statements in the last (3rd) table are the secondary criteria. If the number doesn't fall within a range, the cell is blank ("").

    I want to get the maximum value of a certain column of values between a certain number range along with a match criteria.

    Table 2 has everything except the number range criteria hence the IF statement in table 3.

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

    Re: Array Max If And

    Should the first column be totally blank? Are you looking for values between 0 and 20 there?

    Try in H14:

    Please Login or Register  to view this content.
    CSE confirmed and copied across the matrix.

  7. #7
    Registered User
    Join Date
    05-25-2011
    Location
    San Diego, Calilfornia
    MS-Off Ver
    Excel 2007
    Posts
    11

    [solved]

    That was exactly what I needed! I need to spend some time looking at why my way didn't work and yours does. I think it has to do with the sequence of the functions you did (i.e. IF, then AND, then MAX versus MAX, IF, AND). Awesome and well done!

    How do I add [SOLVED] to the thread title?
    Last edited by ron_oniel; 05-26-2011 at 05:13 PM.

  8. #8
    Forum Guru
    Join Date
    05-24-2011
    Location
    India
    MS-Off Ver
    Office 2021
    Posts
    2,237

    Re: [solved]

    Also,

    H3, copy across & down

    Please Login or Register  to view this content.
    CSE formula. Confirmed with Control+Shift+Enter, rather than just Enter
    Regards,
    Haseeb Avarakkan

    __________________________________
    "Feedback is the breakfast of champions"

+ 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