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 />

n<br />

n<br />

Circular references: A circular reference occurs when a formula refers to its own cell, either<br />

directly or indirectly. Circular references are useful in a few cases, but most of the time a circular<br />

reference indicates a problem.<br />

Array formula entry error: When entering (or editing) an Array formula, you must use<br />

Ctrl+Shift+Enter to enter the formula. If you fail to do so, Excel doesn’t recognize the formula as<br />

an Array formula, and you may get an error or incorrect results.<br />

n Incomplete calculation errors: The formulas simply aren’t calculated fully. <strong>Microsoft</strong> has<br />

acknowledged some problems with Excel’s calculation engine in some versions of Excel. To ensure<br />

that your formulas are fully calculated, use Ctrl+Alt+F9.<br />

Syntax errors are usually the easiest to identify and correct. In most cases, you’ll know when your formula<br />

contains a syntax error. For example, Excel won’t permit you to enter a formula with mismatched parentheses.<br />

Other syntax errors also usually result in an error display in the cell.<br />

The following sections describe common formula problems and offers advice on identifying and correcting<br />

them.<br />

Mismatched parentheses<br />

In a formula, every left parenthesis must have a corresponding right parenthesis. If your formula has mismatched<br />

parentheses, Excel usually won’t permit you to enter it. An exception to this rule involves a simple<br />

formula that uses a function. For example, if you enter the following formula (which is missing a closing<br />

parenthesis), Excel accepts the formula and provides the missing parenthesis.<br />

=SUM(A1:A500<br />

A formula may have an equal number of left and right parentheses, but the parentheses may not match<br />

properly. For example, consider the following formula, which converts a text string such that the first character<br />

is uppercase and the remaining characters are lowercase. This formula has five pairs of parentheses,<br />

and they match properly.<br />

=UPPER(LEFT(A1))&RIGHT(LOWER(A1),LEN(A1)-1)<br />

The following formula also has five pairs of parentheses, but they are mismatched. The result displays a syntactically<br />

correct formula that simply returns the wrong result.<br />

=UPPER(LEFT(A1)&RIGHT(LOWER(A1),LEN(A1)-1))<br />

Often, parentheses that are in the wrong location will result in a syntax error — which is usually a message<br />

that tells you that you entered too many or too few arguments for a function.<br />

TIP<br />

Excel can help you out with mismatched parentheses. When you’re editing a formula and you<br />

move the cursor over a parenthesis, Excel displays it (and its matching parenthesis) in bold for<br />

about one-half second. In addition, Excel color codes nested parentheses while you are editing a formula.<br />

Cells are filled with hash marks<br />

A cell is filled with a series of hash marks (#) for one of two reasons:<br />

n<br />

n<br />

The column is not wide enough to accommodate the formatted numeric value. To correct it, you<br />

can make the column wider or use a different number format.<br />

The cell contains a formula that returns an invalid date or time. For example, Excel doesn’t support<br />

dates prior to 1900 or the use of negative time values. Attempting to display either of these<br />

values results in a cell filled with hash marks. Widening the column won’t fix it.<br />

552

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

Saved successfully!

Ooh no, something went wrong!