+ Reply to Thread
Results 1 to 3 of 3

lookup

  1. #1
    Forum Contributor
    Join Date
    12-20-2006
    Posts
    127

    lookup

    i am familiar with the sumproduct function which allows me to lookup/sum a column based on various criteria's

    i want to be able to lookup a text value based on multiple conditions.

    Here is the layout

    columna = date
    columnb = ref (not unique - number between 8 and 20)
    columnc = id (either 2 or 3)
    columnd is a name (text)

    i want to lookup the name based on criteria for columns a to b

    there is only one entry for the criteria i want to request

    i have looked at vlookup but this is based on one condition

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

    =Index(D2:D100,Match(1,(A2:A100=criteria1)*(B2:B100=criteria2),0))

    adjust ranges to suit and insert criteria as necessary.

    Formula must then be confirmed with CTRL+SHIFT+ENTER not just ENTER
    Where there is a will there are many ways.

    If you are happy with the results, please add to the contributor's reputation by clicking the reputation icon (star icon) below left corner

    Please also mark the thread as Solved once it is solved. Check the FAQ's to see how.

  3. #3
    Forum Expert daddylonglegs's Avatar
    Join Date
    01-14-2006
    Location
    England
    MS-Off Ver
    2016
    Posts
    14,675
    You could also try a formula like this which doesn't require CTRL+SHIFT+ENTER

    =LOOKUP(2,1/((B2:B100=20)*(C2:C100=3)),D2:D100)

+ 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