Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.worksheet.functions
Ben Ben is offline
external usenet poster
 
Posts: 509
Default Vlookup across 3 worksheets

Hi,

I know there are probably a 100 answer's already posted about this but I
can't get one to match. I have a Vlookup formula that i can get to work
looking across 2 worksheets but when i add the 3rd it says "too many
arguments". my existing formula is:

=IF(ISERROR(VLOOKUP($A97,'sheet1'!$A$3:$AR$99,11,F ALSE)),VLOOKUP($A97,'sheet2'!$A$4:$AR$98,11,FALSE) ,VLOOKUP($A97,'sheet1'!$A$3:$AR$99,11,FALSE))

I want to add sheet 3 in there but it returns the error. I'm using
consistent formatting $'s & the worksheets are uniformly set out.

Any help would be appreciated, especially understanding the brackets/equation.

Thanks
  #2   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 8,520
Default Vlookup across 3 worksheets

Try the below which will lookup Sheet1,Sheet2, Sheet3.

If you have more sheets say 5 try changing "1:3" to "1:5"

Please note that this is an array formula. You create array formulas in the
same way that you create other formulas, except you press CTRL+SHIFT+ENTER to
enter the formula. If successful in 'Formula Bar' you can notice the curly
braces at both ends like "{=<formula}"


=VLOOKUP($A97,INDIRECT("Sheet"&MATCH(TRUE,COUNTIF(
INDIRECT("Sheet"&ROW(INDIRECT("1:3"))&"!A:A"),$A97 )0,0)&"!A:B"),2,0)

--
Jacob


"Ben" wrote:

Hi,

I know there are probably a 100 answer's already posted about this but I
can't get one to match. I have a Vlookup formula that i can get to work
looking across 2 worksheets but when i add the 3rd it says "too many
arguments". my existing formula is:

=IF(ISERROR(VLOOKUP($A97,'sheet1'!$A$3:$AR$99,11,F ALSE)),VLOOKUP($A97,'sheet2'!$A$4:$AR$98,11,FALSE) ,VLOOKUP($A97,'sheet1'!$A$3:$AR$99,11,FALSE))

I want to add sheet 3 in there but it returns the error. I'm using
consistent formatting $'s & the worksheets are uniformly set out.

Any help would be appreciated, especially understanding the brackets/equation.

Thanks

  #3   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 8,520
Default Vlookup across 3 worksheets

Modified to suit your requirement..

array entered
=VLOOKUP($A97,INDIRECT("Sheet"&MATCH(TRUE,COUNTIF( INDIRECT("Sheet"&ROW(INDIRECT("1:3"))&"!A1:AR100") ,$A97)0,0)&"!A1:AR100"),11,0)

OR your formula modified non-array formula

=IF(ISERROR(VLOOKUP($A97,Sheet1!$A$3:$AR$99,11,0)) ,
IF(ISERROR(VLOOKUP($A97,Sheet2!$A$3:$AR$99,11,0)),
IF(ISERROR(VLOOKUP($A97,Sheet3!$A$3:$AR$99,11,0)),
"NotFound",VLOOKUP($A97,Sheet3!$A$3:$AR$99,11, 0)),
VLOOKUP($A97,Sheet2!$A$3:$AR$99,11,0)),
VLOOKUP($A97,Sheet1!$A$3:$AR$99,11,0))



--
Jacob


"Jacob Skaria" wrote:

Try the below which will lookup Sheet1,Sheet2, Sheet3.

If you have more sheets say 5 try changing "1:3" to "1:5"

Please note that this is an array formula. You create array formulas in the
same way that you create other formulas, except you press CTRL+SHIFT+ENTER to
enter the formula. If successful in 'Formula Bar' you can notice the curly
braces at both ends like "{=<formula}"


=VLOOKUP($A97,INDIRECT("Sheet"&MATCH(TRUE,COUNTIF(
INDIRECT("Sheet"&ROW(INDIRECT("1:3"))&"!A:A"),$A97 )0,0)&"!A:B"),2,0)

--
Jacob


"Ben" wrote:

Hi,

I know there are probably a 100 answer's already posted about this but I
can't get one to match. I have a Vlookup formula that i can get to work
looking across 2 worksheets but when i add the 3rd it says "too many
arguments". my existing formula is:

=IF(ISERROR(VLOOKUP($A97,'sheet1'!$A$3:$AR$99,11,F ALSE)),VLOOKUP($A97,'sheet2'!$A$4:$AR$98,11,FALSE) ,VLOOKUP($A97,'sheet1'!$A$3:$AR$99,11,FALSE))

I want to add sheet 3 in there but it returns the error. I'm using
consistent formatting $'s & the worksheets are uniformly set out.

Any help would be appreciated, especially understanding the brackets/equation.

Thanks

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
VLOOKUP in two worksheets Silena K-K Excel Discussion (Misc queries) 2 January 25th 08 02:41 AM
vlookup looking at many worksheets dave Excel Discussion (Misc queries) 2 November 21st 07 11:36 AM
VLOOKUP using two worksheets? Rich K. Excel Discussion (Misc queries) 1 August 18th 07 11:04 AM
Vlookup in different worksheets ErwinR Excel Worksheet Functions 1 December 13th 05 10:29 AM
Using vlookup on two worksheets Steven Robilard Excel Worksheet Functions 5 February 14th 05 11:59 PM


All times are GMT +1. The time now is 08:06 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"