+ Reply to Thread
Results 1 to 13 of 13

Help with using Index/Match alongside MAXIFS to get corresponding cells

  1. #1
    Registered User
    Join Date
    07-01-2019
    Location
    iowa
    MS-Off Ver
    Office 2016 / 365
    Posts
    10

    Help with using Index/Match alongside MAXIFS to get corresponding cells

    Hi all!

    Having trouble with this one. I have the 2 separate pieces working, but I can't seem to figure out how to put them together.

    Okay, so basically I am trying to format a record book that uses data from another sheet. Here is a screenshot of what it will look like:

    Screen Shot 2019-07-02 at 11.44.26 AM.png

    So, I have figured out how to get the number, which includes multiple criteria. The formula for that looks like this:
    Please Login or Register  to view this content.
    Next, I want to get the corresponding name, and week #, which are all on the same row as the previous number. I have not been able to figure out how to do that. I have this:
    Please Login or Register  to view this content.
    Which sort of works, but it only gets the max, and does not include the criteria ($AB and $AC) that I need filtered. I'm unsure of how to add those criteria.

    Lastly, and this isn't the hugest deal in the world, but it would be nice, is I know that this will only return the first value if there are duplicates. Is there a way to print each value of duplicates?

    For example, something like this:
    Screen Shot 2019-07-02 at 11.52.09 AM.png

    Thanks so much!

  2. #2
    Registered User
    Join Date
    06-04-2014
    Posts
    34

    Re: Help with using Index/Match alongside MAXIFS to get corresponding cells

    Hi!
    Feels like a combination of INDEX and MATCH should work, or OFFSET. Would you be able to upload the workbook? Perhaps only an example, which would make things easier to get a grip on.

  3. #3
    Registered User
    Join Date
    07-01-2019
    Location
    iowa
    MS-Off Ver
    Office 2016 / 365
    Posts
    10

    Re: Help with using Index/Match alongside MAXIFS to get corresponding cells

    Thanks for the reply! I've uploaded a simple sample that shows what I am trying to do.

    Basically in sheet '2007' I have a list of records. In the 'Season Records' sheet, I am pulling the max value from each column in '2007', where "Days" = (Col A12) and "Finals" = (Col A14).

    I *then* want to pull the row's corresponding values for Column A ("Week") and Column B ("Team"), ideally pulling duplicates as well, though if that is too difficult, the first would suffice.
    Attached Files Attached Files
    Last edited by grld; 07-02-2019 at 03:46 PM.

  4. #4
    Registered User
    Join Date
    07-01-2019
    Location
    iowa
    MS-Off Ver
    Office 2016 / 365
    Posts
    10

    Re: Help with using Index/Match alongside MAXIFS to get corresponding cells

    gahhh, still stuck on this. anyone?

  5. #5
    Forum Expert
    Join Date
    09-25-2015
    Location
    Milan Italy
    MS-Off Ver
    office 365
    Posts
    1,783

    Re: Help with using Index/Match alongside MAXIFS to get corresponding cells

    Season Records


    D5=IFERROR(INDEX('2007'!$B$2:$B$7&" week"&'2007'!$A$2:$A$7,SMALL(IF('2007'!C$2:C$7='Season Records'!D$4,ROW('2007'!$B$2:$B$7)-ROW('2007'!$B$2)+1),ROWS('2007'!$B$2:'2007'!$B2))),"")


    control+shift+enter copy across and down
    Last edited by CARACALLA; 07-04-2019 at 02:57 PM.

  6. #6
    Forum Moderator
    Join Date
    01-21-2014
    Location
    St. Joseph, Illinois U.S.A.
    MS-Off Ver
    Office 365 v 2403
    Posts
    13,406

    Re: Help with using Index/Match alongside MAXIFS to get corresponding cells

    Interpreted a little differently. Array enter in D5, fill down and across.
    Formula: copy to clipboard
    Please Login or Register  to view this content.



    A
    B
    C
    D
    E
    F
    1
    Hits
    AB
    Runs
    2
    3
    4
    2007
    63
    209
    40
    5
    John Doe
    John Doe
    John Doe
    6
    John Doe 3 Week 9
    7
    8
    Dave

  7. #7
    Registered User
    Join Date
    07-01-2019
    Location
    iowa
    MS-Off Ver
    Office 2016 / 365
    Posts
    10

    Re: Help with using Index/Match alongside MAXIFS to get corresponding cells

    Thanks! I got this one to work:

    Please Login or Register  to view this content.
    Curious, how do I add a condition to this? It's getting so long that I'm getting a bit confused as to where to put it. Let's say I want to add $AB$87="yes"
    Where would that go?

    Thanks again

  8. #8
    Forum Expert
    Join Date
    09-25-2015
    Location
    Milan Italy
    MS-Off Ver
    office 365
    Posts
    1,783

    Re: Help with using Index/Match alongside MAXIFS to get corresponding cells

    I change formula in post #5

    new formula

    D5=IFERROR(INDEX('2007'!$B$2:$B$7&" week"&'2007'!$A$2:$A$7,SMALL(IF('2007'!C$2:C$7='Season Records'!D$4,ROW('2007'!$B$2:$B$7)-ROW('2007'!$B$2)+1),ROWS('2007'!$B$2:'2007'!$B2))),"")

    control +shift +enter

    copy across and down

  9. #9
    Registered User
    Join Date
    07-01-2019
    Location
    iowa
    MS-Off Ver
    Office 2016 / 365
    Posts
    10

    Re: Help with using Index/Match alongside MAXIFS to get corresponding cells

    Awesome, thank you so much. Still wondering about my followup question as well:

    Curious, how do I add a condition to this? It's getting so long that I'm getting a bit confused as to where to put it. Let's say I want to add $AB$87="yes"
    Where would that go?

  10. #10
    Forum Expert
    Join Date
    09-25-2015
    Location
    Milan Italy
    MS-Off Ver
    office 365
    Posts
    1,783

    Re: Help with using Index/Match alongside MAXIFS to get corresponding cells

    Sorry

    I do not understand. $AB$87="yes" ?

    Can you provide some sample data and what the expected outcome is?

  11. #11
    Registered User
    Join Date
    07-01-2019
    Location
    iowa
    MS-Off Ver
    Office 2016 / 365
    Posts
    10

    Re: Help with using Index/Match alongside MAXIFS to get corresponding cells

    Sure, in this screenshot it would be $A$14

    Attachment 630902

    Where I would want to ignore all rows where the value in G2:G7 = "yes"

    I've attached a workbook as well.
    Attached Files Attached Files

  12. #12
    Registered User
    Join Date
    07-01-2019
    Location
    iowa
    MS-Off Ver
    Office 2016 / 365
    Posts
    10

    Re: Help with using Index/Match alongside MAXIFS to get corresponding cells

    Basically, just wondering where I would add a criteria to the formula so that I could ignore if it equals a specific value

  13. #13
    Forum Expert
    Join Date
    09-25-2015
    Location
    Milan Italy
    MS-Off Ver
    office 365
    Posts
    1,783

    Re: Help with using Index/Match alongside MAXIFS to get corresponding cells

    D5=IFERROR(INDEX('2007'!$B$2:$B$7&" week"&'2007'!$A$2:$A$7,SMALL(IF('2007'!E$2:E$7='Season Records'!F$4,IF('2007'!$G$2:$G$7<>'2007'!$G$5,ROW('2007'!$B$2:$B$7)-ROW('2007'!$B$2)+1)),ROWS('2007'!$B$2:'2007'!D2))),"")

    control+shift +enter

    copy across and down

    <> different from 2007'!$G$5 (yes)

    with condition '2007'!$G$2:$G$7='2007'!$G$5 evrything is blank . No match between hits -ab-run and '2007'!$B$2:$B$7&" week"&'2007'!$A$2:$A$7

    sorry for my English
    Last edited by CARACALLA; 07-04-2019 at 04:38 PM.

+ 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] Using INDEX - Match, Match 2 cells and return another cells' data
    By billrogers184 in forum Excel Formulas & Functions
    Replies: 7
    Last Post: 10-17-2018, 09:15 AM
  2. Creating INDEX MATCH MATCH formula based off text in cells
    By bbkdude in forum Excel Formulas & Functions
    Replies: 7
    Last Post: 04-26-2017, 10:37 AM
  3. [SOLVED] INDEX/MATCH to return cells 4 & 5 places below my Match...
    By Ourkid123uk in forum Excel Formulas & Functions
    Replies: 5
    Last Post: 04-19-2017, 07:56 AM
  4. [SOLVED] Help with Index/Match using numbers from two cells for the match.
    By dtexter in forum Excel Formulas & Functions
    Replies: 8
    Last Post: 01-13-2017, 05:42 PM
  5. Using arrays alongside INDEX and MATCH
    By lostest in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 08-27-2016, 02:27 PM
  6. Replies: 6
    Last Post: 04-30-2014, 02:42 AM
  7. Replies: 6
    Last Post: 11-08-2013, 10:29 PM

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