+ Reply to Thread
Results 1 to 5 of 5

vlookup with some conditions

  1. #1
    Registered User
    Join Date
    06-14-2012
    Location
    Brussels
    MS-Off Ver
    Excel 2010
    Posts
    16

    vlookup with some conditions

    Hi there,

    can somebody help me with the following:
    I have on file with two tabs, from which I want to do a vlookup but with specific conditions.
    I the pictures below, what I want to do is:
    In the second table I want to do a vlookup to give me the volumes from the 1st table, but it has to give me only the corresponding for the lines of table 1.
    In other words, if the item and the line do exist in the 1st table, it should give the the corresponding volume in the 2nd table.

    I guess it is a combination of an if function with vlookup. Can somebody help.

    Thank youPic 1.pngPic. 2.png

  2. #2
    Forum Contributor
    Join Date
    08-22-2011
    Location
    Texas, United States
    MS-Off Ver
    Excel 2007 and 2010
    Posts
    516

    Re: vlookup with some conditions

    it is not possible in excel to vlookup from right to left, so in Pic 1 you would need to change your columns to Item, Line, Volume. Then you would want to concantinate your Item and Line in that table, formula would be A1&B1 and drag down, in column C. Then on your second picture in the volume column you would put this formula:

    =IFERROR(VLOOKUP(A1&B1,'Sheet1!C1:D3,2,FALSE),"")

  3. #3
    Forum Expert Pepe Le Mokko's Avatar
    Join Date
    05-14-2009
    Location
    Belgium
    MS-Off Ver
    O365 v 2504
    Posts
    13,620

    Re: vlookup with some conditions

    Quote Originally Posted by amotto11 View Post
    it is not possible in excel to vlookup from right to left


    I beg to differ, DDLL came up with a brilliant solution which allows VLOOKUP from right to left
    Please Login or Register  to view this content.

  4. #4
    Forum Contributor
    Join Date
    08-22-2011
    Location
    Texas, United States
    MS-Off Ver
    Excel 2007 and 2010
    Posts
    516

    Re: vlookup with some conditions

    I learn something new every day. Thanks.

  5. #5
    Forum Expert Pepe Le Mokko's Avatar
    Join Date
    05-14-2009
    Location
    Belgium
    MS-Off Ver
    O365 v 2504
    Posts
    13,620

    Re: vlookup with some conditions

    So do I. A pity the old team almost entirely vanished...

+ 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