Help - referring to a sheet that does not exist

gor

New Member
Joined
Dec 7, 2010
Messages
19
<!--[if gte mso 9]><xml> <w:WordDocument> <w:View>Normal</w:View> <w:Zoom>0</w:Zoom> <w:PunctuationKerning/> <w:ValidateAgainstSchemas/> <w:SaveIfXMLInvalid>false</w:SaveIfXMLInvalid> <w:IgnoreMixedContent>false</w:IgnoreMixedContent> <w:AlwaysShowPlaceholderText>false</w:AlwaysShowPlaceholderText> <w:Compatibility> <w:BreakWrappedTables/> <w:SnapToGridInCell/> <w:WrapTextWithPunct/> <w:UseAsianBreakRules/> <w:DontGrowAutofit/> </w:Compatibility> <w:BrowserLevel>MicrosoftInternetExplorer4</w:BrowserLevel> </w:WordDocument> </xml><![endif]--><!--[if gte mso 9]><xml> <w:LatentStyles DefLockedState="false" LatentStyleCount="156"> </w:LatentStyles> </xml><![endif]--><!--[if gte mso 10]> <style> /* Style Definitions */ table.MsoNormalTable {mso-style-name:"Table Normal"; mso-tstyle-rowband-size:0; mso-tstyle-colband-size:0; mso-style-noshow:yes; mso-style-parent:""; mso-padding-alt:0cm 5.4pt 0cm 5.4pt; mso-para-margin:0cm; mso-para-margin-bottom:.0001pt; mso-pagination:widow-orphan; font-size:10.0pt; font-family:"Times New Roman"; mso-ansi-language:#0400; mso-fareast-language:#0400; mso-bidi-language:#0400;} </style> <![endif]--> All,

I'm looking for a simple formula that allows me to refer to a sheet that does not exist or has been deleted.

I have a master workbook to analyse some costs however whenever I delete a sheet (say for project X) to import a new one (from project Y) all the cells return a #REF!. The sheet name and cells are consistent across all imported sheets.

Thanks in advance,
 

Excel Facts

What is the fastest way to copy a formula?
If A2:A50000 contain data. Enter a formula in B2. Select B2. Double-click the Fill Handle and Excel will shoot the formula down to B50000.
Are you deleting sheet X first and then adding sheet Y? That probably is the problem.

Can you add your new sheet first under a different name; do a FIND and REPLACE to have all your formulas change to that new sheet name; and then you can delete the old sheet and still have your formulas. OR

If instead of your new sheet being in the same workbook - put it in another workbook. Before you open your master sheet - delete your X workbook and replace it with your Y (both x and y having the exact same name and being in the same place). Then when you open your master and update, it should not realize you have switched sheets.
 
Upvote 0
As an Alternative, would this idea work for you?
Excel Workbook
ABC
1
25#REF!HERE, a PREVIOUS REFERENCE GETs DELETED causing the #REF!
3
45500<<< But the USE of INDIRECT() Can SAVE YOU !! See Formula Here !!!
Sheet1
Excel 2007
Cell Formulas
RangeFormula
B2=VLOOKUP($A2,'Oper Data'!$B$1:$B$15,2,FALSE)
B4=VLOOKUP($A4,INDIRECT("'Oper Data'!$B$1:$C$15"),2,FALSE)
 
Upvote 0

Forum statistics

Threads
1,224,606
Messages
6,179,866
Members
452,948
Latest member
UsmanAli786

We've detected that you are using an adblocker.

We have a great community of people providing Excel help here, but the hosting costs are enormous. You can help keep this site running by allowing ads on MrExcel.com.
Allow Ads at MrExcel

Which adblocker are you using?

Disable AdBlock

Follow these easy steps to disable AdBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the icon in the browser’s toolbar.
2)Click on the "Pause on this site" option.
Go back

Disable AdBlock Plus

Follow these easy steps to disable AdBlock Plus

1)Click on the icon in the browser’s toolbar.
2)Click on the toggle to disable it for "mrexcel.com".
Go back

Disable uBlock Origin

Follow these easy steps to disable uBlock Origin

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back

Disable uBlock

Follow these easy steps to disable uBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back
Back
Top