- column
- TECHNOLOGY Q&A
Using Excel’s Formula Auditing tools to find hidden spreadsheet errors
Related
Settings to optimize Claude, ChatGPT, and Copilot AI
What CPAs can do to prevent AI agents from failing
Most large companies exceed AI budgets amid struggles to forecast costs
TOPICS
Q. I sometimes review Excel workbooks where a number does not seem right, but the formula does not return an error message. Is there a way to trace the calculation and determine whether the formula is using the correct cells?
A. The answer is yes. Excel includes several Formula Auditing tools that can help accountants investigate formulas that produce unexpected results. These tools are especially helpful when a formula is technically valid but references the wrong cell. In that situation, Excel may calculate the formula without displaying an error, even though the resulting amount is incorrect.
Many accounting workbooks contain formulas that link multiple worksheets, reporting periods, and supporting schedules. A single incorrect reference can flow through several calculations and ultimately affect a financial report. Finding the source of the problem manually can be difficult, particularly in a large workbook. Excel’s Error Checking, Trace Precedents, Trace Dependents, Evaluate Formula, and Watch Window tools can make this review process easier.
I used Microsoft Excel 365 for PCs to create this example. Other Excel versions may work differently. You can download the Excel file used for this example and view a video demonstration at the end of this item.
The accompanying workbook contains a monthly operating report for True Blue Services. The report includes revenue, payroll, marketing, other operating expenses, total operating expenses, operating income, and operating margin for January through April. The amounts on the Monthly Report worksheet are linked to a separate Source Data worksheet. Management has questioned the April operating income amount, so we will use Excel’s Formula Auditing tools to investigate it. The following screenshot shows the Monthly Report worksheet.

The first tool is Error Checking. Excel can identify several common formula problems, including formulas that are inconsistent with nearby formulas and cells containing certain Excel errors. To use Error Checking, select the Formulas tab on the ribbon. In the Formula Auditing group, select Error Checking.
Error Checking is a useful place to begin, but it will not identify every spreadsheet error. In our example, the incorrect formula contains a valid cell reference. Excel therefore calculates the formula normally. This is an important distinction for accountants because a formula can be free of Excel error messages and still be wrong.
The next tool is Trace Precedents. This shows which cells contribute to the value in a selected cell. On the Monthly Report worksheet, select cell E11, which contains April operating income. From the ribbon, select Formulas, then from the Formula Auditing group, select Trace Precedents. Excel displays arrows showing the cells used in the calculation. Select Trace Precedents again to continue tracing the calculation back through total operating expenses, as shown in the following screenshot.

Trace Precedents can be particularly useful when reviewing financial statements, budgets, forecasts, and reconciliations because it allows the reviewer to visually follow a reported amount back to its supporting calculations. When a precedent is on another worksheet, Excel displays a dashed arrow, as shown in the preceding screenshot. Double-click the dashed arrow to view the referenced worksheet and cell. To remove the arrows when you are finished reviewing, go to the Formulas tab and click Remove Arrows in the Formula Auditing group.
Trace Dependents works in the opposite direction. Instead of starting with a calculated amount and tracing backward, Trace Dependents shows which formulas use a selected cell. For example, go to the Source Data worksheet and select cell E5, which contains the April payroll amount. From the Formulas tab, go to the Formula Auditing group, and select Trace Dependents. Excel shows that the source amount flows to the April payroll amount on the Monthly Report worksheet. This tool can be helpful when an input is changed or found to be incorrect and you need to determine what other calculations may be affected. When you are finished reviewing the arrows, go to the Formulas tab and click Remove Arrows in the Formula Auditing group.
Another useful Formula Auditing tool is Evaluate Formula. This tool allows users to step through a formula one calculation at a time. In our example, return to the Monthly Report worksheet and select cell E8, which contains April marketing expenses. Select the Formulas tab on the ribbon, then select Evaluate Formula from the Formula Auditing group.
The Evaluate Formula dialog box displays the formula and underlines the portion that Excel will evaluate next. Select Evaluate to move through the formula. In this case, the formula in cell E8 refers to cell D6 on the Source Data worksheet, as shown in the following screenshot. On the Source Data worksheet, cell D6 contains the March marketing amount of $36,000. The April marketing amount, located in cell E6, is $38,500.

This is the source of the problem. The formula itself is valid, so Excel does not display an error message. However, it references March rather than April. Errors like this can be difficult to identify because the resulting number may still appear reasonable.
The final tool is Watch Window. Watch Window allows users to monitor selected cells while working in other areas of a workbook. This can be useful when correcting a formula because you can immediately see how the correction affects other calculations.
Before correcting the marketing formula, select the Formulas tab on the ribbon, go to the Formula Auditing group, and select Watch Window. Select Add Watch, click in the desired cell, then select Add. Repeat the process for the April marketing, total operating expenses, and operating income cells from the Monthly Report worksheet. Now correct cell E8 so that it refers to cell E6 on the Source Data worksheet rather than cell D6.
After the correction, April marketing changes from $36,000 to $38,500. Total operating expenses increase from $316,000 to $318,500, and operating income decreases from $156,000 to $153,500. Because the Watch Window updates automatically, you can see the effect of the correction without repeatedly navigating back to the report.
Spreadsheet errors do not always result in #REF!, #VALUE!, or other obvious Excel error messages. A formula that references the wrong month, account, department, or supporting schedule may calculate normally while still producing an incorrect result. Excel’s Formula Auditing tools provide a practical way to investigate these situations. Error Checking can identify common formula problems; Trace Precedents and Trace Dependents show relationships between cells; Evaluate Formula helps users examine calculations step by step; and Watch Window monitors important values while changes are made. Together, these features can make reviewing accounting workbooks more efficient and help identify errors that might otherwise be overlooked.
About the author
Kelly L. Williams, CPA, Ph.D., MBA, is an associate professor of accounting at the Jones College of Business at Middle Tennessee State University.
Submit a question
Do you have technology questions for this column? Or, after reading an answer, do you have a better solution? Send them to jofatech@aicpa.org.
