+ Reply to Thread
Results 1 to 7 of 7

Find Max and Min based on cell reference(s), display corresponding value

  1. #1
    Registered User
    Join Date
    06-30-2009
    Location
    Minneapolis, USA
    MS-Off Ver
    Excel 2007
    Posts
    5

    Find Max and Min based on cell reference(s), display corresponding value

    MY CURRENT FORMULAS/TABLE FORMAT:

    Please Login or Register  to view this content.
    (Displays the Price for the most expensive Item of the Type entered in K16.)

    Please Login or Register  to view this content.
    (Displays most expensive Item in table.)

    (A:A is Type column)
    (C:C is Item column)
    (D:D is Price column)
    (H:H is basically a True/False column)
    (K16 is the Type I am telling it to look for)

    FIRST QUESTION: How can I modify the formula to show that newly-found Price's corresponding Item (C:C)?

    SECOND QUESTION: How can I modify the formula to show the Item (C:C) that matches multiple criteria (A:A column matches K16, H:H matches "x")?

    THIRD QUESTION: How can I modify the formula to show the Price (D:D) that matches multiple criteria? (A:A column matches K16, H:H matches "x".)

    NOTE ON ATTACHMENT: The GREEN cells are the ones I am trying to populate.

    (P.S. I used this helpful thread to get to this point: http://www.excelforum.com/excel-misc...reference.html)
    Attached Files Attached Files
    Last edited by mpls; 06-30-2009 at 02:25 PM. Reason: attached example file

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

    Re: Find Max and Min based on cell reference(s), display corresponding value

    Not entirely sure I follow the last two requirements - is "nine's" meant to be a partial search of Name ?

    L4:
    =MAX(IF($H$2:$H$3000="x",$D$2:$D$3000))
    committed with CTRL + SHIFT + ENTER

    L5:
    =MAX(IF(($H$2:$H$3000="x")*($A$2:$A$3000=$K5),$D$2:$D$3000))
    committed with CTRL + SHIFT + ENTER

    L6 & L7 are as above merely replacing MAX with MIN.

  3. #3
    Registered User
    Join Date
    06-30-2009
    Location
    Minneapolis, USA
    MS-Off Ver
    Excel 2007
    Posts
    5

    Re: Find Max and Min based on cell reference(s), display corresponding value

    Thank you! This solved "Question Three." Now I just need to figure out how to show the Item that correlates to the Max Price we just found.
    FIRST QUESTION: How can I modify the formula to show that newly-found Price's corresponding Item (C:C)?

    SECOND QUESTION: How can I modify the formula to show the Item (C:C) that matches multiple criteria (A:A column matches K16, H:H matches "x")?
    ("Nine's" is just the name of the store--it's just there as an explanation to my end-users.)

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

    Re: Find Max and Min based on cell reference(s), display corresponding value

    You could technically use INDEX, eg "for most expensive item I own":

    =INDEX($C$2:$C$3000,MATCH(1,INDEX(($H$2:$H$3000="X")*($D$2:$D$3000=$L4),0),0))
    (not an array so commit with ENTER as normal)

    Hopefully you can work on the remainder... of course if you have multiple products matching criteria the above will return only the first matching item.

  5. #5
    Registered User
    Join Date
    06-30-2009
    Location
    Minneapolis, USA
    MS-Off Ver
    Excel 2007
    Posts
    5

    Re: Find Max and Min based on cell reference(s), display corresponding value

    Awesome! We're getting so close!

    =INDEX($C$2:$C$3000,MATCH(1,INDEX(($H$2:$H$3000="X")*($D$2:$D$3000=$M4),0),0))
    This is working to find the most expensive item that the user owns in the list and display the name of the item, rather than the price.

    Now I just need to figure out:

    (1) how to find the most expensive item that falls within a specified "Type" in the list and display the name of the item, rather than the price.

    (2) how to find the most expensive item that the user owns AND that falls within a specified "Type" in the list and display the name of the item, rather than the price. <--This is already working, woohoo!
    Last edited by mpls; 06-30-2009 at 03:45 PM. Reason: grayed out a problem which I realized had already been solved

  6. #6
    Registered User
    Join Date
    06-30-2009
    Location
    Minneapolis, USA
    MS-Off Ver
    Excel 2007
    Posts
    5

    Re: Find Max and Min based on cell reference(s), display corresponding value

    More information:

    I tried the following formula. The red part is the part I changed from your provided formula. Note that in this red portion, I am trying to say "Find cells where the Type (Column A) matches this specified type (K17)."

    =INDEX($C$2:$C$3000,MATCH(1,INDEX(($A$2:$A$3000=$K17)*($D$2:$D$3000=$M17),0),0))

  7. #7
    Registered User
    Join Date
    06-30-2009
    Location
    Minneapolis, USA
    MS-Off Ver
    Excel 2007
    Posts
    5

    Re: Find Max and Min based on cell reference(s), display corresponding value

    Success!

    I had been staring at the (correct) formula and didn't realize that problem was actually in a cell it was referencing. I believe my issues are SOLVED!

    Thank you DonkeyOte for your guidance!

+ 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