Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 135
Default Use cell contents to build sheet reference

I have a worksheet that lists other worksheet names in column A. In column B,
I want to retrieve a value from the sheet listed in column A.

For example, if the value in A1 is "MySheet" (without the quotes), then B1
should return the value of 'MySheet'!M20. I tried building the formula:
="='"&CELL("contents",A1)&"'!M20"

But the cell just shows the formula I built as text, instead of the actual
formula.

Thanks for any help,
~ Horatio
  #2   Report Post  
Posted to microsoft.public.excel.misc
CM CM is offline
external usenet poster
 
Posts: 136
Default Use cell contents to build sheet reference

=A1&"'!M20"



"Horatio J. Bilge, Jr." wrote:

I have a worksheet that lists other worksheet names in column A. In column B,
I want to retrieve a value from the sheet listed in column A.

For example, if the value in A1 is "MySheet" (without the quotes), then B1
should return the value of 'MySheet'!M20. I tried building the formula:
="='"&CELL("contents",A1)&"'!M20"

But the cell just shows the formula I built as text, instead of the actual
formula.

Thanks for any help,
~ Horatio

  #3   Report Post  
Posted to microsoft.public.excel.misc
CM CM is offline
external usenet poster
 
Posts: 136
Default Use cell contents to build sheet reference

rather ="'"&A1&"'!M20"

"Horatio J. Bilge, Jr." wrote:

I have a worksheet that lists other worksheet names in column A. In column B,
I want to retrieve a value from the sheet listed in column A.

For example, if the value in A1 is "MySheet" (without the quotes), then B1
should return the value of 'MySheet'!M20. I tried building the formula:
="='"&CELL("contents",A1)&"'!M20"

But the cell just shows the formula I built as text, instead of the actual
formula.

Thanks for any help,
~ Horatio

  #4   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 11,501
Default Use cell contents to build sheet reference

Hi,

Try this

=INDIRECT(A1&"!M20")

Mike

"Horatio J. Bilge, Jr." wrote:

I have a worksheet that lists other worksheet names in column A. In column B,
I want to retrieve a value from the sheet listed in column A.

For example, if the value in A1 is "MySheet" (without the quotes), then B1
should return the value of 'MySheet'!M20. I tried building the formula:
="='"&CELL("contents",A1)&"'!M20"

But the cell just shows the formula I built as text, instead of the actual
formula.

Thanks for any help,
~ Horatio

  #5   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 506
Default Use cell contents to build sheet reference

Try this...

="'"&A1&"'"&"'!M20"

If this post helps, Click Yes!

--------------------
(Ms-Exl-Learner)
--------------------



"Horatio J. Bilge, Jr." wrote:

I have a worksheet that lists other worksheet names in column A. In column B,
I want to retrieve a value from the sheet listed in column A.

For example, if the value in A1 is "MySheet" (without the quotes), then B1
should return the value of 'MySheet'!M20. I tried building the formula:
="='"&CELL("contents",A1)&"'!M20"

But the cell just shows the formula I built as text, instead of the actual
formula.

Thanks for any help,
~ Horatio



  #6   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 135
Default Use cell contents to build sheet reference

That still doesn't return the value, but just builds a text string.
A1 says MySheet. B1 says 'MySheet'!M20 instead of 25 (the value that is in
'MySheet'!M20).

~ Horatio

"cm" wrote:

rather ="'"&A1&"'!M20"

"Horatio J. Bilge, Jr." wrote:

I have a worksheet that lists other worksheet names in column A. In column B,
I want to retrieve a value from the sheet listed in column A.

For example, if the value in A1 is "MySheet" (without the quotes), then B1
should return the value of 'MySheet'!M20. I tried building the formula:
="='"&CELL("contents",A1)&"'!M20"

But the cell just shows the formula I built as text, instead of the actual
formula.

Thanks for any help,
~ Horatio

  #7   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 135
Default Use cell contents to build sheet reference

That works great! Thank you.
~ Horatio


"Mike H" wrote:

Hi,

Try this

=INDIRECT(A1&"!M20")

Mike

"Horatio J. Bilge, Jr." wrote:

I have a worksheet that lists other worksheet names in column A. In column B,
I want to retrieve a value from the sheet listed in column A.

For example, if the value in A1 is "MySheet" (without the quotes), then B1
should return the value of 'MySheet'!M20. I tried building the formula:
="='"&CELL("contents",A1)&"'!M20"

But the cell just shows the formula I built as text, instead of the actual
formula.

Thanks for any help,
~ Horatio

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
cell contents from a reference NimbleThunder Excel Discussion (Misc queries) 4 December 29th 09 06:28 AM
Build a reference to another worksheet from cell values in currentsheet Lucas Reece Excel Worksheet Functions 5 February 18th 09 09:27 PM
Using cell value to build external reference Todd Lietha Excel Discussion (Misc queries) 11 October 1st 07 05:50 PM
Using a cells contents to reference a sheet. JoeM Excel Worksheet Functions 3 December 13th 05 07:12 PM
Getting contents of a cell when cell reference is in the sheet A Nelson Excel Discussion (Misc queries) 3 October 5th 05 06:46 PM


All times are GMT +1. The time now is 06:38 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"