#1   Report Post  
TPratt
 
Posts: n/a
Default VLookUp

Does anyone know how one could use a vlookup to look across multiple tabs
within a file?

Thanks in advance for you help.

T


  #2   Report Post  
Biff
 
Posts: n/a
Default

Hi!

Try this:

Create a list of the sheet names that you want the lookup to search, say
J1:J10.

Now, create a named range that refers to that list. Name it something like
SheetList.

This will only work if the lookup range is the same on all sheets!

Assume your lookup value is in A1 and the lookup range is A:E on the other
sheets.

Entered as an array with the key combo of CTRL,SHIFT,ENTER:

=VLOOKUP(A1,INDIRECT("'"&INDEX(SheetList,MATCH(TRU E,COUNTIF(INDIRECT("'"&SheetList&"'!A:A"),A1)0,0) )&"'!A:E"),4,0)

This example is returning from column 4 of the lookup table.

If you want an error trap, post back!

Biff

"TPratt" wrote in message
...
Does anyone know how one could use a vlookup to look across multiple tabs
within a file?

Thanks in advance for you help.

T




  #3   Report Post  
TPratt
 
Posts: n/a
Default

Thanks Biff

It looks very clean. We'll give it a try.

"Biff" wrote in message
...
Hi!

Try this:

Create a list of the sheet names that you want the lookup to search, say
J1:J10.

Now, create a named range that refers to that list. Name it something like
SheetList.

This will only work if the lookup range is the same on all sheets!

Assume your lookup value is in A1 and the lookup range is A:E on the other
sheets.

Entered as an array with the key combo of CTRL,SHIFT,ENTER:


=VLOOKUP(A1,INDIRECT("'"&INDEX(SheetList,MATCH(TRU E,COUNTIF(INDIRECT("'"&She
etList&"'!A:A"),A1)0,0))&"'!A:E"),4,0)

This example is returning from column 4 of the lookup table.

If you want an error trap, post back!

Biff

"TPratt" wrote in message
...
Does anyone know how one could use a vlookup to look across multiple

tabs
within a file?

Thanks in advance for you help.

T






  #4   Report Post  
Biff
 
Posts: n/a
Default

Hi!

See your other post in the .newusers group.

I posted a shorter less complicated formula there. It helped that you posted
an example of your data there.

Biff

"TPratt" wrote in message
...
Thanks Biff

It looks very clean. We'll give it a try.

"Biff" wrote in message
...
Hi!

Try this:

Create a list of the sheet names that you want the lookup to search, say
J1:J10.

Now, create a named range that refers to that list. Name it something
like
SheetList.

This will only work if the lookup range is the same on all sheets!

Assume your lookup value is in A1 and the lookup range is A:E on the
other
sheets.

Entered as an array with the key combo of CTRL,SHIFT,ENTER:


=VLOOKUP(A1,INDIRECT("'"&INDEX(SheetList,MATCH(TRU E,COUNTIF(INDIRECT("'"&She
etList&"'!A:A"),A1)0,0))&"'!A:E"),4,0)

This example is returning from column 4 of the lookup table.

If you want an error trap, post back!

Biff

"TPratt" wrote in message
...
Does anyone know how one could use a vlookup to look across multiple

tabs
within a file?

Thanks in advance for you help.

T








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
Array Function with VLOOKUP CoRrRan Excel Worksheet Functions 15 April 8th 05 05:54 PM
make a vlookup using a variable path Alex St-Pierre Excel Worksheet Functions 1 March 2nd 05 11:54 PM
vlookup data hidden within worksheet Excel Worksheet Functions 0 January 26th 05 12:09 PM
Vlookup info being used without vlookup table attached? Excel Worksheet Functions 0 January 25th 05 10:43 AM
VLOOKUP not working Scott Excel Worksheet Functions 3 November 12th 04 08:06 PM


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