Results 1 to 19 of 19

Excel 2007 : Multiple Criteria (nonUnique) Lookups

Threaded View

  1. #4
    Forum Expert NBVC's Avatar
    Join Date
    12-06-2006
    Location
    Mississauga, CANADA
    MS-Off Ver
    2003:2010
    Posts
    34,898

    Re: Multiple Criteria (nonUnique) Lookups

    Perhaps?

    =LOOKUP(9.99999E+307,CHOOSE({1,2},INDEX($G$2:$G$16,MATCH(1,INDEX(($A$2:$A$16=K2)*($B$2:$B$16=K3),0),0)),LOOKUP(2,1/(($A$2:$A$16=K2)*($B$2:$B$16=K3)*($C$2:$C$16<=K4)),$G$2:$G$16)))
    or if using XL2007 or later:

    =IFERROR(LOOKUP(2,1/(($A$2:$A$16=K2)*($B$2:$B$16=K3)*($C$2:$C$16<=K4)),$G$2:$G$16),INDEX($G$2:$G$16,MATCH(1,INDEX(($A$2:$A$16=K2)*($B$2:$B$16=K3),0),0)))
    if either of these gives back an error, than the value in K2 and/or K3 don't match up.

    You could nest another IFERROR to return a more intelligent result like "No Matches for K2 or K3 found" like this:

    =IFERROR(IFERROR(LOOKUP(2,1/(($A$2:$A$16=K2)*($B$2:$B$16=K3)*($C$2:$C$16<=K4)),$G$2:$G$16),INDEX($G$2:$G$16,MATCH(1,INDEX(($A$2:$A$16=K2)*($B$2:$B$16=K3),0),0))),"No Matches for K2 or K3 found")
    Last edited by NBVC; 12-13-2010 at 04:16 PM.

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