#1   Report Post  
Posted to microsoft.public.excel.worksheet.functions
TarekHamouda
 
Posts: n/a
Default 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))


--
TarekHamouda
------------------------------------------------------------------------
TarekHamouda's Profile: http://www.excelforum.com/member.php...o&userid=33392
View this thread: http://www.excelforum.com/showthread...hreadid=532160

  #2   Report Post  
Posted to microsoft.public.excel.worksheet.functions
TarekHamouda
 
Posts: n/a
Default Nested Vlookups


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.


--
TarekHamouda
------------------------------------------------------------------------
TarekHamouda's Profile: http://www.excelforum.com/member.php...o&userid=33392
View this thread: http://www.excelforum.com/showthread...hreadid=532160

  #3   Report Post  
Posted to microsoft.public.excel.worksheet.functions
Bondi
 
Posts: n/a
Default 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
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules

Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
Limit to nested Vlookups karambos Excel Discussion (Misc queries) 2 August 26th 05 01:55 PM
Nested If with VLOOKUP's and AND function GBO Excel Worksheet Functions 1 August 18th 05 11:57 PM
Nested If with VLOOKUP's... I think! PeterManner Excel Worksheet Functions 1 August 4th 05 09:58 PM
Why are my nested sub-totals are displaying incorrectly? chiefdean13 Excel Discussion (Misc queries) 1 July 20th 05 05:45 AM
Nested count and vlookups Chrisnelsonusa Excel Discussion (Misc queries) 1 June 6th 05 07:58 PM


All times are GMT +1. The time now is 12:22 PM.

Powered by vBulletin® Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
Copyright ©2004-2024 ExcelBanter.
The comments are property of their posters.
 

About Us

"It's about Microsoft Excel"