+ Reply to Thread
Results 1 to 11 of 11

How to index and match multiple criteria without repeating results?

  1. #1
    Registered User
    Join Date
    10-26-2013
    Location
    Melbourne, Australia
    MS-Off Ver
    Excel 2016
    Posts
    56

    How to index and match multiple criteria without repeating results?

    Hello! This is really difficult to explain so it's best to look at the sample worksheet. I'm attempting to match 2 sport team's head-to-head results from a list of results, but I can only figure out how to match the most recent game they played against each other.

    These are the steps I'm hoping to recreate:

    - Input Team1's name in I1, and the Team2's name in L1
    - It should then find all the instances where in the results section, Team1 & Team2 appear together in columns B & D (In any order)
    - It should return the most recent game first, then find the second to most recent game and return that in the following row and continue

    The only way I know how to do this is to match Team1 & Team2 and return the most recent game, how can I make it continue down?

    Please look at the attached sample so it hopefully makes more sense. On the left is a replica of how my results columns are formatted, and on the right is what I am trying to achieve.

    Thank you all in advance!
    Attached Files Attached Files

  2. #2
    Forum Expert RobertMika's Avatar
    Join Date
    06-22-2009
    Location
    Haverhill, UK
    MS-Off Ver
    Excel 2003-13
    Posts
    1,530

    Re: How to index and match multiple criteria without repeating results?

    Please see attached.

    Copy of MutipleIndexMatchSample.xlsx
    If you are http://www.excelforum.com/image.php?type=sigpic&userid=125481&dateline=1392355029happy with the results, please add to the contributor's
    reputation by clicking the reputation icon (star icon).




    If you are satisfied with the solution(s) provided, please mark your thread as Solved.
    Select Thread Tools-> Mark thread as Solved.
    To undo, select Thread Tools-> Mark thread as Unsolved.
    http://www.excelaris.co.uk

  3. #3
    Registered User
    Join Date
    10-26-2013
    Location
    Melbourne, Australia
    MS-Off Ver
    Excel 2016
    Posts
    56

    Re: How to index and match multiple criteria without repeating results?

    Thank you so much that is absolutely perfect. I truly can not thank you enough, I would have never figured that out.

  4. #4
    Forum Expert RobertMika's Avatar
    Join Date
    06-22-2009
    Location
    Haverhill, UK
    MS-Off Ver
    Excel 2003-13
    Posts
    1,530

    Re: How to index and match multiple criteria without repeating results?

    You are welcome.
    Array formulas are powerful

  5. #5
    Registered User
    Join Date
    04-10-2013
    Location
    Saudia
    MS-Off Ver
    Excel 2003
    Posts
    6

    Re: How to index and match multiple criteria without repeating results?

    i need your help regarding sum if. I have bulk data in which we have recorded customer count per hour and i want to sum the count in two different date range. i.e

    Date Hr1 Hr2 Hr3 Hr4 Hr5 Hr6 Hr7 Hr8 Hr9
    13-08-01 226 239 94 25 60 82 68 70
    13-08-02 211 178 74 14 76 86 89 73
    13-08-03 220 167 71 23 80 84 97 73
    13-08-04 210 187 141 21 78 79 76 61
    13-08-05 237 210 141 11 7 65 87 72 57
    13-08-06 255 233 150 12 19 109 102 82 79
    13-08-07 388 332 276 121 12 81 93 86 90
    13-08-08 221 166 143 23 68 225 240 179
    13-08-09 191 184 146 6 24 119 191 244 147
    13-08-10 231 151 113 6 41 99 165 216 189


    please help how to sum.

  6. #6
    Registered User
    Join Date
    04-10-2013
    Location
    Saudia
    MS-Off Ver
    Excel 2003
    Posts
    6

    Re: How to index and match multiple criteria without repeating results?

    i need your help regarding sum if. I have bulk data in which we have recorded customer count per hour and i want to sum the count in two different date range. i.e

    Date Hr1 Hr2 Hr3 Hr4 Hr5 Hr6 Hr7 Hr8 Hr9
    13-08-01 226 239 94 25 60 82 68 70
    13-08-02 211 178 74 14 76 86 89 73
    13-08-03 220 167 71 23 80 84 97 73
    13-08-04 210 187 141 21 78 79 76 61
    13-08-05 237 210 141 11 7 65 87 72 57
    13-08-06 255 233 150 12 19 109 102 82 79
    13-08-07 388 332 276 121 12 81 93 86 90
    13-08-08 221 166 143 23 68 225 240 179
    13-08-09 191 184 146 6 24 119 191 244 147
    13-08-10 231 151 113 6 41 99 165 216 189


    please help how to sum.

  7. #7
    Forum Expert RobertMika's Avatar
    Join Date
    06-22-2009
    Location
    Haverhill, UK
    MS-Off Ver
    Excel 2003-13
    Posts
    1,530

    Re: How to index and match multiple criteria without repeating results?

    You should have started your own threat.
    Could you provide and workbook with data with required result?

  8. #8
    Registered User
    Join Date
    10-26-2013
    Location
    Melbourne, Australia
    MS-Off Ver
    Excel 2016
    Posts
    56

    Re: How to index and match multiple criteria without repeating results?

    Back to the original topic for a moment, would it be possible to modify the formula to return games played with just 1 team against any opponent? I have tried by removing the references to team 2, and it just returns a blank cell due to an error, but I can't understand why that is.

    Please Login or Register  to view this content.
    After I remove the reference to the second team and set it as an array formula it is an error, this is what I end up with:

    Please Login or Register  to view this content.
    I'm a bit stumped on what else I could remove from it, thank you.

  9. #9
    Forum Expert RobertMika's Avatar
    Join Date
    06-22-2009
    Location
    Haverhill, UK
    MS-Off Ver
    Excel 2003-13
    Posts
    1,530

    Re: How to index and match multiple criteria without repeating results?

    In H4:
    =IFERROR(INDEX(A$2:A$7,SMALL(IF(($B$2:$B$7=$I$1)+($D$2:$D$7=$I$1),ROW($B$2:$B$7)-ROW($B$2)+1),ROWS(A$2:$B2))),"")

    "+" means "OR" this case, as you need Let say New York in column B or D.

  10. #10
    Registered User
    Join Date
    10-26-2013
    Location
    Melbourne, Australia
    MS-Off Ver
    Excel 2016
    Posts
    56

    Re: How to index and match multiple criteria without repeating results?

    Ahh perfect, I had read the + as an 'and' statement which is why I left the two IF's in.

    Thank you very much, again!

  11. #11
    Forum Expert RobertMika's Avatar
    Join Date
    06-22-2009
    Location
    Haverhill, UK
    MS-Off Ver
    Excel 2003-13
    Posts
    1,530

    Re: How to index and match multiple criteria without repeating results?

    AND would be "*".

    please add reputation if you happy with the solution.

+ 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. Returning multiple distinct/repeating values for vlookup or index-match
    By amatvien in forum Excel Formulas & Functions
    Replies: 9
    Last Post: 08-21-2018, 01:14 PM
  2. [SOLVED] Index, Match, Multiple Results
    By ecorf in forum Excel Formulas & Functions
    Replies: 4
    Last Post: 07-28-2013, 11:37 AM
  3. Index/Match with multiple results
    By kwadjo in forum Excel Formulas & Functions
    Replies: 6
    Last Post: 01-26-2013, 04:05 PM
  4. Index/Match with multiple results
    By amcghee1 in forum Excel General
    Replies: 4
    Last Post: 10-18-2012, 12:15 PM
  5. Replies: 0
    Last Post: 03-02-2012, 11:16 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