Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   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 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?
  #2   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 5,441
Default freeze cell reference when inserting a row

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?



  #3   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


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?




  #4   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 5,441
Default freeze cell reference when inserting a row

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?






  #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?








  #6   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

Thank you so much Bernie. It was the quotation marks I was lacking. What is
their purpose? What does that say to the computer?

"Rod" wrote:


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?




  #7   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 5,441
Default freeze cell reference when inserting a row

The quote marks tell Excel that the value being passed to the function is a string, which is what
the INDIRECT function requires.

HTH,
Bernie
MS Excel MVP


"Rod" wrote in message
...
Thank you so much Bernie. It was the quotation marks I was lacking. What is
their purpose? What does that say to the computer?

"Rod" wrote:


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?





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
Reference Cell Color From Other WorkSheets carCiNogn Excel Worksheet Functions 1 May 17th 06 09:35 PM
Urgent date/scheduling calc needed jct Excel Worksheet Functions 3 February 24th 06 01:36 AM
Possible Lookup Table Karen Excel Worksheet Functions 5 June 8th 05 09:43 PM
Flexible Cell Reference Brandt Excel Discussion (Misc queries) 5 June 2nd 05 10:23 PM
inserting data from a row to a cell, when the row number is specified by a formula in a cell [email protected] New Users to Excel 2 January 6th 05 07:18 AM


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