Fill data automatically in worksheet cells

Instead of entering data manually on a worksheet, you can use the Auto Fill feature to fill cells with data that follows a pattern or that is based on data in other cells.

This article does not explain how to enter data manually or enter data simultaneously on multiple worksheets. For information about how to manually enter data, see the article Enter data manually in worksheet cells.

What do you want to do?


Automatically repeat values that already exist in the column

If the first few characters that you type in a cell match an existing entry in that column, Excel automatically enters the remaining characters for you. Excel automatically completes only those entries that contain text or a combination of text and numbers. Entries that contain only numbers, dates, or times are not automatically completed.

After Excel completes what you started typing, do one of the following:

  • To accept a proposed entry, press Enter.

The completed entry exactly matches the pattern of uppercase and lowercase letters of the existing entry.

  • To replace the automatically entered characters, continue typing.
  • To delete the automatically entered characters, press Backspace.

 Notes 

Top of Page Top of Page

Turn automatic completion of cell values on or off

If you don't want Excel to automatically complete cell values, you can turn off this feature.

  1. Click the File tab, and then click Options.
  2. Click Advanced, and then under Editing options, select or clear the Enable AutoComplete for cell values check box to turn automatic completion of cell values on or off.

Top of Page Top of Page

Fill data into adjacent cells by using the fill handle

To quickly fill in several types of data series, you can select cells and drag the fill handle (fill handle: The small black square in the lower-right corner of the selection. When you point to the fill handle, the pointer changes to a black cross.) Selected cell with fill handle. To use the fill handle, you select the cells that you want to use as a basis for filling additional cells, and then drag the fill handle across or down the cells that you want to fill.

By default, the fill handle is displayed, but you can hide it, or show it if it's hidden.

After you drag the fill handle, the Auto Fill Options button is displayed. If you don't want to display the Auto Fill Options button every time that you drag the fill handle, you can turn it off. Likewise, if the Auto Fill Options button does not appear when you drag the fill handle, you might want to turn it on.

Show or hide the fill handle

  1. Click the File tab, and then click Options.
  2. Click Advanced, and then under Editing options, select or clear the Enable fill handle and cell drag-and-drop check box to show or hide the fill handle.
  3. To avoid replacing existing data when you drag the fill handle, make sure that the Alert before overwriting cells check box is selected. If you don't want to see a message about overwriting nonblank cells, you can clear this check box.

Top of Page Top of Page

Drag the fill handle to fill data into adjacent cells

  1. Select the cells that contain the data that you want to fill into adjacent cells.
  2. Drag the fill handle across the cells that you want to fill.
  3. To change how you want to fill the selection, click Auto Fill Options Button image, and then click the option that you want.

For example, you can choose to fill just cell formats by clicking Fill Formatting Only, or you can choose to fill just the contents of a cell by clicking Fill Without Formatting.

 Note   If you drag the fill handle up or to the left of a selection and stop in the selected cells without going past the first column or the top row in the selection, Excel deletes the data within the selection. You must drag the fill handle out of the selected area before releasing the mouse button.

Top of Page Top of Page

Turn Auto Fill Options on or off

  1. Click the File tab, and then click Options.
  2. Click Advanced, and then under Cut, copy, and paste, select or clear the Show Paste Options button when content is pasted check box to turn this option on or off.

Top of Page Top of Page

Fill data into adjacent cells by using the Fill command

You can use the Fill command to fill the active cell or a selected range with the contents of an adjacent cell or range.

  1. Do one of the following:
  • To fill the active cell with the contents of an adjacent cell, select an empty cell that is below, to the right, above, or to the left of the cell that contains the data that you want to use to fill the empty cell.
  • To fill multiple adjacent cells, select the cell with the contents you want to fill and the adjacent cells into which you want to fill the content.
  1. On the Home tab, in the Editing group, click Fill, and then click Down, Right, Up, or Left.

Editing group on the Home tab

Keyboard shortcut    To quickly fill a cell with the contents of an adjacent cell, you can press Ctrl+D to fill from the cell above or Ctrl+R to fill from the cell to the left.

Top of Page Top of Page

Fill formulas into adjacent cells

  1. Select the cell that contains the formula that you want to fill into adjacent cells.
  2. Drag the fill handle (fill handle: The small black square in the lower-right corner of the selection. When you point to the fill handle, the pointer changes to a black cross.) Fill handle across the cells that you want to fill.
  3. To choose how you want to fill the selection, click Auto Fill Options Button image, and then click the option that you want.

 Note   If automatic workbook calculation is not enabled, formulas will not recalculate when you fill cells. To check your workbook calculation options, do the following:

  1. Click the File tab.
  2. Under Excel, click Options, and then click the Formulas category.
  3. Under Calculation options, look under Workbook Calculation.

 Notes 

  • You can also fill the active cell with the formula of an adjacent cell by using the Fill command (on the Home tab in the Editing group), or by pressing Ctrl+D to fill a cell below or Ctrl+R to fill a cell to the right of the cell containing the formula.
  • You can automatically fill a formula downward, for all adjacent cells that it applies to, by double-clicking the fill handle of the first cell that contains the formula. For example, cells A1:A15 and B1:B15 contain numbers, and you type the formula =A1+B1 in cell C1. To copy that formula into cells C2:C15, select cell C1 and double-click the fill handle.

