Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.worksheet.functions
leo leo is offline
external usenet poster
 
Posts: 74
Default Referring to multiple worksheets

I am trying to re-compile a whole lot of data which is displayed over 30
worksheets(numbered 1-30). I want to perform the same vlookup function for
several different parts of the data for all of these spreadsheets to compile
all of the data quickly on the one new worksheet. Is there any way that I can
automatically enter the worksheet name in the vlookup function rather than
having to manually enter the worksheet name for every column?

The formula looks like this: =VLOOKUP($A4,'01'!$A$1:$L$60,$C$2,FALSE) where
'01' is the name of worksheet 01. The next column has the formula:
=VLOOKUP($A4,'02'!$A$1:$K$60,$C$2,FALSE) and so on.

As I have to do this with many worksheets some help would be much
appreciated.
  #2   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 3,718
Default Referring to multiple worksheets

Create a list of sheet names
example:
A1: 01
A2: 02
A3: 03
and so on....

B1 =VLOOKUP($A4,INDIRECT("'"&A1&"'!$A$1:$L$60"),$C$2, FALSE)

Copy all the way down as far as needed


"Leo" wrote:

I am trying to re-compile a whole lot of data which is displayed over 30
worksheets(numbered 1-30). I want to perform the same vlookup function for
several different parts of the data for all of these spreadsheets to compile
all of the data quickly on the one new worksheet. Is there any way that I can
automatically enter the worksheet name in the vlookup function rather than
having to manually enter the worksheet name for every column?

The formula looks like this: =VLOOKUP($A4,'01'!$A$1:$L$60,$C$2,FALSE) where
'01' is the name of worksheet 01. The next column has the formula:
=VLOOKUP($A4,'02'!$A$1:$K$60,$C$2,FALSE) and so on.

As I have to do this with many worksheets some help would be much
appreciated.

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
SUMif or SUMproduct across multiple worksheets? Eric Shamlin Excel Worksheet Functions 1 September 29th 05 09:55 AM
Line chart from multiple worksheets Paul B. Charts and Charting in Excel 2 September 21st 05 11:46 PM
Formula checking multiple worksheets sonic-the-mouse Excel Worksheet Functions 2 June 5th 05 07:48 PM
Update multiple worksheets Lizz45ie Excel Discussion (Misc queries) 0 May 31st 05 09:21 PM
Countif with multiple criteria and multiple worksheets JJ Excel Worksheet Functions 1 December 28th 04 06:37 PM


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