ExcelBanter

ExcelBanter (https://www.excelbanter.com/)
-   Excel Discussion (Misc queries) (https://www.excelbanter.com/excel-discussion-misc-queries/)
-   -   Cross sheet references (=Sheet2!B4) (https://www.excelbanter.com/excel-discussion-misc-queries/72197-cross-sheet-references-%3Dsheet2-b4.html)

DejaVu

Cross sheet references (=Sheet2!B4)
 

This is probably a stupid question, but I can't seem to figure it out.


Say, for example I have the following formula in _Sheet1-Cell_A1_
*=Sheet2!B4*. In sheet2 I have the following Data:
B4: 25
B5: 50
B6: 75
B7: 100

_Sheet1-Cell_A1_ will now show 25. I want to be able to delete row 4
in sheet 2, and have _Sheet1-Cell_A1_ keep the reference to
_Sheet2-Cell_B4_. _Sheet1-Cell_A1_ should now show 50.

This does not work... I keep getting a reference error:
*=Sheet2!#REF!*

Any ideas?
TIA,

DejaVu


--
DejaVu
------------------------------------------------------------------------
DejaVu's Profile: http://www.excelforum.com/member.php...o&userid=22629
View this thread: http://www.excelforum.com/showthread...hreadid=513409


Pete_UK

Cross sheet references (=Sheet2!B4)
 
The reason you get the #REF error is that the reference you used to
have (i.e. to row 4) has been deleted! The way round this is to use the
OFFSET( ) function (details in Excel Help) or to stop people deleting
rows.

Hope this helps.

Pete


DejaVu

Cross sheet references (=Sheet2!B4)
 

-stop people deleting rows.-

I can't stop people from deleting rows. It's a spreadsheet that get's
updated montly and with each update, it pushes the old data off and
adds the new data.

Is there any way to make a cell "always" point to another constant
cell??


--
DejaVu
------------------------------------------------------------------------
DejaVu's Profile: http://www.excelforum.com/member.php...o&userid=22629
View this thread: http://www.excelforum.com/showthread...hreadid=513409


Dave Peterson

Cross sheet references (=Sheet2!B4)
 
=indirect("sheet2!b4")

Will always point at B4.

DejaVu wrote:

This is probably a stupid question, but I can't seem to figure it out.

Say, for example I have the following formula in _Sheet1-Cell_A1_
*=Sheet2!B4*. In sheet2 I have the following Data:
B4: 25
B5: 50
B6: 75
B7: 100

_Sheet1-Cell_A1_ will now show 25. I want to be able to delete row 4
in sheet 2, and have _Sheet1-Cell_A1_ keep the reference to
_Sheet2-Cell_B4_. _Sheet1-Cell_A1_ should now show 50.

This does not work... I keep getting a reference error:
*=Sheet2!#REF!*

Any ideas?
TIA,

DejaVu

--
DejaVu
------------------------------------------------------------------------
DejaVu's Profile: http://www.excelforum.com/member.php...o&userid=22629
View this thread: http://www.excelforum.com/showthread...hreadid=513409


--

Dave Peterson


All times are GMT +1. The time now is 11:07 PM.

Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
ExcelBanter.com