Troubleshooting Formula Errors


When you enter a formula incorrectly into a cell , Excel displays an error message. Formulas can be entered incorrectly for a variety of reasons. Typing mistakes are usually the biggest cause of formula errors. If you mistype an operator or function name , Excel returns an error instead of the desired result.

The next biggest reason that formulas return error values is improper syntax. Syntax is everything when you're entering formulas; your formula must conform exactly to Excel's format. For example, if your formula contains a blank space, the formula errors out.

Excel often provides information about the errors it finds in formulas. With Excel's help, you can usually fix the problem. If the formula looks okay but still isn't producing the results you expect, check it over. If you inadvertently reference the wrong cell or use the wrong function, such as SUM instead of AVERAGE , your answer will not be correct.

graphics/alarmclock_icon.gif

Garbage in, garbage out! If the data you're using for your calculations is bad, the results of the formulas will be wrong as well. Make sure that you're using current data to perform your calculation. Computing a foreign currency rate on last month's rate is probably a waste of time.


Table 5.3 shows some common formula errors with explanations .

Table 5.3. Common Formula Errors

Error

Description

####

The column is not wide enough to accommodate the data. Widen the column to see the entire cell contents by clicking on the column border and dragging it to increase the size of the column width. You can also double-click the column border to automatically size the column to exactly fit the data. The error disappears.

#DIV/0!

The formula is trying to divide a number by 0 or an empty cell.

#NAME?

The formula contains incorrectly spelled cell or function names .

#VALUE!

The formula contains non-numeric data, or cell or function names that cannot be used in the formula.

#REF!

The formula contains a reference to a cell that is invalid. Often, this means you deleted a referenced cell.

Circular reference

Results when one of the cells you are referencing in the formula is the cell in which you want the formula to appear. All the other items in this table show up as codes in the cells , while the circular reference error shows up as an error message.



Sams Teach Yourself Microsoft Office Excel 2003 in 24 Hours
Sams Teach Yourself Microsoft Office Excel 2003 in 24 Hours (Sams Teach Yourself in 24 Hours)
ISBN: 1435276337
EAN: 2147483647
Year: 2003
Pages: 279
Authors: Trudi Reisner

flylib.com © 2008-2017.
If you may any questions please contact us: flylib@qtcs.net