Sometimes you may find that you want to create a series of numbers very quickly when creating a spreadsheet, without having to manually type each number in the cells, and this can be done by using autofill, which is also sometimes simply known as “fill”.
To automatically create a series in Excel, do the following:
- Type the beginning values of your series into two adjacent cells (for example the numbers 1 and 2), and highlight the cells with these values
- Click and hold the fill handle (small square at the bottom right of a highlighted cell)
- Then drag the fill handle down until you have reached the end of your series, and release your mouse click
In this picture you can see that when your cursor is hovered over the small blue square at the bottom right of a cell selection, the cursor turns into a cross / plus sign, and this is what is called the “fill handle”.
When using autofill and dragging the fill handle downwards to fill values through a column/vertical range, this is referred to as “fill down”.
When using autofill and dragging the fill handle to the right to fill values through a row/horizontal range, this is referred to as “fill right”.
(In Excel, if you hold the “Ctrl” key while using the fill handle, instead of creating a series it will simply duplicate the exact same value over and over, quickly and easily. This is not what this article is focused on but it can come in handy sometimes.)
Note that with any series that can be created vertically… you can also create the same series horizontally by clicking and dragging the fill handle right instead of downward. We will go over this briefly in this article but for the most part we will stick to creating vertical lists.
Another way that you can use autofill, is copy formulas in your Excel spreadsheet.
Below, I will show you how to create a series of numbers, dates, and other values as well, in a variety of ways by using autofill.
This article focuses on using autofill to create a series in Microsoft Excel, but if you want you can learn how to use autofill to create a series in Google Sheets.
The Excel autofill / fill down shortcut
Shortcut 1 (Double clicking the fill handle):
There is a really great shortcut that you can use to autofill without dragging, which works in many cases when you are creating a series.
If you double click the fill handle when there is adjacent data to the series you want to create, it will automatically fill down the series to the bottom of the data that is adjacent to your formula/series.
Shortcut 2 (ctrl+D):
The keyboard shortcut “Ctrl” + “D” will copy/fill the contents of the cell at the top of the selected range, through the entire selected range. This works very well to copy down the formulas through a selected range… but for creating a series of values this shortcut does not always work for every type of list/series.
The same applies for the fill right shortcut, which is “Ctrl” + “R”.
How to create a numbered list with autofill in Excel
Let’s start by going over the different ways that you can automatically create a list of numbers in Excel.
Create a series that increments by 1
First let’s create a numbered list, which is the most common task when creating a series with “fill down”.
To automatically create a list of numbers, do the following:
- Start by typing the number 1 into cell A2, and then typing the number 2 into cell A3
- Highlight the cells A2 and A3, then click (and hold) the fill handle
- Then while still holding your mouse click, drag your cursor downwards until you have reached cell A12
- Release the mouse click, and your series of numbers will appear
Create a series with a pattern
You can also create a series based on a pattern in Excel, such as a list of numbers that increments by 2, or by 10.
To create a series of numbers that increments by 2 each time, begin your series with the numbers 1 and 3, as shown in the example image above in column B.
Number every other row
To create a series of numbers that skips every other row, begin your series with the number 1 followed by a blank cell beneath it, as shown in the example above in column B.
How to create a horizontal numbered list
You can also create a series horizontally by using “fill right”, and dragging the fill handle right instead of downwards.
In this example we will create a series of numbers that increments horizontally to the right.
To do this, type the number 1 into the cell A2, and then type the number 2 into the cell B2.
Then highlight cells A2 and cell B2.
Now click, hold, and drag the fill handle to the right, until you have reached cell L2.
Release your mouse click, and a horizontal series of numbers will appear.
Using the ROW and COLUMN functions to create numbered lists
Another way to easily create a list of numbers in Excel, (specifically a series that is attached to the row/column number), is by using the ROW and COLUMN functions.
The ROW function will tell you the number of a row when given a cell reference, and the COLUMN function will tell you the number of a column when given a cell reference.
ROW function diagram:
The Excel ROW function description:
Syntax:
ROW([reference])Formula summary: “Returns the row number of a reference.”
COLUMN function diagram:
The Excel COLUMN function description:
Syntax:
COLUMN([reference])Formula summary: “Returns the column number of the given cell reference.”
Creating a numbered list with the ROW function in Excel
Below I have shown two different ways that you can apply the row function to create a series of numbers.
The first way is by entering the ROW formula in the first cell, and then filling down the formula so that there is a formula in each cell (Excel will automatically adjust the cell reference).
The second way is by using an array formula to apply the ROW formula to the entire range/column with a single formula.
How to use autofill with the ROW function
To enter a ROW formula into each cell of a column/ vertical range, enter the formula below into cell A1, then click and drag the fill handle down until you reach cell A14.
Release the mouse click and a series of numbers will have appeared (because the row function is copied/filled to each cell).
Formula: The formula below is entered into the blue cell (A1), for this example
=ROW(A1)
Using an array with the ROW function
The other way to apply the ROW function to multiple cells, is by using an array. This will allow you to have one formula that applies itself to the cells below as if there were individual ROW formulas in each cell.
To use an array with the ROW function as shown in the example below, enter the formula below into cell A1.
Your series of numbers will appear just like in the last example, but this time with only using one formula.
(In some versions of Excel, you may need to hold Ctrl + Shift + Enter on the keyboard when entering an array formula in Excel. When you do this brackets will appear / wrap around your formula.)
Formula: The formula below is entered into the blue cell (A1), for this example
=ROW(A1:A17)
Creating a horizontally numbered list with the COLUMN function in Excel
The same type of logic from the last examples can be used to create a horizontal series of numbers, by using the COLUMN function.
How to use autofill with the COLUMN function
To enter a COLUMN formula into each cell of a row/ horizontal range, enter the formula below into cell A1, then click and drag the fill handle right until you reach cell H1.
Release the mouse click and a series of numbers will have appeared (because the COLUMN function is copied/filled to each cell).
Formula: The formula below is entered into the blue cell (A1), for this example
=COLUMN(A1)
Using an array with the COLUMN function
The other way to apply the COLUMN function to multiple cells, is by using an array. This will allow you to have one formula that applies itself to the cells to the right, as if there were individual COLUMN formulas in each cell.
To use an array with the COLUMN function as shown in the example below, enter the formula below into cell A1.
Your series of numbers will appear just like in the last examples, but this time with only using one formula.
(In some versions of Excel, you may need to hold Ctrl + Shift + Enter on the keyboard when entering an array formula in Excel. When you do this brackets will appear / wrap around your formula.)
Formula: The formula below is entered into the blue cell (A1), for this example
=COLUMN(A1:H1)
How to autofill a sequence of dates in Excel
There are several ways that a sequence of dates can be created with autofill, by using the same process that was described for creating a series of numbers.
Below is an example that shows multiple ways to fill in dates. In the first image you can see the first two values in each series, and the second picture will show the full series that each will create after clicking and dragging the fill handle.
In this example we will stick to creating a vertical series, but note that any of these methods for filling dates can also be used horizontally if you simply drag the fill handle right instead of down.
For each type of date sequence below, follow the instructions below, after entering the first two values of the series indicated in each section.
- To automatically create a sequence of dates, after typing the first two dates in the series that you want to create… highlight the first two values/cells in the series, then click (and hold) the fill handle
- Then while still holding your mouse click, drag your cursor downwards until you have reached the cell where you want your series to end
- Release the mouse click, and your sequence of dates will appear
Create a sequence of dates that increments by day
To create a date sequence that increments by day, begin your series with the date of the first day in the sequence, and then also enter the date of the following day, in the cell below it.
Here are the first two days used for the series in the example shown below, in column A:
1/1/2019
1/2/2019
Create a sequence of dates that increments by month
To create a date series that increments by months, begin your series with the date of the first month in the sequence, and then also enter the date of the following month, in the cell below it.
Here are the first two months used for the series in the example shown above, in column B:
1/1/2019
2/1/2019
Create a sequence of dates that increments by year
To create a date sequence that increments by years, begin your series with the date of the first year in the sequence, and then also enter the date of the following year, in the cell below it.
Here are the first two years used for the series in the example shown above, in column C:
1/1/2001
1/1/20002
How to autofill text in Excel
There are also some cases where you can use autofill to fill text in Excel, such as by listing the days of the week, or the months of the year.
In columns D and E in the example picture above, you can see an example of using autofill with text.
List the days of the week
You can use autofill to quickly list the days of the week in Excel, by beginning your series with two consecutive days of the week, such as Monday and Tuesday, as shown in the example above in column D.
List the months of the year
Just like with listing the days of the week… you can also use autofill to quickly list the months of the year in Excel, by beginning your series with two consecutive months of the year, such as January and February, as shown in the example above in column E.
How to increment a series of values that have a prefix or a suffix
Excel will also increment strings of values in a series that have a consistent prefix or suffix.
In the example shown below, I have created two different lists with autofill.
The first list (in column A) was created by beginning the series with the following two values which have the same prefix, and then dragging the fill handle down:
Prefix 1
Prefix 2
The first list (in column B) was created by beginning the series with the following two values which have the same suffix, and then dragging the fill handle down:
1 Suffix
2 Suffix