Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 35
Default Find a worksheet and extract data

I have 3 different worksheets, "01-01-2004", "01-11-2005", "01-01-2006".

In a separate spreadsheet I want to insert a formula that gives me data from
the worksheet I specify.

At the moment I use the following formula:

{=INDEX('01-01-2004'!$D$2:$D$8,MATCH(B4&C4&D4,'01-01-2004'!$A$2:$A$8&'01-01-2004'!$B$2:$B$8&'01-01-2004'!$C$2:$C$8,0))}

Which works fine but it only looks for the data on worksheet 01-01-2004.
Now I would like to add a fromula to this formula so I can get the data of
the other worksheets if A1 is equal to the name (=date) of the worksheet.

Can you help?

Thanks in advance.

Deborah

  #2   Report Post  
Posted to microsoft.public.excel.worksheet.functions
Max Max is offline
external usenet poster
 
Posts: 9,221
Default Find a worksheet and extract data

With A1 pre-formatted* as text, and housing the sheetname, eg: 01-11-2005
*or, with the sheetname input in A1 made with a preceding apostrophe (the
sheetname must be entered as text in A1)

Try this in say, E4, array-entered (press CTRL+SHIFT+ENTER):
=IF(A1="","",INDEX(INDIRECT("'"&A1&"'!D2:D8"),MATC H(B4&C4&D4,INDIRECT("'"&A1&"'!A2:A8")&INDIRECT("'" &A1&"'!B2:B8")&INDIRECT("'"&A1&"'!C2:C8"),0)))
--
Max
Singapore
http://savefile.com/projects/236895
xdemechanik
---
"Deborah" wrote:
I have 3 different worksheets, "01-01-2004", "01-11-2005", "01-01-2006".

In a separate spreadsheet I want to insert a formula that gives me data from
the worksheet I specify.

At the moment I use the following formula:

{=INDEX('01-01-2004'!$D$2:$D$8,MATCH(B4&C4&D4,'01-01-2004'!$A$2:$A$8&'01-01-2004'!$B$2:$B$8&'01-01-2004'!$C$2:$C$8,0))}

Which works fine but it only looks for the data on worksheet 01-01-2004.
Now I would like to add a formula to this formula so I can get the data of
the other worksheets if A1 is equal to the name (=date) of the worksheet.

Can you help?

Thanks in advance.

Deborah

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
find a worksheet and extract data Deborah Excel Worksheet Functions 2 September 27th 06 03:39 PM
Extract data from one worksheet SKY Excel Worksheet Functions 5 April 27th 06 01:48 PM
Using a column of data from 1 worksheet to extract data from another worksheet [email protected] Excel Worksheet Functions 2 February 23rd 06 04:33 PM
Extract data from one Worksheet to another extract data fr. one worksheet to anothe Excel Worksheet Functions 1 August 15th 05 07:11 PM
extract data from worksheet sallu Excel Worksheet Functions 2 February 21st 05 06:50 AM


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