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.

Part II<br />

Working with Formulas and Functions<br />

Making an exact copy of a formula<br />

When you copy a formula, Excel adjusts its cell references when you paste the formula to a different location.<br />

Sometimes, you may want to make an exact copy of the formula. One way to do this is to convert the<br />

cell references to absolute values, but this isn’t always desirable. A better approach is to select the formula in<br />

Edit mode and then copy it to the Clipboard as text. You can do this in several ways. Here’s a step-by-step<br />

example of how to make an exact copy of the formula in A1 — and copy it to A2:<br />

1. Double-click A1 (or press F2) to get into Edit mode.<br />

2. Drag the mouse to select the entire formula. You can drag from left to right or from right to<br />

left. To select the entire formula with the keyboard, press Shift+Home.<br />

3. Choose Home ➪ Clipboard ➪ Copy(or press Ctrl+C). This copies the selected text (which<br />

will become the copied formula) to the Clipboard.<br />

4. Press Esc to get out of Edit mode.<br />

5. Select cell A2.<br />

6. Home ➪ Clipboard ➪ Paste (or press Ctrl+V) to paste the text into cell A2.<br />

You also can use this technique to copy just part of a formula, if you want to use that part in another formula.<br />

Just select the part of the formula that you want to copy by dragging the mouse, and then use any of<br />

the available techniques to copy the selection to the Clipboard. You can then paste the text to another cell.<br />

Formulas (or parts of formulas) copied in this manner won’t have their cell references adjusted when they<br />

are pasted to a new cell. That’s because the formulas are being copied as text, not as actual formulas.<br />

TIP<br />

You can also convert a formula to text by adding an apostrophe (‘) in front of the equal sign.<br />

Then, copy the formula as usual and paste it to its new location. Remove the apostrophe from<br />

the pasted formula, and it will be identical to the original formula. And don’t forget to remove the apostrophe<br />

from the original formula as well.<br />

Converting formulas to values<br />

If you have a range of formulas that will always produce the same result (that is, dead formulas), you may<br />

want to convert them to values. If, say, range A1:A20 contains formulas that have calculated results that will<br />

never change — or that you don’t want to change. For example, if you use the RANDBETWEEN function to<br />

create a set of random numbers and you don’t want Excel to recalculate those random numbers each time<br />

you press Enter, you can convert the formulas to values. Just follow these steps:<br />

1. Select A1:A20.<br />

2. Choose Home ➪ Clipboard ➪ Copy (or press Ctrl+C).<br />

3. Choose Home ➪ Clipboard ➪ Paste Values<br />

4. Press Esc to cancel Copy mode.<br />

204

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

Saved successfully!

Ooh no, something went wrong!