View Single Post
  #4   Report Post  
Posted to microsoft.public.excel.programming
Dave Peterson Dave Peterson is offline
external usenet poster
 
Posts: 35,218
Default keep cell reference

Unless sheet1!a1 contains an error <vbg:

=IF(ISERROR(CELL("Address",INDIRECT("'Sheet1'!A1") )),
"No Sheet1","yourformulahere")



Jim Thomlinson wrote:

This formula should work for you...
=IF(ISERROR(INDIRECT("Sheet1!A1")), "No Sheet1", INDIRECT("Sheet1!A1"))
--
HTH...

Jim Thomlinson

"geebee" wrote:

hi,

i have a cell in sheet_new with a formula in cell A1:

= sheet1!C2

i would like to know how the cell A1 can keep this formula even if sheet1 is
deleted, because it may be possible to delete the sheet1 and later add it
back, so when it is added back, i want the formula remembered/restored.

thanks in advance,
geebee



--

Dave Peterson