On Errors: Fixing Common Excel Entry Errors
On Errors: Fixing Common Excel Entry Errors
On Errors
2
Page 1 of 8
Fixing Common Excel Entry Errors
Syntax Error
• when Excel identifies that you haven't typed a formula
correctly.
– missed a parenthesis, failed to use a required argument for a
function, or misspelled the function name.
– Check your typing, and select the Insert -> Function command if
needed to get some help in argument entry.
4
Page 2 of 8
#DIV/0! error in cell
When the formula attempts to divide by zero or
divide by a blank cell.
• If the error happens simply because you haven't yet
entered the necessary data in the referenced cell,
you can ignore it
6
Page 3 of 8
#NAME? error in cell
If you refer to a range name that doesn't exist
• referencing a range that was deleted
8
Page 4 of 8
#VALUE! error in cell
When you use the wrong type of data for an
argument.
="Cat"+"Dog"
– you can't sum text entries
#REF!
• when you have a reference in a formula to a cell or range that has been
deleted. Or it can occur if you have a formula like =SUM(Costs) and
then you delete the range name Costs.
#NAME?
• when you use a cell reference, a range name, or a function name that is
not recognized by Excel.
– if you have the formula =SUM(Costs), and there is no range name Costs,
you will get the #NAME? error
10
Page 5 of 8
Error Codes in Excel
#NUM!
• When you provide a non-valid number as an argument to a function.
– =SQRT(-3) will produce this error because the square root is defined only for
nonnegative numbers.
#N/A
• typically occurs in a VLOOKUP formula, when it is looking for an exact match
and there is none.
– Check out the site http://www.ozgrid.com/forum/showthread.php?t=27083&page=1
for ways, to deal with this issue.
#NULL!
• when two or more cell references are not separated correctly in a formula.
– =SUM(A1 A2) would give this error because A1 and A2 should be separated by a
comma or a colon, not a space.
#DIV/0!
• the easiest one to remember: division by 0 is never allowed.
11
Error What to Do
####### Widen the column or ensure that dates and times are not negative
(i.e., prior to January 1, 1900).
#DIV/0 The formula is trying to divide by 0-check that you have entered the
correct cell reference or that you have not deleted data by mistake.
12
Page 6 of 8
Error What to Do
#NULL! Make sure that you have entered references to cell ranges
correctly-the formula may be referring to a nonexistent intersection
between two ranges. Also check that you are using the correct
range operator and that you have not entered a space instead of a
comma.
#NUM! Check that the arguments in the function are numbers or cells
containing numbers. If you are using an iteration function like IRR or
RATE, Excel may not be able to find a result; you can try increasing
the number of iterations in Excel Options. A #NUM! error will also
appear if a number is too large or too small for Excel to calculate.
#REF! Check the cell references-you may have deleted a cell or cut or
copied the formula, rendering any references invalid. If you are
using an OLE link, make sure that the program is running or you
may be linking to a DDE topic that is not available
#VALUE! Check that the arguments in the function are the correct data type,
that you have used the correct operands, or that you have entered
an array formula properly
13
14
Page 7 of 8
IS Functions
ISBLANK: ISNA:
• returns TRUE if the argument is blank; • returns TRUE if the argument is #N/A;
returns FALSE otherwise returns FALSE otherwise
ISERR: ISNONTEXT:
• returns TRUE if the argument contains • returns TRUE if the argument is non-text
any error code except #N/A; returns (or is blank); returns FALSE otherwise
FALSE otherwise (where non-text could be numbers,
dates, or error codes)
ISERROR:
• returns TRUE if the argument contains ISNUMBER:
any error code, including #N/A; returns • returns TRUE if the argument is a
FALSE otherwise numeric value; returns FALSE otherwise
ISEVEN: ISODD:
• returns TRUE if the argument is an even • returns TRUE if the argument is an odd
integer (after deleting the decimal part if integer (after deleting the decimal part if
there is one); returns FALSE otherwise there is one); returns FALSE otherwise
ISLOGICAL: ISREF:
• returns TRUE if the argument is one of • returns TRUE if the argument is a valid
the logical values TRUE or FALSE; range address or range name; returns
returns FALSE otherwise FALSE otherwise
ISTEXT:
• returns TRUE if the argument is text;
returns FALSE otherwise
15
Array Formulas
Array = List
• typically a list of cells in a range
– The range could include a single row or multiple rows, and it could
include a single column or multiple column
Two rules
• First select the entire range where the results will be placed
• After entering the formula, press Ctrl+Shift+Enter (all three
keys at once), not just Enter.
– So some people call these CSE formulas
16
Page 8 of 8