Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 4
Default Resolve a text cell reference to the cell's value

I have 2 cells on a work sheet that I concatenate together in cell D27 to
give the string '#1'!P15 which refers to cell P15 on worksheet #1

D27="'"&D$24&"'!"&C27

I want to do this

=D27*E27

But I get the #VALUE! result

How do I get D27 to have the value of cell P15 on worksheet #1 instead of a
text string?
  #2   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 11,058
Default Resolve a text cell reference to the cell's value

Use the INDIRECT() function.

If A1 contains:
Sheet1
and A2 contains:
P15

Then the formula
=A1 & "!" & A2
will naturally display:
Sheet1!P15


But:
=INDIRECT(A1 & "!" & A2)
will display the actual contents of cell P15 on Sheet1.
--
Gary''s Student - gsnu200909


"BCDS" wrote:

I have 2 cells on a work sheet that I concatenate together in cell D27 to
give the string '#1'!P15 which refers to cell P15 on worksheet #1

D27="'"&D$24&"'!"&C27

I want to do this

=D27*E27

But I get the #VALUE! result

How do I get D27 to have the value of cell P15 on worksheet #1 instead of a
text string?

  #3   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 35,218
Default Resolve a text cell reference to the cell's value

You could use:
=indirect(d27)*e27

Or you could put the =indirect() function in your cell in D27:
=indirect("'"&D$24&"'!"&C27)



BCDS wrote:

I have 2 cells on a work sheet that I concatenate together in cell D27 to
give the string '#1'!P15 which refers to cell P15 on worksheet #1

D27="'"&D$24&"'!"&C27

I want to do this

=D27*E27

But I get the #VALUE! result

How do I get D27 to have the value of cell P15 on worksheet #1 instead of a
text string?


--

Dave Peterson
  #4   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 4
Default Resolve a text cell reference to the cell's value

THANK YOU!

"Gary''s Student" wrote:

Use the INDIRECT() function.

If A1 contains:
Sheet1
and A2 contains:
P15

Then the formula
=A1 & "!" & A2
will naturally display:
Sheet1!P15


But:
=INDIRECT(A1 & "!" & A2)
will display the actual contents of cell P15 on Sheet1.
--
Gary''s Student - gsnu200909


"BCDS" wrote:

I have 2 cells on a work sheet that I concatenate together in cell D27 to
give the string '#1'!P15 which refers to cell P15 on worksheet #1

D27="'"&D$24&"'!"&C27

I want to do this

=D27*E27

But I get the #VALUE! result

How do I get D27 to have the value of cell P15 on worksheet #1 instead of a
text string?

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
Using 1 cell's value as a reference Oddjob Excel Discussion (Misc queries) 4 October 28th 09 07:12 PM
How do I Reference another cell's content including its format Brian D Excel Worksheet Functions 2 November 15th 08 01:07 AM
no functions resolve when format of cells is text laura_in_abq Excel Worksheet Functions 7 September 30th 08 09:04 PM
using a cell's reference to return a value. Bhupinder Rayat Excel Worksheet Functions 3 January 2nd 08 02:21 PM
Changing named range reference depending on a cell's content cparaske Excel Discussion (Misc queries) 1 July 29th 05 07:06 PM


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