PC Review


Reply
Thread Tools Rate Thread

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

 
 
JZinGA
Guest
Posts: n/a
 
      3rd May 2010

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!
 
Reply With Quote
 
 
 
 
Teethless mama
Guest
Posts: n/a
 
      3rd May 2010
=INDIRECT(SUBSTITUTE(A1," ",)&"!A3")+INDIRECT(SUBSTITUTE(A1," ",)&"!A5")


"JZinGA" wrote:

>
> 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!

 
Reply With Quote
 
David K.
Guest
Posts: n/a
 
      3rd May 2010
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" <(E-Mail Removed)> wrote in message
news:30996989-2D12-494D-AF4A-(E-Mail Removed)...
>
> 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!



 
Reply With Quote
 
 
 
Reply

Thread Tools
Rate This Thread
Rate This Thread:

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

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Formula to reference another cell in a worksheet HeatherJ Microsoft Excel Misc 3 20th May 2010 03:57 PM
Cell reference in different worksheet in formula =?Utf-8?B?Um9iYg==?= Microsoft Excel Worksheet Functions 1 30th May 2006 06:52 PM
Cell Formula reference to cell Based On third Cell Content =?Utf-8?B?R2FicmllbA==?= Microsoft Excel Misc 1 11th Feb 2005 06:36 AM
Cell Formula reference to cell Based On third Cell Content =?Utf-8?B?R2FicmllbA==?= Microsoft Excel Misc 0 11th Feb 2005 05:35 AM
Reference another worksheet based on a cell value Bill Microsoft Excel Worksheet Functions 6 23rd Jan 2004 03:35 PM


Features
 

Advertising
 

Newsgroups
 


All times are GMT +1. The time now is 04:41 AM.