Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 70
Default vlookup more than 2 range

dear

i have a database of three sheets, and i want the vlookup in sheet 4, when i
use this formula =IF(ISNA(VLOOKUP($C3,'sheet
8'!$A$2:$F$58,2,FALSE)),VLOOKUP($C3,'sheet
9'!$A$2:$F$50,2,FALSE),VLOOKUP($C3,'sheet 8'!$A$2:$F$58,2,FALSE)), it work
only for 2 sheets. i want that 3rd sheet also covered by this formula, what i
have to do pls make the necessary changes in formula.

regards
anil
  #2   Report Post  
Posted to microsoft.public.excel.misc
Ken Ken is offline
external usenet poster
 
Posts: 590
Default vlookup more than 2 range

Your formula as written is only looking @ WorkSheets 8 & 9

"hitesh" wrote:

dear

i have a database of three sheets, and i want the vlookup in sheet 4, when i
use this formula =IF(ISNA(VLOOKUP($C3,'sheet
8'!$A$2:$F$58,2,FALSE)),VLOOKUP($C3,'sheet
9'!$A$2:$F$50,2,FALSE),VLOOKUP($C3,'sheet 8'!$A$2:$F$58,2,FALSE)), it work
only for 2 sheets. i want that 3rd sheet also covered by this formula, what i
have to do pls make the necessary changes in formula.

regards
anil

  #3   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 698
Default vlookup more than 2 range


Give this a try. I got it from Peo Sjoblom in 2006, modified to you
example. Commit with Ctrl+Shift+Enter, you will see { } added to the
formula. Anytime you modify the formula recommit with Ctrl+Shift+Enter.

=IF(ISNA(VLOOKUP(C3,INDIRECT("'"&INDEX(MySheets,MA TCH(1,--(COUNTIF(INDIRECT("'"&MySheets&"'!A2:F58"),C3)0), 0))&"'!A2:F58"),2,0)),"",VLOOKUP(C3,INDIRECT("'"&I NDEX(MySheets,MATCH(1,--(COUNTIF(INDIRECT("'"&MySheets&"'!A2:F58"),C3)0), 0))&"'!A2:F58"),2,0))

Where C3 is the lookup value on your sheet 4.
Where MySheets is a named range of a list of the sheet names.
Where A2:F58 are the lookup ranges on each of the three sheets.

You do, however, have six columns in your lookup ranges and returning the
second.

HTH
Regards,
Howard

"hitesh" wrote in message
...
dear

i have a database of three sheets, and i want the vlookup in sheet 4, when
i
use this formula =IF(ISNA(VLOOKUP($C3,'sheet
8'!$A$2:$F$58,2,FALSE)),VLOOKUP($C3,'sheet
9'!$A$2:$F$50,2,FALSE),VLOOKUP($C3,'sheet 8'!$A$2:$F$58,2,FALSE)), it work
only for 2 sheets. i want that 3rd sheet also covered by this formula,
what i
have to do pls make the necessary changes in formula.

regards
anil



  #4   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 70
Default vlookup more than 2 range

dear,
thanks for formula, but its not working, i type the formula this way its not
working
=IF(ISNA(VLOOKUP(C3,INDIRECT("'"&INDEX(Sheet2!,MAT CH(1,--(COUNTIF(INDIRECT("'"&Sheet3!&"'!A2:F58"),C3)0),0 ))&"'!A2:F58"),2,0)),"",VLOOKUP(C3,INDIRECT("'"&IN DEX(Sheet4!,MATCH(1,--(COUNTIF(INDIRECT("'"&Sheet5!&"'!A2:F58"),C3)0),0 ))&"'!A2:F58"),2,0))

pls make the changes.

"L. Howard Kittle" wrote:


Give this a try. I got it from Peo Sjoblom in 2006, modified to you
example. Commit with Ctrl+Shift+Enter, you will see { } added to the
formula. Anytime you modify the formula recommit with Ctrl+Shift+Enter.

=IF(ISNA(VLOOKUP(C3,INDIRECT("'"&INDEX(MySheets,MA TCH(1,--(COUNTIF(INDIRECT("'"&MySheets&"'!A2:F58"),C3)0), 0))&"'!A2:F58"),2,0)),"",VLOOKUP(C3,INDIRECT("'"&I NDEX(MySheets,MATCH(1,--(COUNTIF(INDIRECT("'"&MySheets&"'!A2:F58"),C3)0), 0))&"'!A2:F58"),2,0))

Where C3 is the lookup value on your sheet 4.
Where MySheets is a named range of a list of the sheet names.
Where A2:F58 are the lookup ranges on each of the three sheets.

You do, however, have six columns in your lookup ranges and returning the
second.

HTH
Regards,
Howard

"hitesh" wrote in message
...
dear

i have a database of three sheets, and i want the vlookup in sheet 4, when
i
use this formula =IF(ISNA(VLOOKUP($C3,'sheet
8'!$A$2:$F$58,2,FALSE)),VLOOKUP($C3,'sheet
9'!$A$2:$F$50,2,FALSE),VLOOKUP($C3,'sheet 8'!$A$2:$F$58,2,FALSE)), it work
only for 2 sheets. i want that 3rd sheet also covered by this formula,
what i
have to do pls make the necessary changes in formula.

regards
anil




  #5   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 698
Default vlookup more than 2 range

You need to make a list of all the sheet names you want to look up and name
it MySheets.

Then use the formula I offered exactly as it is written.

Use Ctrl+Shift+Enter to commit the formula.

Regards,
Howard

"hitesh" wrote in message
...
dear,
thanks for formula, but its not working, i type the formula this way its
not
working
=IF(ISNA(VLOOKUP(C3,INDIRECT("'"&INDEX(Sheet2!,MAT CH(1,--(COUNTIF(INDIRECT("'"&Sheet3!&"'!A2:F58"),C3)0),0 ))&"'!A2:F58"),2,0)),"",VLOOKUP(C3,INDIRECT("'"&IN DEX(Sheet4!,MATCH(1,--(COUNTIF(INDIRECT("'"&Sheet5!&"'!A2:F58"),C3)0),0 ))&"'!A2:F58"),2,0))

pls make the changes.

"L. Howard Kittle" wrote:


Give this a try. I got it from Peo Sjoblom in 2006, modified to you
example. Commit with Ctrl+Shift+Enter, you will see { } added to the
formula. Anytime you modify the formula recommit with Ctrl+Shift+Enter.

=IF(ISNA(VLOOKUP(C3,INDIRECT("'"&INDEX(MySheets,MA TCH(1,--(COUNTIF(INDIRECT("'"&MySheets&"'!A2:F58"),C3)0), 0))&"'!A2:F58"),2,0)),"",VLOOKUP(C3,INDIRECT("'"&I NDEX(MySheets,MATCH(1,--(COUNTIF(INDIRECT("'"&MySheets&"'!A2:F58"),C3)0), 0))&"'!A2:F58"),2,0))

Where C3 is the lookup value on your sheet 4.
Where MySheets is a named range of a list of the sheet names.
Where A2:F58 are the lookup ranges on each of the three sheets.

You do, however, have six columns in your lookup ranges and returning the
second.

HTH
Regards,
Howard

"hitesh" wrote in message
...
dear

i have a database of three sheets, and i want the vlookup in sheet 4,
when
i
use this formula =IF(ISNA(VLOOKUP($C3,'sheet
8'!$A$2:$F$58,2,FALSE)),VLOOKUP($C3,'sheet
9'!$A$2:$F$50,2,FALSE),VLOOKUP($C3,'sheet 8'!$A$2:$F$58,2,FALSE)), it
work
only for 2 sheets. i want that 3rd sheet also covered by this formula,
what i
have to do pls make the necessary changes in formula.

regards
anil








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 for more than 2 range hitesh Excel Discussion (Misc queries) 6 May 28th 08 03:59 PM
Using VLOOKUP with a 3D range Cassie Excel Worksheet Functions 4 September 11th 07 11:29 PM
VLookup Range Help CWillis Excel Worksheet Functions 6 June 8th 07 07:06 PM
vlookup range changes Hobbes2006 Excel Worksheet Functions 3 April 18th 06 07:07 PM
Vlookup where range changes Greg Excel Worksheet Functions 1 March 17th 06 11:41 PM


All times are GMT +1. The time now is 04:13 PM.

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

About Us

"It's about Microsoft Excel"