Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.worksheet.functions
turn?around
 
Posts: n/a
Default Have a worksheet = cell value (Time!B2 vs C2!B2 when C2 = Time)?

How can I set the worksheet I am referencing in a formula to be the text in a
cell? I have many worksheets with the same formatted data. If I am able to do
this I can pull the data I need from each worksheet without retyping my
formulas by just referencing a row of worksheet names.
Microsoft Excel 2003 Professional
  #2   Report Post  
Posted to microsoft.public.excel.worksheet.functions
Toppers
 
Posts: n/a
Default Have a worksheet = cell value (Time!B2 vs C2!B2 when C2 = Time)?

Try:

=INDIRECT("'"&$A$1&"'!B2") where A1 contains sheet name

"turn?around" wrote:

How can I set the worksheet I am referencing in a formula to be the text in a
cell? I have many worksheets with the same formatted data. If I am able to do
this I can pull the data I need from each worksheet without retyping my
formulas by just referencing a row of worksheet names.
Microsoft Excel 2003 Professional

  #3   Report Post  
Posted to microsoft.public.excel.worksheet.functions
Elkar
 
Posts: n/a
Default Have a worksheet = cell value (Time!B2 vs C2!B2 when C2 = Time)?

Try the INDIRECT formula.

=INDIRECT("'"&A1&"'!B2")

This will return the cell value of B2 from the sheet that is named in cell
A1. So let's assume A1 contains the text value DATA. This formula returns
the value found in DATA!B2.

HTH,
Elkar

"turn?around" wrote:

How can I set the worksheet I am referencing in a formula to be the text in a
cell? I have many worksheets with the same formatted data. If I am able to do
this I can pull the data I need from each worksheet without retyping my
formulas by just referencing a row of worksheet names.
Microsoft Excel 2003 Professional

  #4   Report Post  
Posted to microsoft.public.excel.worksheet.functions
turn?around
 
Posts: n/a
Default Have a worksheet = cell value (Time!B2 vs C2!B2 when C2 = Time

This did allow the reference to that cell. However when I pulled it across to
reference the different sheets it kept looking at the initial cell mentioned,
defeating the point of having the worksheet names listed.

"Elkar" wrote:

Try the INDIRECT formula.

=INDIRECT("'"&A1&"'!B2")

This will return the cell value of B2 from the sheet that is named in cell
A1. So let's assume A1 contains the text value DATA. This formula returns
the value found in DATA!B2.

HTH,
Elkar

"turn?around" wrote:

How can I set the worksheet I am referencing in a formula to be the text in a
cell? I have many worksheets with the same formatted data. If I am able to do
this I can pull the data I need from each worksheet without retyping my
formulas by just referencing a row of worksheet names.
Microsoft Excel 2003 Professional

  #5   Report Post  
Posted to microsoft.public.excel.worksheet.functions
Elkar
 
Posts: n/a
Default Have a worksheet = cell value (Time!B2 vs C2!B2 when C2 = Time

So, the B2 portion of the formula is what you want to increment when copied?
Then perhaps, something like this will work:

=INDIRECT("'"&A1&"'!B"&ROW())

This will now use the row number that the formula is located in, to
determine which row to look in on the referenced sheet. You can add or
subtract from this also if needed. ROW()+1 or ROW()-1

Does that help?

"turn?around" wrote:

This did allow the reference to that cell. However when I pulled it across to
reference the different sheets it kept looking at the initial cell mentioned,
defeating the point of having the worksheet names listed.

"Elkar" wrote:

Try the INDIRECT formula.

=INDIRECT("'"&A1&"'!B2")

This will return the cell value of B2 from the sheet that is named in cell
A1. So let's assume A1 contains the text value DATA. This formula returns
the value found in DATA!B2.

HTH,
Elkar

"turn?around" wrote:

How can I set the worksheet I am referencing in a formula to be the text in a
cell? I have many worksheets with the same formatted data. If I am able to do
this I can pull the data I need from each worksheet without retyping my
formulas by just referencing a row of worksheet names.
Microsoft Excel 2003 Professional

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
Custom functions calculating time arguments Help Desperate Bill_De Excel Worksheet Functions 12 April 25th 06 02:22 AM
Adding a row to worksheet does not update cell references in another. blausen Excel Worksheet Functions 5 February 25th 06 09:14 PM
Data From One Worksheet To Be Used In A Cell In A Different Worksheet ratt Excel Worksheet Functions 5 August 16th 05 03:13 AM
multiplycation of money cell and time cell engr625 Excel Worksheet Functions 1 August 3rd 05 04:53 AM
Copy cell format to cell on another worksht and update automatical kevinm Excel Worksheet Functions 21 May 19th 05 11:07 AM


All times are GMT +1. The time now is 12:54 AM.

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"