ExcelBanter

ExcelBanter (https://www.excelbanter.com/)
-   Excel Discussion (Misc queries) (https://www.excelbanter.com/excel-discussion-misc-queries/)
-   -   Formula Help with #REF! (https://www.excelbanter.com/excel-discussion-misc-queries/140251-formula-help-ref.html)

OdAwG

Formula Help with #REF!
 
I was wondering if there is a way to save my formula that references
another
sheet from going to #REF when the sheet is deleted and then recreated.

In my main sheet called Master, I have the following formula in G1
=Roster!$D$8

When ever my Roster sheet gets deleted and rebuilt, my formula above always
goes to the following
=#REF!$D$8.

If it is possible, how can i prevent this from happening because now what I
have to do is go to every cell and change it form
=REF!$D$8 to =Roster!$D$8 to pull my values over.

Any and all help is greatly appreciated.

Argus



Max

Formula Help with #REF!
 
One way is to use INDIRECT, viz:
=INDIRECT("'Roster'!D8")
--
Max
Singapore
http://savefile.com/projects/236895
xdemechanik
---
"OdAwG" wrote:
I was wondering if there is a way to save my formula that references
another
sheet from going to #REF when the sheet is deleted and then recreated.

In my main sheet called Master, I have the following formula in G1
=Roster!$D$8

When ever my Roster sheet gets deleted and rebuilt, my formula above always
goes to the following
=#REF!$D$8.

If it is possible, how can i prevent this from happening because now what I
have to do is go to every cell and change it form
=REF!$D$8 to =Roster!$D$8 to pull my values over.

Any and all help is greatly appreciated.

Argus




JMB

Formula Help with #REF!
 
try

=INDIRECT("Roster!D8")

although if cell D8 gets moved (by inserting/deleting rows or cut/paste)
Indirect will still reference cell D8 - it does not update when the target
cell moves.

alternatively, you could go to your master sheet and use find/replace to
replace = with something like %%%. Then delete your roster sheet and
recreate it. Then use find/replace to replace %%% with =.


"OdAwG" wrote:

I was wondering if there is a way to save my formula that references
another
sheet from going to #REF when the sheet is deleted and then recreated.

In my main sheet called Master, I have the following formula in G1
=Roster!$D$8

When ever my Roster sheet gets deleted and rebuilt, my formula above always
goes to the following
=#REF!$D$8.

If it is possible, how can i prevent this from happening because now what I
have to do is go to every cell and change it form
=REF!$D$8 to =Roster!$D$8 to pull my values over.

Any and all help is greatly appreciated.

Argus





All times are GMT +1. The time now is 08:45 AM.

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