View Single Post
  #5   Report Post  
Posted to microsoft.public.excel.misc
Rod Rod is offline
external usenet poster
 
Posts: 108
Default freeze cell reference when inserting a row

I have been trying it both in separate worksheets and workbooks to see which
one would work out the best. I will try your suggestion and let you know the
results

"Bernie Deitrick" wrote:

Rod,

Worksheets are tabs within a workbook. Separate files are called workbooks, not worksheets... thus
our confusion.

You need to create a valid formula string within the INDIRECT function that refers to the cell of
interest. Open both books, type = into cell D4 of book A, then navigate to cell D2 of book B and
press Enter. You should then get a formula like

='[BookB.xls]Sheet 1'!$D$2

Which you can then include in the INDIRECT function by adding

INDIRECT("

between the = and the first ' (or, if there is no single quote mark, the square bracket [ ) and
then adding

")

at the end.


HTH,
Bernie
MS Excel MVP


"Rod" wrote in message
...

Bernie,

Thanks for the help. It is quite working out for me though. I put in the
formula like you said ,but it returns "#ref" instead of what I want it to?
The other worksheet was open at the time so that shouldn't be the issue.
What do they mean by A1 reference, or R1C1? Does that have anything to do
with my problem?

Thanks in advance for you help.

Rod
"Bernie Deitrick" wrote:

Rod,

=INDIRECT("'Sheet B'!D2")

Fix up the sheet name to reflect your actual names...

HTH,
Bernie
MS Excel MVP


"Rod" wrote in message
...
I have two worsheets A & B. I have linked cell D4 in A to D2 in B. When I
insert a row into B, I would like cell D4 in A to always display the
contents of D2 regardless of the number of rows i insert at that point. Can
anyone help me?