A better approach may be to update those formulas that are returning those errors.
Then you would never need to worry about it.
So if your original formula was "formula", here is how to rewrite the formula so that it will return a blank instead of REF errors.
=IFERROR(formula,"")
Just substitute your actual formula for "formula".
It might be a little bit of work to update the formulas across your worksheets, but it is just a one-time fix.
Once you update them, you should never have this problem again.