+ Reply to Thread
Results 1 to 9 of 9

Index match with multiple criteria's (where one is a header)

  1. #1
    Registered User
    Join Date
    02-28-2018
    Location
    Amersfoort
    MS-Off Ver
    2013
    Posts
    4

    Index match with multiple criteria's (where one is a header)

    Hello,

    Can someone help me with this problem? I need to get the hours from one sheet to the other but the lookup has multiple criteria's.

    I can not find the solution. I think Index match does the trick but I don't understand the formula. Maybe someone can help me so that I can see what it does.

    Thanks Andre
    Attached Files Attached Files

  2. #2
    Forum Moderator Glenn Kennedy's Avatar
    Join Date
    07-08-2012
    Location
    Digital Nomad... occasionally based in Ireland.
    MS-Off Ver
    O365 (PC) V 2406
    Posts
    44,662

    Re: Index match with multiple criteria's (where one is a header)

    In F2, copied across and down:

    =IFERROR(INDEX(Data!$E$3:$AB$21,MATCH(Test!$A2,Data!$A$3:$A$21,0),MATCH(Test!F$1,Data!$E$2:$AB$2,0)),"")

    You may beed to use ; instead of ,
    Attached Files Attached Files
    Glenn




    None of us get paid for helping you... we do this for fun. So DON'T FORGET to say "Thank You" to all who have freely given some of their time to help YOU

  3. #3
    Registered User
    Join Date
    02-28-2018
    Location
    Amersfoort
    MS-Off Ver
    2013
    Posts
    4

    Re: Index match with multiple criteria's (where one is a header)

    Thanks Glenn it almost works.

    I only get the hours from week 50 pasted under week 49

    I put in this formula:
    =IFERROR(INDEX(Data!$G$3:$BV$360;MATCH(Test!A2;Data!$B$3:$B$360;0);MATCH(Test!$F$1;Data!$F$2:$BV$2;0));"")
    Last edited by Andre1980; 02-28-2018 at 08:37 AM.

  4. #4
    Forum Moderator Glenn Kennedy's Avatar
    Join Date
    07-08-2012
    Location
    Digital Nomad... occasionally based in Ireland.
    MS-Off Ver
    O365 (PC) V 2406
    Posts
    44,662

    Re: Index match with multiple criteria's (where one is a header)

    You'll need to explain... I see week 49 under week 49 in the sheet I posted.... unless I'm losing my marbles...

    If you are talking about another sheet, that i have never seen.... then I can't see what I can't see....

  5. #5
    Forum Moderator Glenn Kennedy's Avatar
    Join Date
    07-08-2012
    Location
    Digital Nomad... occasionally based in Ireland.
    MS-Off Ver
    O365 (PC) V 2406
    Posts
    44,662

    Re: Index match with multiple criteria's (where one is a header)

    You amended your post...

    =IFERROR(INDEX(Data!$G$3:$BV$360;MATCH(Test!A2;Data!$B$3:$B$360;0);MATCH(Test!$F$1;Data!$F$2:$BV$2;0));"")

    You are inconsistent in your ranges. Both should start from the same column. I can't tell which is correct, though!!

  6. #6
    Registered User
    Join Date
    02-28-2018
    Location
    Amersfoort
    MS-Off Ver
    2013
    Posts
    4

    Re: Index match with multiple criteria's (where one is a header)

    Yes you are right. Because I don't want to share private information I made an extra sheet where I replaced the names with co-worker 1 enz.

    Let's try this...
    Attached Files Attached Files

  7. #7
    Forum Moderator Glenn Kennedy's Avatar
    Join Date
    07-08-2012
    Location
    Digital Nomad... occasionally based in Ireland.
    MS-Off Ver
    O365 (PC) V 2406
    Posts
    44,662

    Re: Index match with multiple criteria's (where one is a header)

    Therte were a few other errors in your formula, as you did not transcribe the $ signs carefully enough....

    =IFERROR(INDEX(Data!$F$3:$BV$360,MATCH(Test!$A2,Data!$B$3:$B$360,0),MATCH(Test!F$1,Data!$F$2:$BV$2,0)),"")
    Attached Files Attached Files

  8. #8
    Registered User
    Join Date
    02-28-2018
    Location
    Amersfoort
    MS-Off Ver
    2013
    Posts
    4

    Re: Index match with multiple criteria's (where one is a header)

    You are the best.

    Thanks.

  9. #9
    Forum Moderator Glenn Kennedy's Avatar
    Join Date
    07-08-2012
    Location
    Digital Nomad... occasionally based in Ireland.
    MS-Off Ver
    O365 (PC) V 2406
    Posts
    44,662

    Re: Index match with multiple criteria's (where one is a header)

    You're welcome.



    If that takes care of your original question, please select "Thread Tools" from the menu link above and mark this thread as SOLVED.

    It'd also be appreciated if you were to click the Add Reputation button at the foot of any of the posts of all members who helped you reach a 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. Index/Match across multiple sheets, return column header
    By TheYoungDrea in forum Excel Formulas & Functions
    Replies: 1
    Last Post: 08-09-2017, 07:49 AM
  2. Replies: 3
    Last Post: 01-18-2016, 10:18 AM
  3. [SOLVED] INDEX, MATCH multiple values in single row, return header value(s)
    By grrliz in forum Excel Formulas & Functions
    Replies: 3
    Last Post: 12-11-2014, 07:21 PM
  4. [SOLVED] Index & Match for multiple Column and Row to find header...
    By mr-c in forum Excel Formulas & Functions
    Replies: 9
    Last Post: 10-31-2014, 08:24 AM
  5. Replies: 2
    Last Post: 09-27-2014, 04:34 PM
  6. Replies: 5
    Last Post: 04-20-2012, 08:54 AM
  7. [SOLVED] Index and Match Multiple Header (Rows) Criteria
    By dluhut in forum Excel General
    Replies: 7
    Last Post: 04-12-2012, 06:25 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