Menu
Social Buttons

Excel Tutorial

Excel Formula Audit

Find and correct errors in formulas

Formula errors can result in error values as well as cause unintended results. Below are some tools to help find and investigate errors.

If a formula cannot properly evaluate a result, Microsoft Excel will display an error value. Each error type has different causes, and different solutions.

  1. Error Value#####
  2. Error Value#VALUE!
  3. Error Value#DIV/0!
  4. Error Value#NAME?
  5. Error Value#N/A
  6. Error ValueREF!
  7. Error Value#NUM!
  8. Error Value#NULL!
  9. Correct common problems in formulas
  10. Mark common formula problems on the worksheet and correct them there

Error Value#####

Occurs when a column is not wide enough, or a negative date or time is used.

Possible causes and solutions 1. Column is not wide enough to display the content

2. Dates and times are negative numbers

Error Value#VALUE!

Occurs when the wrong type of argument (The values that a function uses to perform operations or calculations. The type of argument a function uses is specific to the function. Common arguments that are used within functions include numbers, text, cell references, and names.) or operand (Items on either side of an operator in a formula. In Excel, operands can be values, cell references, names, labels, and functions.) is used.

Possible causes and solutions Entering text when the formula requires a number or a logical value, such as TRUE or FALSE

Microsoft Excel cannot translate the text into the correct data type. Make sure the formula or function is correct for the required operand or argument, and that the cells that are referenced by the formula contain valid values. For example, if cell A5 contains a number and cell A6 contains the text "Not available", the formula =A5+A6 will return the error #VALUE!. Entering or editing an array formula, and then pressing ENTER

Select the cell or range of cells that contains the array formula (array formula: A formula that performs multiple calculations on one or more sets of values, and then returns either a single result or multiple results. Array formulas are enclosed between braces { } and are entered by pressing CTRL+SHIFT+ENTER.), press F2 to edit the formula, and then press CTRL+SHIFT+ENTER. Entering a cell reference, a formula, or a function as an array constant

Make sure the array constant (A value that is not calculated and, therefore, does not change. For example, the number 210, and the text "Quarterly Earnings" are constants. An expression, or a value resulting from an expression, is not a constant.) is not a cell reference, formula, or function. Supplying a range to an operator or a function that requires a single value, not a range

Using a matrix that is not valid in one of the matrix worksheet functions

Make sure the dimensions of the matrix (matrix: A rectangular array of values or a range of cells that is combined with other arrays or ranges to produce multiple sums or products. Excel has predefined matrix functions that can produce the sums or products.) are correct for the matrix arguments. Running a macro that enters a function that returns #VALUE!

Make sure the function is not using an incorrect argument.

Error Value#DIV/0!

Occurs when a number is divided by zero (0). Possible causes and solutions

Error Value#NAME?

Occurs when Microsoft Excel doesn't recognize text in a formula.

Click the cell that displays the error, click the button that appears, and then click Trace Error if it appears. Possible causes and solutions.

Error Value#N/A

Occurs when a value is not available to a function or formula.

Click the cell that displays the error, click the button that appears , and then click Trace Error if it appears.

Possible causes and solutions.

Error ValueREF!

Occurs when a cell reference (The set of coordinates that a cell occupies on a worksheet. For example, the reference of the cell that appears at the intersection of column B and row 3 is B3.) is not valid.

Click the cell that displays the error, click the button that appears , and then click Trace Error if it appears. Possible causes and solutions

Error Value#NUM!

Occurs with invalid numeric values in a formula or function.

Click the cell that displays the error, click the button that appears , and then click Trace Error if it appears. Possible causes and solutions

Error Value#NULL!

Occurs when you specify an intersection of two areas that do not intersect. The intersection operator is a space between references.

Click the cell that displays the error, click the button that appears , and then click Trace Error if it appears. Possible causes and solutions

Correct common problems in formulas

Like a grammar checker, Microsoft Excel uses certain rules to check for problems in formulas. These rules do not guarantee that your spreadsheet is problem-free, but they can go a long way to finding common mistakes. You can turn these rules on or off individually. Both methods used below present the same options.

Change which common problems Excel checks for On the Tools menu, click Options, and then click the Error Checking tab.
Select or clear the check box you want.

Correct common formula problems one at a time, like a spelling checker Caution:If the worksheet has previously been checked for problems and the problems were ignored, the problems will not appear until the ignored problems have been reset.

Mark common formula problems on the worksheet and correct them there

If a cell contains a formula that breaks one of the rules, a triangle appears in the top-left corner of the cell.