A Microsoft Office (Excel, Word) forum. OfficeFrustration

If this is your first visit, be sure to check out the FAQ by clicking the link above. You may have to register before you can post: click the register link above to proceed. To start viewing messages, select the forum that you want to visit from the selection below.

Go Back   Home » OfficeFrustration forum » Microsoft Excel » Worksheet Functions
Site Map Home Register Authors List Search Today's Posts Mark Forums Read  

How can I reference a worksheet in a formula based on a cell value



 
 
Thread Tools Display Modes
  #1  
Old May 3rd, 2010, 10:32 PM posted to microsoft.public.excel.worksheet.functions
JZinGA
external usenet poster
 
Posts: 1
Default How can I reference a worksheet in a formula based on a cell value


Row 1 contains labels / headings:

A B C
Sheet 1 Sheet 2 Sheet 3, etc.

In row 2, part of the formula will look to a cell on the worksheet that
corresponds to the heading. For example, "='Sheet 1'!A3+'Sheet 1'!A5"

I'd like to "insert" the reference to the worksheet by referencing the cell
in row 1. I think there must be an easy way to do it, and it would save me a
lot of time.

Thanks in advance!
  #2  
Old May 3rd, 2010, 10:57 PM posted to microsoft.public.excel.worksheet.functions
David K.[_5_]
external usenet poster
 
Posts: 7
Default How can I reference a worksheet in a formula based on a cell value

Here's the formula for B1:
=INDIRECT("'"&A$1&"'!$A$3")+INDIRECT("'"&A$1&"'!$A $5")
Here's another hint:
Somewhere on each sheet (say in cell A10) place this formula to return the
Sheet Name.
=MID(CELL("filename",A1),FIND("]",CELL("filename",A1))+1,255)
Then, on your lookup sheet, on row one, use a reference formula to point to
A10 on each sheet.
For example A1 would be ='Sheet1'!$A$10
This way, if a sheet name changes all the formulae will update
automatically.

Hope this helps.
--
David K.



"JZinGA" wrote in message
...

Row 1 contains labels / headings:

A B C
Sheet 1 Sheet 2 Sheet 3, etc.

In row 2, part of the formula will look to a cell on the worksheet that
corresponds to the heading. For example, "='Sheet 1'!A3+'Sheet 1'!A5"

I'd like to "insert" the reference to the worksheet by referencing the
cell
in row 1. I think there must be an easy way to do it, and it would save
me a
lot of time.

Thanks in advance!



 




Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Forum Jump


All times are GMT +1. The time now is 06:55 PM.


Powered by vBulletin® Version 3.6.4
Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
Copyright ©2004-2024 OfficeFrustration.
The comments are property of their posters.