+ Reply to Thread
Results 1 to 5 of 5

index and match multiple columns on two different sheets

Hybrid View

  1. #1
    Registered User
    Join Date
    04-19-2013
    Location
    Woodchester
    MS-Off Ver
    Excel 2007
    Posts
    8

    index and match multiple columns on two different sheets

    Hi,

    I've got a problem where I am trying to return a value if two criteria from one table match two from another.

    I have included a example of my issue.

    =INDEX(Time!D:D,MATCH(Data!A2,Time!A:A,0)*AND(MATCH(Data!C2,Time!C:C,0)))

    I have had a look around lots of forums but cant get my head around what is wrong with my formula


    Thanks in advance of any help
    Attached Files Attached Files

  2. #2
    Forum Guru sktneer's Avatar
    Join Date
    04-30-2011
    Location
    Kanpur, India
    MS-Off Ver
    Office 365
    Posts
    9,651

    Re: index and match multiple columns on two different sheets

    Try this array formula and remember to confirm it with Ctrl+Shift+Enter

    =INDEX(Time!$D$2:$D$11,MIN(IF(Time!$A$2:$A$11=A2,IF(Time!$B$2:$B$11=B2,IF(Time!$C$2:$C$11=C2,ROW(Time!$D$2:$D$11)-ROW(Time!$D$2)+1)))))
    Regards
    sktneer


    Treat people the way you want to be treated. Talk to people the way you want to be talked to.
    Respect is earned NOT given.

  3. #3
    Registered User
    Join Date
    04-19-2013
    Location
    Woodchester
    MS-Off Ver
    Excel 2007
    Posts
    8

    Re: index and match multiple columns on two different sheets

    Thanks for your help.

    Would you mind explaining how this formula works?
    For instance I dont really understand what this part of the formula is doing )-ROW(Time!$D$2)+1)))))

    Thanks again

  4. #4
    Forum Guru sktneer's Avatar
    Join Date
    04-30-2011
    Location
    Kanpur, India
    MS-Off Ver
    Office 365
    Posts
    9,651

    Re: index and match multiple columns on two different sheets

    ROW(Time!$D$2:$D$11)-ROW(Time!$D$2)+1 gives you row numbers for the rows which meet the logical criteria in IF statements. Select the cell which has this formula and press F2 and select ROW(Time!$D$2:$D$11)-ROW(Time!$D$2)+1 by dragging it in the formula bar and press F9 that will tell you what this formula is doing.

  5. #5
    Registered User
    Join Date
    04-19-2013
    Location
    Woodchester
    MS-Off Ver
    Excel 2007
    Posts
    8

    Thumbs up Re: index and match multiple columns on two different sheets

    Thanks for your help.

    I am having a liitle difficulty with using this formula on another sheet.
    Please could you take a look and explain where ive gone wrong. Thanks
    Attached Files Attached Files

+ 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 and MATCH(?) combined with SUM across multiple sheets
    By jusmightbeokay in forum Excel Formulas & Functions
    Replies: 3
    Last Post: 03-14-2014, 06:14 AM
  2. Vlookup (or index/match) with multiple criteria over multiple sheets
    By Groovicles in forum Excel Formulas & Functions
    Replies: 2
    Last Post: 09-18-2013, 01:56 PM
  3. Multiple Sheets Match & Index filtering by sheets
    By ijulian in forum Excel Formulas & Functions
    Replies: 4
    Last Post: 11-24-2012, 01:49 PM
  4. index match from multiple sheets
    By avk in forum Excel General
    Replies: 4
    Last Post: 10-13-2011, 04:30 PM
  5. Replies: 2
    Last Post: 06-29-2011, 01:36 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