+ Reply to Thread
Results 1 to 6 of 6

#REF result using Index and multiple Match requirements

  1. #1
    Forum Contributor
    Join Date
    05-08-2015
    Location
    Asheville NC
    MS-Off Ver
    Excel for Office 365 MSO
    Posts
    113

    #REF result using Index and multiple Match requirements

    I am using 2 separate Index match formulas to pull data from 2 separate sheets if 3 cells match. It works fine on one sheet but I get a #REF error when trying to pull data from the 2nd sheet. I've copied examples from the 2 different data pages and put them on sheet 1 with the formulas in cells D8:G8 on sheet 2. For the #Ref errors, it will work if using only 1 match but not multiple matches.

    The data comes from 2 different people and is formatted differently. I've tried formatting the same and still get the #ref error.

    Thanks for any support.
    Attached Files Attached Files

  2. #2
    Forum Moderator AliGW's Avatar
    Join Date
    08-10-2013
    Location
    Retired in Ipswich, Suffolk, but grew up in Sawley, Derbyshire (both in England)
    MS-Off Ver
    MS 365 Subscription Insider Beta Channel v. 2503 (Windows 11 Home 24H2 64-bit)
    Posts
    90,181

    Re: #REF result using Index and multiple Match requirements

    Not sure I get what you want, but try this:

    =INDEX(Sheet1!$D$16:$D$21,MATCH(Sheet2!$A8&Sheet2!$B8&Sheet2!$C8,Sheet1!$A$16:$A$21&Sheet1!$C$16:$C$21&Sheet1!$B$16:$B$21,0))

    I don't think you quite understand the INDEX MATCH syntax.
    Last edited by AliGW; 10-25-2019 at 01:26 PM.
    Ali


    Enthusiastic self-taught user of MS Excel who's always learning!
    Don't forget to say "thank you" in your thread to anyone who has offered you help. It's a universal courtesy.
    You can reward them by clicking on * Add Reputation below their user name on the left, if you wish.

    NB:
    as a Moderator, I never accept friendship requests.
    Forum Rules (updated August 2023): please read them here.

  3. #3
    Forum Contributor
    Join Date
    05-08-2015
    Location
    Asheville NC
    MS-Off Ver
    Excel for Office 365 MSO
    Posts
    113

    Re: #REF result using Index and multiple Match requirements

    I copied that formula and now get a #VALUE! error.

  4. #4
    Forum Expert Sam Capricci's Avatar
    Join Date
    06-14-2012
    Location
    Palm Harbor, Florida
    MS-Off Ver
    16.95 for Mac MS 365
    Posts
    8,682

    Re: #REF result using Index and multiple Match requirements

    I tried this instead in D8 (dragged into E8) =IFERROR(LOOKUP(2,1/(Sheet1!$A$16:$A$21=$A8)/(Sheet1!$B$16:$B$21=$C8)/(Sheet1!$C$16:$C$21=$B8),Sheet1!D$16:D$21),"")
    then this in F8 dragged right into G8 =IFERROR(LOOKUP(2,1/(Sheet1!$A$5:$A$10=$A8)/(Sheet1!$B$5:$B$10=$C8)/(Sheet1!$C$5:$C$10=$B8),Sheet1!D$5:D$10),"")
    they appear to work.
    Make contributors happy, click on the "* Add Reputation" as a way to say thank you.
    Sam Capricci

  5. #5
    Forum Contributor
    Join Date
    05-08-2015
    Location
    Asheville NC
    MS-Off Ver
    Excel for Office 365 MSO
    Posts
    113

    Re: #REF result using Index and multiple Match requirements

    Sambo kid: thanks, that worked well enough for me.
    AliGW: thanks as well for your efforts.

    Here's another method to use in cell D8, then adjust as needed:=INDEX(Sheet1!D16:D21,MATCH(1,(Sheet2!$A$8=Sheet1!$A$16:$A$21)*(Sheet2!$B$8=Sheet1!$C$16:$C$21)*(Sheet2!$C$8=Sheet1!$B$16:$B$21),0))

  6. #6
    Forum Expert Sam Capricci's Avatar
    Join Date
    06-14-2012
    Location
    Palm Harbor, Florida
    MS-Off Ver
    16.95 for Mac MS 365
    Posts
    8,682

    Re: #REF result using Index and multiple Match requirements

    Thank you for the rep!

+ 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] INDEX/MATCH more than 1 result available but only displaying the 1st result
    By MarkPr in forum Excel Formulas & Functions
    Replies: 4
    Last Post: 07-23-2018, 04:48 AM
  2. [SOLVED] Index Match Multiple Criteria - Evasive desired last entry result
    By Perk1961 in forum Excel Formulas & Functions
    Replies: 10
    Last Post: 02-26-2018, 05:12 AM
  3. [SOLVED] Index/Match Multiple Criteria only Finds First Result
    By DomSza in forum Excel Formulas & Functions
    Replies: 3
    Last Post: 08-12-2015, 08:57 AM
  4. [SOLVED] Multiple criteria for Index and Match with if(and( & if(or( result #value?
    By v.rodgers in forum Excel Formulas & Functions
    Replies: 9
    Last Post: 04-08-2015, 12:52 AM
  5. Help using index match function to lookup value based on requirements
    By satcess in forum Excel Formulas & Functions
    Replies: 12
    Last Post: 03-22-2015, 09:13 PM
  6. Replies: 10
    Last Post: 03-12-2015, 11:39 AM
  7. [SOLVED] Index/Match result should again search for zero result
    By ursanil in forum Excel Formulas & Functions
    Replies: 3
    Last Post: 10-07-2014, 04:45 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