+ Reply to Thread
Results 1 to 3 of 3

Need help correcting a possible dual VLOOKUP formula

Hybrid View

  1. #1
    Registered User
    Join Date
    06-19-2013
    Location
    Denver, CO
    MS-Off Ver
    Excel 2010
    Posts
    2

    Question Need help correcting a possible dual VLOOKUP formula

    I am trying to basically combine 2 vlookups to get a value in a cell from the same row. Currently, I am trying to pull data from one worksheet that is generated by our database which includes 3 possible actions for every operator. Every operator does not have all 3 actions, however, when they do have an action, I need to pull all information into my second worksheet and place it in the same row. The data provided by the reoprt only provides positives, meaning that if operator 1 has any action 95, then it will report. But if operator 1 does not have action 96, it will not report. The spreadsheet I am pulling the data into needs to have all 3 actions for every operator.

    The looking up a specific cell on worksheet1 from column a and column c and matching them against range A:A and C:C from worksheet 2 has been accomplished with the following:

    Formula: copy to clipboard
    =IF(AND($A$2=Sheet2!$A:$A,Sheet1!$C$2=Sheet2!$C:$C),Sheet2!D2,0)


    The issue lies in that if the statement is true, I need to be able to basically perform a Vlookup matching 2 different colums so that I can return the corret data.

    Sample attached.
    Attached Files Attached Files

  2. #2
    Forum Expert Ace_XL's Avatar
    Join Date
    06-04-2012
    Location
    UAE
    MS-Off Ver
    2016
    Posts
    6,074

    Re: Need help correcting a possible dual VLOOKUP formula

    In D2 try this array formula

    =IFERROR(INDEX(Sheet2!D:D,MATCH(1,(Sheet2!$A:$A=$A2)*(Sheet2!$C:$C=$C2),0)),0)
    Confirm with Ctrl+Shift+Enter

    Copy down and across
    Last edited by Ace_XL; 06-19-2013 at 02:50 PM.
    Life's a spreadsheet, Excel!
    Say thanks, Click *

  3. #3
    Registered User
    Join Date
    06-19-2013
    Location
    Denver, CO
    MS-Off Ver
    Excel 2010
    Posts
    2

    Re: Need help correcting a possible dual VLOOKUP formula

    That seems to work for D2, however I don't understand what to change to apply it to D3 and so on.

+ 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