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.

Chapter 3: Working with Names 99<br />

Figure 3-23: You can enter a named formula that contains a 12-item array into 12 adjacent cells.<br />

Creating a dynamic named formula<br />

A dynamic named formula is a named formula that refers to a range not fixed in size. You may<br />

find this concept difficult to grasp, so a quick example is in order.<br />

Examine the worksheet shown in Figure 3-24. This sheet contains a listing of sales by month,<br />

through the month of May.<br />

Figure 3-24: You can use a dynamic named formula to represent the sales data in column B.<br />

Suppose you want to create a name (SalesData) for the data in column B, and you don’t want<br />

this name to refer to empty cells. In other words, the reference for the SalesData range would<br />

change each month as you add a new sales figure. You could, of course, use the Name Manager<br />

dialog box to change the range name definition each month. Or, you could create a dynamic<br />

named formula that changes automatically as you enter new data.<br />

To create a dynamic named formula, start by re-creating the worksheet shown in Figure 3-24.<br />

Then follow these steps:<br />

1. Bring up the New Name dialog box.<br />

2. Type SalesData in the Name field.<br />

3. Type the following formula in the Refers To field:<br />

=OFFSET(Sheet1!$B$1,0,0,COUNTA(Sheet1!$B:$B),1)<br />

4. Click OK to close the New Name dialog box.

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

Saved successfully!

Ooh no, something went wrong!