Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 1
Default How do I reference a worksheet name through a formula?

I would like to reference a cell to obtain a worksheet name rather than have
the worksheet name in the formula. So rather than have Sheet1! in the formula
I would like to have a cell that contains the text "Sheet1"
  #2   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 2,389
Default How do I reference a worksheet name through a formula?

Check out the Indirect function.

Regards,
Fred

"pv6901" wrote in message
...
I would like to reference a cell to obtain a worksheet name rather than
have
the worksheet name in the formula. So rather than have Sheet1! in the
formula
I would like to have a cell that contains the text "Sheet1"


  #3   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 35,218
Default How do I reference a worksheet name through a formula?

If A1 contains the text: Sheet1
and you wanted to retrieve the value from Z99 in Sheet1, you could use this
formula:

=indirect("'" & a1 & "'!z99")

If you need to retrieve data from worksheet in a different workbook, be aware
that that "sending" workbook has to be open for =indirect() to work the way you
want.

pv6901 wrote:

I would like to reference a cell to obtain a worksheet name rather than have
the worksheet name in the formula. So rather than have Sheet1! in the formula
I would like to have a cell that contains the text "Sheet1"


--

Dave Peterson
  #4   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 11,501
Default How do I reference a worksheet name through a formula?

Hi,

There'sno guarantee it makes you formula simpler but lets say we have

Sheet1!

in Cell A1, this formula returns A1 of sheet 1

=INDIRECT(A1&"A1")
--
Mike

When competing hypotheses are otherwise equal, adopt the hypothesis that
introduces the fewest assumptions while still sufficiently answering the
question.


"pv6901" wrote:

I would like to reference a cell to obtain a worksheet name rather than have
the worksheet name in the formula. So rather than have Sheet1! in the formula
I would like to have a cell that contains the text "Sheet1"

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
Formula to reference another worksheet SixBowls Excel Discussion (Misc queries) 4 August 28th 09 05:25 PM
Reference a Worksheet Tab in Formula Susan Excel Worksheet Functions 11 August 14th 07 09:11 PM
two worksheet reference formula help chadhart Excel Worksheet Functions 1 June 2nd 06 11:44 PM
Cell reference in different worksheet in formula Robb Excel Worksheet Functions 1 May 30th 06 06:52 PM
Worksheet name / reference as a formula? gabriel_e Excel Discussion (Misc queries) 4 January 24th 06 12:23 PM


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

Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
Copyright ©2004-2025 ExcelBanter.
The comments are property of their posters.
 

About Us

"It's about Microsoft Excel"