+ Reply to Thread
Results 1 to 7 of 7

Thread: Help with INDEX, MATCH from 3 criteria

  1. #1
    Registered User
    Join Date
    05-10-2011
    Location
    Central Ohio
    MS-Off Ver
    Excel 2000
    Posts
    66

    Help with INDEX, MATCH from 3 criteria

    Trying to do a football sheet to compair team scoring by quarter. In the attached file I want to return the scores by team, week and quarter from the sample sheet to the results sheet.

    Any help would be appreciated.

    Jim O
    Attached Files Attached Files
    Last edited by JO505; 12-13-2011 at 07:00 PM.

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

    Re: Help with INDEX, MATCH from 3 criteria

    Try:

    =INDEX(INDEX('Data Sample'!$E$3:$AB$3,MATCH(Result!$I$4,'Data Sample'!$E$1:$AB$1,0)):'Data Sample'!$AB$34,MATCH(Result!$I6,'Data Sample'!$D$3:$D$34,0),COLUMNS($K$2:K$2))
    If you remove blank row between team names in column I, then you can easily copy formula down.
    Microsoft MVP - Excel

    Where there is a will there are many ways. Pick One!


    Please read the Forum Rules

    If you are happy with the results, please add to the contributor's reputation by clicking the reputation icon (star icon) below

    Please also mark the thread as Solved once it is solved. Check the FAQ's to see how.

    Preferred Charities: Lupus Canada and Sick Kids Foundation.
    Feel Free to Donate if you want to, for the assistance you received today.

  3. #3
    Valued Forum Contributor Haseeb A's Avatar
    Join Date
    05-24-2011
    Location
    India | Kwt
    MS-Off Ver
    2007
    Posts
    1,453

    Re: Help with INDEX, MATCH from 3 criteria

    Try this;

    =VLOOKUP($I6,'Data Sample'!$D:$AB,MATCH($I$4,'Data Sample'!$D$1:$AB$1,0)+COLUMNS($K6:K6)-1,0)

    copy down.
    HTH; Haseeb

    If your problem is solved, please say so clearly, and mark your thread as Solved:
    Forum Rules & How to Mark a thread as SOLVED

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

    Re: Help with INDEX, MATCH from 3 criteria

    Definitely a more concise option
    Microsoft MVP - Excel

    Where there is a will there are many ways. Pick One!


    Please read the Forum Rules

    If you are happy with the results, please add to the contributor's reputation by clicking the reputation icon (star icon) below

    Please also mark the thread as Solved once it is solved. Check the FAQ's to see how.

    Preferred Charities: Lupus Canada and Sick Kids Foundation.
    Feel Free to Donate if you want to, for the assistance you received today.

  5. #5
    Registered User
    Join Date
    05-10-2011
    Location
    Central Ohio
    MS-Off Ver
    Excel 2000
    Posts
    66

    Re: Help with INDEX, MATCH from 3 criteria

    Haseeb,

    I that works nery well but I do have a question. How does the +COLUMNS($K6:K6)-1,0) function?

    Jim O

  6. #6
    Valued Forum Contributor Haseeb A's Avatar
    Join Date
    05-24-2011
    Location
    India | Kwt
    MS-Off Ver
    2007
    Posts
    1,453

    Re: Help with INDEX, MATCH from 3 criteria

    COLUMNS($K6:K6). COLUMNS will count how many column between ranges. here is 1, K:K, which is column K. We have stopped starting cell with $ which is $K6. When drag across will give 2,3,4,5,.....

    MATCH($I$4,'Data Sample'!$D$1:$AB$1,0) will give you the position where Week starts. In the same column where Week starts also starts number 1, then next column 2, then 3 etc... So if you use COLUMNS($K6:K6)-1 will give 0 which will minus add to MATCH. When copy across this will add +1 column to MATCH, so VLOOKUP will give the result from columns.

    Hope this helps
    HTH; Haseeb

    If your problem is solved, please say so clearly, and mark your thread as Solved:
    Forum Rules & How to Mark a thread as SOLVED

  7. #7
    Registered User
    Join Date
    05-10-2011
    Location
    Central Ohio
    MS-Off Ver
    Excel 2000
    Posts
    66

    Re: Help with INDEX, MATCH from 3 criteria

    I thank you both for your help and time with this problem. It may take some time to fully understand what is going on with the formula but for now it works.

    Thanks Again!

    Jim O

+ 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.2.0