+ Reply to Thread
Results 1 to 6 of 6

Vlookup Over 2 Table Arrays?

Hybrid View

  1. #1
    Registered User
    Join Date
    10-09-2012
    Location
    United States
    MS-Off Ver
    Excel 2007
    Posts
    32

    Question Vlookup Over 2 Table Arrays?

    I am using the following formula to copy data from another worksheet into my current worksheet. It worked fine since I only had the 2014 worksheet/log to look up the data. But now I need to use the 2015 log to look up in addition to the 2014 log. How do I change this so that I can get the date from BOTH the 2014 sheet AND the 2015 sheet? So if it the data is not in the 2015 log, then I need the data from the 2014 log, and if the data is not in either log, then the cell remains empty/blank.

    =IF(ISNA(VLOOKUP(B22,'W:\RA Log\[2014 New Entered & Received - Daily Tracking.xlsx]Received RAs & T&E Tracking'!A$2:P$1000000,4,FALSE))," ",VLOOKUP(B22,'W:\RA Log\[2014 New Entered & Received - Daily Tracking.xlsx]Received RAs & T&E Tracking'!A$2:P$1000000,4,FALSE))

    Thanks as always!!!

  2. #2
    Administrator FDibbins's Avatar
    Join Date
    12-29-2011
    Location
    Duncansville, PA USA
    MS-Off Ver
    Excel 7/10/13/16/365 (PC ver 2310)
    Posts
    53,048

    Re: Vlookup Over 2 Table Arrays?

    Untested, but see if this will help...

    =IFERROR(IFERROR(VLOOKUP(B22,'W:\RA Log\[2014 New Entered & Received - Daily Tracking.xlsx]Received RAs & T&E Tracking'!A$2:P$1000000,4,FALSE)),VLOOKUP(B22,'W:\RA Log\[2015 New Entered & Received - Daily Tracking.xlsx]Received RAs & T&E Tracking'!A$2:P$1000000,4,FALSE)),"")
    1. Use code tags for VBA. [code] Your Code [/code] (or use the # button)
    2. If your question is resolved, mark it SOLVED using the thread tools
    3. Click on the star if you think someone helped you

    Regards
    Ford

  3. #3
    Registered User
    Join Date
    10-09-2012
    Location
    United States
    MS-Off Ver
    Excel 2007
    Posts
    32

    Re: Vlookup Over 2 Table Arrays?

    Told me too few arguments for this function?

  4. #4
    Administrator FDibbins's Avatar
    Join Date
    12-29-2011
    Location
    Duncansville, PA USA
    MS-Off Ver
    Excel 7/10/13/16/365 (PC ver 2310)
    Posts
    53,048

    Re: Vlookup Over 2 Table Arrays?

    Sorry, had a ) in the wrong place...
    =IFERROR(IFERROR(VLOOKUP(B22,'W:\RA Log\[2014 New Entered & Received - Daily Tracking.xlsx]Received RAs & T&E Tracking'!A$2:P$1000000,4,FALSE),VLOOKUP(B22,'W:\RA Log\[2015 New Entered & Received - Daily Tracking.xlsx]Received RAs & T&E Tracking'!A$2:P$1000000,4,FALSE)),"")

    Essentially, what this is doing is...
    1st, use VLOOKUP(B22,'W:\RA Log\[2014 New Entered & Received - Daily Tracking.xlsx]Received RAs & T&E Tracking'!A$2:P$1000000,4,FALSE)
    2nd if not found, use VLOOKUP(B22,'W:\RA Log\[2015 New Entered & Received - Daily Tracking.xlsx]Received RAs & T&E Tracking'!A$2:P$1000000,4,FALSE)
    3rd if not found, return ""

  5. #5
    Registered User
    Join Date
    10-09-2012
    Location
    United States
    MS-Off Ver
    Excel 2007
    Posts
    32

    Re: Vlookup Over 2 Table Arrays?

    THANKS! Worked perfectly!

  6. #6
    Administrator FDibbins's Avatar
    Join Date
    12-29-2011
    Location
    Duncansville, PA USA
    MS-Off Ver
    Excel 7/10/13/16/365 (PC ver 2310)
    Posts
    53,048

    Re: Vlookup Over 2 Table Arrays?

    Happy to help, thanks for the feedback

+ Reply to Thread

Thread Information

Users Browsing this Thread

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

Similar Threads

  1. Using vlookup for two table arrays
    By harvindersingh1 in forum Excel General
    Replies: 3
    Last Post: 04-21-2007, 06:43 AM
  2. Multiple Arrays, Vlookup
    By Oggie Ben Doggie in forum Excel Formulas & Functions
    Replies: 2
    Last Post: 06-26-2006, 05:30 PM
  3. [SOLVED] Using Vlookup in formula arrays
    By Ron Rosenfeld in forum Excel Formulas & Functions
    Replies: 12
    Last Post: 09-06-2005, 12:05 PM
  4. [SOLVED] Using Vlookup in formula arrays
    By BartDesc in forum Excel Formulas & Functions
    Replies: 0
    Last Post: 09-05-2005, 11:05 PM
  5. Table arrays?
    By Paul T in forum Excel General
    Replies: 2
    Last Post: 07-01-2005, 01:05 PM

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