Excel Auditing Tools (Table of Contents)
Formula Auditing Tools in Excel
As we all know that MS Excel is mainly used and popular for its function, formulas, and macros. But what if we are getting some issue while writing the formula or we are not able to get the desired result in a cell as we have not formulated the function correctly. That is why MS Excel provides a lot of built-in tools for formula auditing and troubleshooting formulas.
The tools which we can use for auditing and formula troubleshooting in excel are:
- Trace Precedents
- Trace Dependents
- Remove Arrows
- Show Formulas
- Error Checking
- Evaluate Formula
Examples of Auditing Tools in Excel
We will learn about each of the above auditing tools one by one using some examples in excel.
#1 – Trace Precedents
Suppose we have the following formula in D2 cell for calculating interest for an FD account in a bank.
Now if we want to check the precedents for the formula, then we can press F2 to get into edit mode after selecting the required cell so that precedents cells got bordered with various colors and in the same color, cell reference is written.
We can see that A2 is written with blue color in the formula cell and with the same color, A2 cell is bordered.
In the same way,
B2 cell has a red color.
C2 cell has a purple color.
This way is good but we have a more convenient way to check precedents for the formula cell.
To trace precedents, we can use the ‘Trace Precedents’ command in the ‘Formula Auditing’ group under the ‘Formulas’ tab.
We just need to select the formula cell and then click on the ‘Trace Precedents’ command. Then you can see an arrow as shown below.
We can see that precedent cells are highlighted with blue dots.
#2 – Remove Arrows
To remove these arrows, we can use the ‘Remove Arrows’ command in the ‘Formula Auditing’ group under the ‘Formulas’ tab.
#3 – Trace Dependents
This command is used to trace the cell which is dependent on the selected cell.
Let’s use this command using an example.
Suppose, we have 4 amounts that we can invest. We want to know that how much interest, we can earn if we invest.
We can see that in the above image, we have applied a formula for calculating interest with Amount 1 and specified interest percentage and duration in the year.
We will copy the formula and paste it in the adjacent cells for amount 2, amount 3 and amount 4. It can be noticed that we have used an absolute cell reference for G2 and I2 cells as we do not want to get changed these references while copying and pasting.
Now if we want to check if which cells are dependent on G2 cell. Then we will use the ‘Trace Dependents’ command available in the ‘Formula Auditing’ group under the ‘Formulas’ tab.
Select the G2 cell and click on the ‘Trace Dependents’ command.
In the above image, we can see the arrow lines where arrows indicate which cells are dependent on the cells.
Now we will remove the arrow lines using ‘Remove Arrows’ command.
#4 – Show Formulas
We can use this command to display formulas written in the excel sheet. The shortcut key for this command is ‘Ctrl+~’.
See the below image where we can see the formulas in the cell.
We can see that instead of formula results, we are able to see the formula. For amounts, currency format is not visible.
To deactivate this mode, press ‘Ctrl+~’ again or we can click on ‘Show Formulas’ command.
#5 – Error Checking
This command is used to check the error in the specified formula or function.
Let’s take an example to understand this.
See the below image where we have an error in the function applied for the result.
Now to solve this error, we will use the ‘Error Checking‘ command.
Steps would be:
Select the cell where the formula or function is written then click on ‘Error Checking’.
As we click on command, we get the following dialog box captioned as ‘Error Checking’.
In the above dialog box, it can be seen that there is some invalid name error. The formula contains unrecognized text.
If we are using the function or constructed the formula for the first time, then we can click on ‘Help on this Error’ button which will open the help page for the function in the browser where we can see all the related information online and understand the cause and find all the possible solutions.
As we click on this button now, we will find the following page.
On this page, we get to know about the error that this error comes when
- The formula refers to a name that has not been defined. It means the function name or named range has not been defined earlier.
- The formula has a typo in the defined name. It means that there is some typing error.
If we have used the function earlier and know about the function, then we can click on the ‘Show Calculation Steps’ button to check how the evaluation of the function results in an error.
If we click on this button, the following steps are displayed:
- The following dialog box displays when we click on the ‘Show Calculation Steps’ button.
- After clicking on the ‘Evaluate’ button, the underlined expression i.e., ‘IIF’ gets evaluated and gives the following information as displayed in the dialog box.
As we can see in the above image, the ‘IIF’ expression evaluated to be an error which is ‘#NAME?’. Now next expression or reference i.e., B2 got underlined. If we click on the ‘Step In’ button then we can check internal details of a step also and come out by pressing the ‘Step Out’ button.
- Now we will click on the ‘Evaluate’ button to check the result of the underlined expression. After clicking, we get the following result.
- After clicking on the ‘Evaluate’ button, we get the result of the function applied.
- We got an error as a result and as we analyzed the function step by step, we got to know that there is some error in ‘IIF’ For this, we can use the ‘Insert Function’ command in ‘Function Library’ group under ‘Formulas’ tab.
As we typed the ‘if’, we got a similar function in the list, we need to choose the appropriate function.
After selecting the ‘If’ function, we get the following dialog box with text boxes for argument and we will fill all the details.
After clicking on ‘Ok’, we get the result in the cell. We will copy down the function for all the students.
Things to Remember
- If we activate the ‘Show Formulas’ command, the dates are also shown in the number format.
- While evaluating the formula, we can also use F9 as a shortcut key.
This has been a guide to Auditing Tools in Excel. Here we discuss 5 different types of auditing tools including Show Formulas, Error Checking, Trace Precedents, etc with some examples and downloadable excel template. You may learn more about excel from the following articles –