Top of Page Top of Page

Fill in a series of numbers, dates, or other built-in series items

You can quickly fill cells in a range with a series of numbers or dates, or with a built-in series for days, weekdays, months, or years by using the fill handle or the Fill command.

Fill cells with a series by using the fill handle

  1. Select the first cell in the range that you want to fill.
  2. Type the starting value for the series.
  3. Type a value in the next cell to establish a pattern.

For example, if you want the series 1, 2, 3, 4, 5..., type 1 and 2 in the first two cells. If you want the series 2, 4, 6, 8..., type 2 and 4. If you want the series 2, 2, 2, 2..., you can leave the second cell blank.

  1. Select the cell or cells that contain the starting values.
  2. Drag the fill handle Selected cell with fill handle across the range that you want to fill.

To fill in increasing order, drag down or to the right. To fill in decreasing order, drag up or to the left.

 Notes 

Top of Page Top of Page

Fill cells with a series by using the Fill command

  1. Select the first cell in the range that you want to fill.
  2. Type the starting value for the series.
  3. On the Home tab, in the Editing group, click Fill, and then click Series.

Editing group on the Home tab

  1. Under Type, click one of the following options:
    • Linear    Creates a series that is calculated by adding the value in the Step value box to each cell value in turn.
    • Growth    Creates a series that is calculated by multiplying the value in the Step value box by each cell value in turn.
    • Date    Creates a series that fills date values incrementally by the value in the Step value box and is dependent on the unit specified under Date unit.
    • AutoFill    Creates a series that produces the same results as dragging the fill handle.
  2. To establish a pattern for the series, in the Step value and Stop value boxes, type the values you want.

Top of Page Top of Page

Examples of series that you can fill

When you fill a series, the selections are extended as shown in the following table. In this table, items that are separated by commas are contained in individual adjacent cells on the worksheet.

Initial selection Extended series
1, 2, 3 4, 5, 6,...
9:00 10:00, 11:00, 12:00,...
Mon Tue, Wed, Thu,...
Monday Tuesday, Wednesday, Thursday,...
Jan Feb, Mar, Apr,...
Jan, Apr Jul, Oct, Jan,...
Jan-07, Apr-07 Jul-07, Oct-07, Jan-08,...
15-Jan, 15-Apr 15-Jul, 15-Oct,...
2007, 2008 2009, 2010, 2011,...
1-Jan, 1-Mar 1-May, 1-Jul, 1-Sep,...
Qtr3 (or Q3 or Quarter3) Qtr4, Qtr1, Qtr2,...
text1, textA text2, textA, text3, textA,...
1st Period 2nd Period, 3rd Period,...
Product 1 Product 2, Product 3,...

Top of Page Top of Page

Fill data by using a custom fill series

To make entering a particular sequence of data (such as a list of names or sales regions) easier, you can create a custom fill series. A custom fill series can be based on a list of existing items on a worksheet, or you can type the list from scratch. You cannot edit or delete a built-in fill series (such as a fill series for months and days), but you can edit or delete a custom fill series.

 Note   A custom list can only contain text or text mixed with numbers.

Use a custom fill series based on an existing list of items

  1. On the worksheet, select the list of items that you want to use in the fill series.
  2. Click the File tab, and then click Options.
  3. Click Advanced, and then under General, click the Edit Custom Lists button.
  4. Verify that the cell reference of the list of items that you selected is displayed in the Import list from cells box, and then click Import.

The items in the list that you selected are added to the Custom lists box.

  1. Click OK twice.
  2. On the worksheet, click a cell, and then type the item in the custom fill series that you want to use to start the list.
  3. Drag the fill handle (fill handle: The small black square in the lower-right corner of the selection. When you point to the fill handle, the pointer changes to a black cross.) Selected cell with fill handle across the cells that you want to fill.

Top of Page Top of Page

Use a custom fill series based on a new list of items

  1. Click the File tab, and then click Options.
  2. Click Advanced, and then under General, click Edit Custom Lists.
  3. In the Custom lists box, click NEW LIST, and then type the entries in the List entries box, starting with the first entry.
  4. Press Enter after each entry.
  5. When the list is complete, click Add, and then click OK twice.
  6. On the worksheet, click a cell, and then type the item in the custom fill series that you want to use to start the list.
  7. Drag the fill handle Selected cell with fill handle across the cells that you want to fill.

Top of Page Top of Page

Edit or delete a custom fill series

  1. Click the File tab, and then click Options.
  2. Click Advanced category, and then under General, click Edit Custom Lists.
  3. In the Custom lists box, select the list that you want to edit or delete, and then do one of the following:
    • To edit the fill series, make the changes that you want in the List entries box, and then click Add.
    • To delete the fill series, click Delete.

Top of Page Top of Page

 
 
Applies to:
Excel 2013