Smarter Fills with AutoFill

Even if the only fill Excel performed was the copying of data across rows and columns , the data fill would still be beneficial. Excel goes an extra step, however: It performs smart fills with a feature known as AutoFill . AutoFill is perhaps the single reason why Excel took over the spreadsheet market a few years ago and has been the leader ever since. When you use AutoFill, Excel examines and completes data you have entered.

The five-year pro forma period you were setting up in the preceding section included the years 2003 through 2007, for example. You can type 2003 under the first Year title and type 2004 under the second title. Select both cells, and then drag the fill handle right three more cells . When you release the mouse button, you see that Excel properly fills in the remaining years (as shown in Figure 8.4).

Figure 8.4. Excel's AutoFill feature knew which years to fill.



If you had selected only one cell , Excel would have copied that cell's contents across the worksheet. Excel needed to see the two selected cells to notice the trend. Having said that, if you only select one cell with a date such as 2003 and drag the fill handle by clicking the right mouse button instead of the left, a menu pops up that gives you the option of a Fill Series that will extend the fill properly by adding one to each year.

The years in Figure 8.4 were right-aligned under the right-aligned titles in the previous row. To do this, you only need to select the year titles and then click the Align Right toolbar button to right-align the years so that they appear directly above the year values.

Excel offers even better tools for automatic cell filling than having to hold the left or right mouse button and then using the drag-and-fill method you just saw. If you want to use AutoFill to increment cells by a single number, as you are doing here with the years, you don't really need to select two cells first. If you select any cell that contains a number, press Ctrl, and drag the fill handle, Excel adds a one to each cell to which you extend. Therefore, you could fill four years from 2003 through 2007 just by pressing Ctrl before you drag the first year's fill handle to the right.

As you know, Excel works with text as well as with numeric values. AutoFill recognizes many common text trends, including the following:

  • Days of the week names

  • Days of the week abbreviations (such as Mon, Tue)

  • Month names

  • Month abbreviations (such as Jan, Feb)

Suppose that you want to list month names down the left of the pro forma sheet, starting in cell A5, because you need to report each month's totals for those five years. All you need to do is type January for the first month name , and drag that cell's fill handle to the twelfth cell below. Figure 8.5 shows the result.

Figure 8.5. Let Excel fill in the series of month names.


Sams Teach Yourself Microsoft Office 2003 in 24 Hours
Sams Teach Yourself Microsoft Office 2003 in 24 Hours
ISBN: 0672325535
EAN: 2147483647
Year: 2003
Pages: 272
Authors: Greg Perry © 2008-2017.
If you may any questions please contact us: