Excel search for cell references in formulas

2020-06-07 08:38发布

问题:

I inherited a big model and have been trying to reverse engineer some of the formulas. There are a lot of fields. I am not sure if everyone of them is necessary.

Is it possible to search an Excel document (with 5 worksheets) to find if say, AZ12 is used in any formula? Or $AZ12 or $AZ$12?

回答1:

Tools > Formula Auditing > Trace Precedents or Trace Dependents (Excel 2003)

Formulas > Trace Precedents or Trace Dependent (Excel 2010)



回答2:

I bought the add-in Formula Manager to do this.
If you want to do it yourself, you'll have to implement it in VBA.



回答3:

Search > Options > Within: Workbook > Look in: Formulas

The upside is that you can broaden the search for example by omitting the row number, or narrow it by including pieces of a formula you want to find. For an inherited file I would Find All '='.

The downside is you have to check with and without dollar signs, a total of four searches for the original example.