18.11.2014 Views

Microsoft Office

Create successful ePaper yourself

Turn your PDF publications into a flip-book with our unique Google optimized e-Paper software.

Introducing Formulas and Functions 11<br />

Editing Formulas<br />

After you’ve entered a formula, you can (of course) edit that formula. You may need to edit a formula if you<br />

make some changes to your worksheet and then have to adjust the formula to accommodate the changes.<br />

Or the formula may return an error value, in which case you edit the formula to correct the error.<br />

The following are some of the ways to get into cell edit mode:<br />

TIP<br />

n<br />

n<br />

n<br />

n<br />

Double-click the cell, which enables you to edit the cell contents directly in the cell.<br />

Press F2, which enables you to edit the cell contents directly in the cell.<br />

Select the cell that you want to edit, and then click in the Formula bar. This enables you to edit<br />

the cell contents in the Formula bar.<br />

If the cell contains a formula that returns an error, Excel will display a small triangle in the upperleft<br />

corner of the cell. Activate the cell, and you’ll see a Smart Tag. Click the Smart Tag, and you<br />

can choose one of the options for correcting the error. (The options will vary according to the<br />

type of error in the cell.)<br />

You can control whether Excel displays these formula-error-checking Smart Tags in the<br />

Formulas section of the Excel Options dialog box. To display this dialog box, select <strong>Office</strong> ➪<br />

Excel Options. If you remove the check mark from Enable Background Error Checking, Excel no longer displays<br />

these Smart Tags.<br />

While you’re editing a formula, you can select multiple characters either by dragging the mouse cursor over<br />

them or by pressing Shift while you use the direction keys.<br />

TIP<br />

If you have a formula that you can’t seem to edit correctly, you can convert the formula to text<br />

and tackle it again later. To convert a formula to text, just remove the initial equal sign (=).<br />

When you’re ready to try again, type the initial equal sign to convert the cell contents back to a formula.<br />

Using Cell References in Formulas<br />

Most formulas you create include references to cells or ranges. These references enable your formulas to<br />

work dynamically with the data contained in those cells or ranges rather than being restricted to fixed values.<br />

For example, if your formula refers to cell A1 and you change the value contained in A1, the formula<br />

result changes to reflect the new value. If you didn’t use references in your formulas, you would need to edit<br />

the formulas themselves in order to change the values used in the formulas.<br />

Using relative, absolute, and mixed references<br />

When you use a cell (or range) reference in a formula, you can use three types of references:<br />

n<br />

n<br />

n<br />

Relative: The row and column references can change when you copy the formula to another cell<br />

because the references are actually offsets from the current row and column.<br />

Absolute: The row and column references do not change when you copy the formula because the<br />

reference is to an actual cell address.<br />

Mixed: Either the row or column reference is relative, and the other is absolute.<br />

187

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

Saved successfully!

Ooh no, something went wrong!