+ Reply to Thread
Results 1 to 2 of 2

Index and match problem

  1. #1
    Registered User
    Join Date
    01-10-2012
    Location
    USA
    MS-Off Ver
    Excel 2010
    Posts
    12

    Index and match problem

    Hi,

    I'm trying to return a value on Sheet2 (ID) based on two values in Sheet1 (Provider, Visit) but I'm getting #REF! errors in a majority of the cells. I attached the sheet. Any help would be appreciated.
    Attached Files Attached Files

  2. #2
    Forum Expert daddylonglegs's Avatar
    Join Date
    01-14-2006
    Location
    England
    MS-Off Ver
    2016
    Posts
    14,675

    Re: Index and match problem

    In the syntax you are using the second MATCH is returning a value > 1 but the INDEX range has only 1 column, hence #REF! You need to do it slightly differently - try this formula in row 2

    =INDEX(Sheet2!$A$2:$A$16,MATCH(1,(Sheet1!B2=Sheet2!$B$2:$B$16)*(Sheet1!D2=Sheet2!$C$2:$C$16),0))

    confirmed with CTRL+SHIFT+ENTER and copied down column
    Audere est facere

+ 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.6.0 RC 1