11.08.2013 Views

Excel's Formula - sisman

Excel's Formula - sisman

Excel's Formula - sisman

SHOW MORE
SHOW LESS

Create successful ePaper yourself

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

Using a relative cell reference<br />

Chapter 3: Working with Names 93<br />

Begin by following these steps to create a named formula that uses a relative reference:<br />

1. Start with an empty worksheet.<br />

2. Select cell A1 (this step is very important).<br />

3. Choose <strong>Formula</strong>s➜Defined Names➜Define Name.<br />

This brings up the New Name dialog box.<br />

4. Type CellToRight in the Name field.<br />

5. Delete the contents of the Refers To field and type the following formula (don’t point to<br />

the cell in the sheet):<br />

=Sheet1!B1<br />

6. Click OK to close the New Name dialog box.<br />

7. Type something (anything) into cell B1.<br />

8. Enter this formula into cell A1:<br />

=CellToRight<br />

You’ll find that the formula in A1 simply returns the contents of cell B1.<br />

Next, copy the formula in cell A1 down a few rows. Then enter some values in column B. You’ll<br />

find that the formula in column A returns the contents of the cell to the right. In other words, the<br />

named formula (CellToRight) acts in a relative manner.<br />

You can use the CellToRight name in any cell (not just cells in column A). For example, if you<br />

enter =CellToRight into cell D12, it returns the contents of cell E12.<br />

To demonstrate that the formula named CellToRight truly uses a relative cell reference, activate<br />

any cell other than cell A1 and display the Name Manager dialog box (see Figure 3-21). You’ll see<br />

that the Refers To field contains a formula that points one cell to the right of the active cell, not<br />

A1. For example, if cell B7 is selected when the Name Manager is displayed, the formula for<br />

CellToRight appears as<br />

=Sheet1!C7

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

Saved successfully!

Ooh no, something went wrong!