+ Reply to Thread
Results 1 to 4 of 4

Index/match:look up two values from a worksheet

  1. #1
    Forum Contributor Mvaldesi's Avatar
    Join Date
    01-21-2011
    Location
    Plano, TX
    MS-Off Ver
    MS365 (PC) v.2108
    Posts
    267

    Index/match:look up two values from a worksheet

    All right, I'm using an INDEX/MATCH function to look up two values from a worksheet and match them BOTH in a record on named table from another worksheet in the same book and return the value from a cell in the applicable record from said table. Below is the formula:

    =INDEX(LaneSummary,MATCH(A4,Origin,0)&MATCH(B4,Dest,0),3)

    It works, as in it returns data, but it is evidently matching A4 and B4 to the wrong record on the Origin and Dest tables and returning the WRONG data. Help??

  2. #2
    Forum Guru TMS's Avatar
    Join Date
    07-15-2010
    Location
    The Great City of Manchester, NW England ;-)
    MS-Off Ver
    MSO 2007,2010,365
    Posts
    48,283

    Re: INDEX/MATCH help, please

    You might get more assistance if you posted a sample workbook with some typical, but not necessarily real, data.

    Regards
    Trevor Shuttleworth - Retired Excel/VBA Consultant

    I dream of a better world where chickens can cross the road without having their motives questioned

    'Being unapologetic means never having to say you're sorry' John Cooper Clarke


  3. #3
    Forum Expert daddylonglegs's Avatar
    Join Date
    01-14-2006
    Location
    England
    MS-Off Ver
    Microsoft 365
    Posts
    14,702

    Re: INDEX/MATCH help, please

    Try Like this

    =INDEX(LaneSummary,MATCH(1,INDEX((A4=Origin)*(B4=Dest),0),0),3)
    Audere est facere

  4. #4
    Forum Contributor Mvaldesi's Avatar
    Join Date
    01-21-2011
    Location
    Plano, TX
    MS-Off Ver
    MS365 (PC) v.2108
    Posts
    267

    re: Index/match:look up two values from a worksheet

    Thanks for the help; I didn't get it to work for me though; I found the easier solution was to merge the two cells I'm referencing and do a simpler look-up of the one cell. Thanks again, though!

+ 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