+ Reply to Thread
Results 1 to 3 of 3

Nested Vlookups

Hybrid View

  1. #1
    Registered User
    Join Date
    04-12-2006
    Posts
    2

    Nested Vlookups

    I have two excel workbooks, one including data on current employees and one including data on terminated employees, both start with the employee No in the first column, I would like to make a vlookup on both files at the same time, so that for example when the employee # Im trying to vlookup is not found in the current employees file, the vlookup would look for it in the terminated employees files instead of just returning #N/A.

    Can it be something like this:

    if((vlookup(A1,current employees.xls,24,false),vlookup(A1,current employees.xls,24,false),vlookup(A1, terminated employees.xls,24,false))

  2. #2
    Registered User
    Join Date
    04-12-2006
    Posts
    2
    After I posted I had this idea:

    =IF($A$1=1,VLOOKUP(A4,'[Master (Mar 06).xls]masTER'!$A:$D,3,FALSE),VLOOKUP(A4,'[Termfile (Mar 06).xls]terMFILE'!$A:$E,5,FALSE))

    so by seting A1 cell to 1 OR 2 I can switch the values to read from two files.

  3. #3
    Bondi
    Guest

    Re: Nested Vlookups

    Hi,

    =IF(ISNA(VLOOKUP(A1,Ref to Current employees
    Array,24,FALSE)),VLOOKUP(A1,Ref to Terminated Employees
    Array,24,FALSE),VLOOKUP(A1,Ref to Current employees Array,24,FALSE))

    Regards,
    Bondi


+ 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