Results 1 to 25 of 25

vlookup with conditions to find multiple entries

Threaded View

  1. #1
    Registered User
    Join Date
    02-02-2009
    Location
    hhhh
    MS-Off Ver
    Excel 2003
    Posts
    39

    vlookup with conditions to find multiple entries

    Hello,

    I am new to excel and am struggling with vlookup. I have looked at various posts regarding vlookup but couldn't successfully use it to find a solution to my problem. The below is the description of my problem. I have a table (table1) with material numbers which have a price . This value is time dependent i.e., a material 999 could have a price of $10 for 1/1/2008-1/15/2008 and $20 for 1/16/1008 - 1/31/2008.

    A B C D
    999 1/1/2008 1/15/2008 $10
    999 1/15/2008 1/31/2008 $20
    998 2/1/2008 - 2/25/2008 $15

    I have another table (table2) in another sheet in the same workbook have a material and date.

    A B C
    999 1/10/2008
    999 1/20/2008
    998 2/15/2008

    My requirement to take the material value and date in table2 and match it with table1 and get the value of column D in table 1 to column C of table2.

    I have tried using vlookup but it only works for the first match and doesn't check for other values

    below is the function that i tried

    =if(and(vlookup(A2,Sheet2!A1:D4,2,false)<=Sheet1!B2,vlookup(Sheet1!A2,Sheet2!A2:D4,3,false)>=Sheet1!C2)),vlookup(Sheet1!A2,Sheet2!A2:D4,4,false),"error")

    Can anyone please help me with this problem.
    Last edited by excelnerd1; 02-05-2009 at 03:17 PM. Reason: new questions regarding the same problem

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