#1   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 267
Default worksheet reference

I want to return the contents of a cell on a seperate worksheet refered to by
name in another cell:

so if cell c7 ="policy"

and I want cell mainpage!D10 to return the value in Policy!H11

or if cell c7 ="calls"

then I want cell mainpage!D10 to return the value in calls!H11

any ideas?
  #2   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 8,651
Default worksheet reference

=IF(C7="policy",Policy!H11,IF(C7="calls",calls!H11 ,"undefined output"))
--
David Biddulph

"Atishoo" wrote in message
...
I want to return the contents of a cell on a seperate worksheet refered to
by
name in another cell:

so if cell c7 ="policy"

and I want cell mainpage!D10 to return the value in Policy!H11

or if cell c7 ="calls"

then I want cell mainpage!D10 to return the value in calls!H11

any ideas?



  #3   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 267
Default worksheet reference

Unfortunately i dont know what the worksheet names are necessarily going to
be as new worksheets are generated by a sub I am using, The worsheet name
will depend on a vlue added by the end user.
Policy and calls were just examples.
So I need a way of referencing a worksheet by the value (which may be
unknown and variable) in a cell

"David Biddulph" wrote:

=IF(C7="policy",Policy!H11,IF(C7="calls",calls!H11 ,"undefined output"))
--
David Biddulph

"Atishoo" wrote in message
...
I want to return the contents of a cell on a seperate worksheet refered to
by
name in another cell:

so if cell c7 ="policy"

and I want cell mainpage!D10 to return the value in Policy!H11

or if cell c7 ="calls"

then I want cell mainpage!D10 to return the value in calls!H11

any ideas?




  #4   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 8,651
Default worksheet reference

In which case the INDIRECT function, as suggested by others, is certainly
your best bet.
--
David Biddulph

"Atishoo" wrote in message
...
Unfortunately i dont know what the worksheet names are necessarily going
to
be as new worksheets are generated by a sub I am using, The worsheet name
will depend on a vlue added by the end user.
Policy and calls were just examples.
So I need a way of referencing a worksheet by the value (which may be
unknown and variable) in a cell

"David Biddulph" wrote:

=IF(C7="policy",Policy!H11,IF(C7="calls",calls!H11 ,"undefined output"))
--
David Biddulph

"Atishoo" wrote in message
...
I want to return the contents of a cell on a seperate worksheet refered
to
by
name in another cell:

so if cell c7 ="policy"

and I want cell mainpage!D10 to return the value in Policy!H11

or if cell c7 ="calls"

then I want cell mainpage!D10 to return the value in calls!H11

any ideas?






  #5   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 2,420
Default worksheet reference

=INDIRECT("'"&C7&"'!H11")

--
__________________________________
HTH

Bob

"Atishoo" wrote in message
...
I want to return the contents of a cell on a seperate worksheet refered to
by
name in another cell:

so if cell c7 ="policy"

and I want cell mainpage!D10 to return the value in Policy!H11

or if cell c7 ="calls"

then I want cell mainpage!D10 to return the value in calls!H11

any ideas?





  #6   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 267
Default worksheet reference

Fantastic!!
thanks very much

"Bob Phillips" wrote:

=INDIRECT("'"&C7&"'!H11")

--
__________________________________
HTH

Bob

"Atishoo" wrote in message
...
I want to return the contents of a cell on a seperate worksheet refered to
by
name in another cell:

so if cell c7 ="policy"

and I want cell mainpage!D10 to return the value in Policy!H11

or if cell c7 ="calls"

then I want cell mainpage!D10 to return the value in calls!H11

any ideas?




  #7   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 8,856
Default worksheet reference

You can do it like this in D10 on mainpage sheet:

=INDIRECT("'"&C7&"'!H11")

Note the apostrophe between the double quotes and before the ! - these
cater for your sheet names having spaces.

Hope this helps.

Pete

On Feb 5, 12:44*pm, Atishoo wrote:
I want to return the contents of a cell on a seperate worksheet refered to by
name in another cell:

so if cell c7 ="policy"

and I want cell mainpage!D10 to return the value in Policy!H11

or if cell c7 ="calls"

then I want cell mainpage!D10 to return the value in calls!H11

any ideas?


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
Summary worksheet reference to detail worksheet Quimera New Users to Excel 6 September 9th 07 05:47 PM
I want in one worksheet to relatively link to/reference cells in another without changing the format of the current worksheet. [email protected] Excel Discussion (Misc queries) 0 September 22nd 05 04:39 PM
Reference the worksheet from a multiple worksheet range function ( DBickel Excel Worksheet Functions 1 May 28th 05 03:49 AM
Can the offset worksheet function reference another worksheet AlistairJ Excel Worksheet Functions 2 May 9th 05 06:18 PM
Worksheet reference (i.e placing worksheet name in a cell) Roger Roger Excel Worksheet Functions 1 January 20th 05 03:40 PM


All times are GMT +1. The time now is 02:53 AM.

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"