18.11.2014 Views

Microsoft Office

You also want an ePaper? Increase the reach of your titles

YUMPU automatically turns print PDFs into web optimized ePapers that Google loves.

Part IV<br />

Using Advanced Excel Features<br />

The following formula doesn’t return #NULL! but displays the contents of cell B9 — which represents the<br />

intersection of the two ranges.<br />

=SUM(B5:B14 A9:F9)<br />

#NUM! errors<br />

A formula returns a #NUM! error if any of the following occurs:<br />

n<br />

n<br />

n<br />

n<br />

You pass a non-numeric argument to a function when a numeric argument is expected.<br />

You pass an invalid argument to a function. For example, this formula returns #NUM!:<br />

=SQRT(-12)<br />

A function that uses iteration can’t calculate a result. Examples of functions that use iteration are<br />

IRR and RATE.<br />

A formula returns a value that is too large or too small. Excel supports values between –1E-307<br />

and 1E+307.<br />

#REF! errors<br />

The #REF! error occurs when a formula uses an invalid cell reference. This error can occur in the following<br />

situations:<br />

n<br />

n<br />

n<br />

You delete a cell that is referenced by the formula. For example, the following formula displays a<br />

#REF! error if row 1, column A, or column B is deleted.<br />

=A1/B1<br />

You copy a formula to a location that invalidates the relative cell references. For example, if you<br />

copy the following formula from cell A2 to cell A1, the formula returns #REF! because it attempts<br />

to refer to a nonexistent cell.<br />

=A1-1<br />

You cut a cell (by choosing Home ➪ Clipboard ➪ Cut) and then paste it to a cell that’s referenced<br />

by a formula. The formula will display #REF!.<br />

#VALUE! errors<br />

The #VALUE! error is very common and can occur under the following conditions:<br />

n<br />

n<br />

n<br />

n<br />

n<br />

An argument for a function is of an incorrect data type, or the formula attempts to perform an<br />

operation using incorrect data. For example, a formula that adds a value to a text string returns<br />

the #VALUE! error.<br />

A function’s argument is a range when it should be a single value.<br />

A custom worksheet function is not calculated. You can use Ctrl+Alt+F9 to force a recalculation.<br />

A custom worksheet function attempts to perform an operation that is not valid. For example,<br />

custom functions can’t modify the Excel environment or make changes to other cells.<br />

You forget to press Ctrl+Shift+Enter when entering an Array formula.<br />

Absolute/relative reference problems<br />

As described in Chapter 11, a cell reference can be relative (for example, A1), absolute (for example, $A$1),<br />

or mixed (for example, $A1 or A$1). The type of cell reference that you use in a formula is relevant only if<br />

the formula will be copied to other cells.<br />

556

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!