+ Reply to Thread
Results 1 to 6 of 6

Vlookup with multiple conditions

  1. #1
    Registered User
    Join Date
    01-13-2011
    Location
    San Diego, CA
    MS-Off Ver
    Excel 2007
    Posts
    2

    Vlookup with multiple conditions

    I know that Vlookup isn't able to use 2 conditions but I need a way to use the tracking number to lookup the rest of the data
    ex)
    Worksheet 1
    A B C D
    Tracking # Year QTR Cost
    200 2010 4 5000
    210 2011 2 2500
    200 2010 1 3000

    Then on a seperate worksheet in the same workbook I want to auto display the information in cells B C & D when i manually insert the tracking # in column A
    Worksheet 2:

    2010
    A B C D
    Tracking # year QTR Cost
    .
    .
    .
    .

    2011
    Tracking # Year QTR Cost

    The only constant unique number between the same tracking # is cost.
    i've tried using the formula =IF(ISERROR(VLOOKUP(A7,CapX,2,FALSE)),"",IF(VLOOKUP(A7,CapX,2,FALSE)="","",VLOOKUP(A7,CapX,2,FALSE))) but obviously it only gives me the first match. i

    Is there a way I can insert a formula to what I want to get?
    I attached a sample to possibly help you out.
    Thanks!
    Attached Files Attached Files

  2. #2
    Forum Moderator jeffreybrown's Avatar
    Join Date
    02-19-2009
    Location
    Cibolo, TX
    MS-Off Ver
    Office 365
    Posts
    10,327

    Re: Vlookup with multiple conditions

    Hello & Welcome to the Board,

    Not quite clear what is wrong with what you have now? How is using the vlookup returning the wrong results.

    BTW: You could update the formula in B1 too...

    Please Login or Register  to view this content.
    ...and then drag right
    HTH
    Regards, Jeff

  3. #3
    Forum Expert Cutter's Avatar
    Join Date
    05-24-2004
    Location
    Ontario,Canada
    MS-Off Ver
    Excel 2010
    Posts
    6,451

    Re: Vlookup with multiple conditions

    Try the attached:
    Attached Files Attached Files

  4. #4
    Forum Guru MarvinP's Avatar
    Join Date
    07-23-2010
    Location
    Woodinville, WA
    MS-Off Ver
    Office 365
    Posts
    16,321

    Re: Vlookup with multiple conditions

    Hi aljl11 and welcome to the forum,

    After wrestling with your question for a while, trying to decide what you wanted, I came up with the attached.

    The pivot table attached does sorting and filtering and may be what you want. Play with Pivot Tables a little to see if they can fullfill you needs.
    Attached Files Attached Files
    One test is worth a thousand opinions.
    Click the * Add Reputation below to say thanks.

  5. #5
    Registered User
    Join Date
    01-13-2011
    Location
    San Diego, CA
    MS-Off Ver
    Excel 2007
    Posts
    2

    Re: Vlookup with multiple conditions

    Sorry I apologize i might not be making things clear. what I want is in worksheet 2 to mimic what is input into worksheet one (without having to enter things twice). So when you input data across a row the exact same data will appear in worksheet 2. But the only difference is if the year is 2010 it goes into the 2010 section of the worksheet or if it is 2011 it goes into 2011 section.

    I hope this makes sense? Not sure how well I'm doing at conveying my thoughts into words.

  6. #6
    Forum Guru MarvinP's Avatar
    Join Date
    07-23-2010
    Location
    Woodinville, WA
    MS-Off Ver
    Office 365
    Posts
    16,321

    Re: Vlookup with multiple conditions

    Hi,

    I think this is what the Pivot Table does for you!!! You will need to expand the range of what data is the source for the PT and Refresh the table after putting in more data, but this is what it does. You enter data on Sheet1 and the Pivot Table will show it after doing a refresh Pivit Table Data.

    Play with my example a while and I think you will see.

+ Reply to Thread

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Tags for this Thread

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