+ Reply to Thread
Results 1 to 5 of 5

Lookup up multiple variables

  1. #1
    Registered User
    Join Date
    12-14-2009
    Location
    Nottingham
    MS-Off Ver
    Microsoft D365
    Posts
    93

    Lookup up multiple variables

    I thought i has this solved but i now need to not only pick up a date in the table but any txt that is is there too. again i've attached an example.

    i've found the formlula =SUMPRODUCT(--($B$2:$B$13=G2),--($C$2:$C$13=H2),$D$2:$D$13) works fantastic but it onl;y picks up dates.. is there anyway i can get this to pick up txt adn dates in the same way?


    Hi is there any way to do a mulitple look up within a v look up? I've attached an example of what i'm trying to do. i want to be able to look at the ref and the prod in table one (col Band C) and if they match he ref and prod in table 2 (cols G and H populate the date from table one that applied to them in column J i realise this involves 4 citeria in a look up and i dont know how to do that? any ideas?
    Attached Files Attached Files
    Last edited by Notters; 02-25-2010 at 07:37 AM.

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

    Re: V lookup

    If the combination of entries are unique, then try:

    =SUMPRODUCT(--($B$2:$B$13=G2),--($C$2:$C$13=H2),$D$2:$D$13)
    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
    Registered User
    Join Date
    12-14-2009
    Location
    Nottingham
    MS-Off Ver
    Microsoft D365
    Posts
    93

    Re: V lookup

    Quote Originally Posted by NBVC View Post
    If the combination of entries are unique, then try:

    =SUMPRODUCT(--($B$2:$B$13=G2),--($C$2:$C$13=H2),$D$2:$D$13)
    This is handy but they wont always be unique?

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

    Re: Lookup up multiple variables

    So you want the firs occurrance? The last occurance?

    First occurance:

    =INDEX($D$2:$D$13,MATCH(1,INDEX(($B$2:$B$13=G2)*($C$2:$C$13=H2),0),0))

    Last occurance:

    =LOOKUP(2,1/(($B$2:$B$13=G2)*($C$2:$C$13=H2)),$D$2:$D$13)

  5. #5
    Registered User
    Join Date
    12-14-2009
    Location
    Nottingham
    MS-Off Ver
    Microsoft D365
    Posts
    93

    Re: Lookup up multiple variables

    THink that is what i'm after, thanks!

+ 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