Learn how to easily create number sequences in Excel
It's easy and fast to create a number series in Microsoft Excel. In this article, we've included four ways to make a number series in Excel. This wikiHow will help you save time by automatically generating a number series for large sets of data.
Quick Steps
- Put your cursor into the first cell of the number series.
- Type =SEQUENCE() .
- In between the parentheses, type the number of rows you want to span, then a comma.
- Type the number of columns you want to span, then a comma.
- Type the starting number for the sequence, then a comma.
- Type the amount of steps between numbers, then a comma.
- Press Enter to generate the number sequence.
Steps
-
1Use the SEQUENCE function to generate a number series. Put your cursor in the cell at A1. This means the block that is located where Column A meets Row 1.
- The SEQUENCE function only works with Excel from Microsoft 365, Excel 2021, and Excel on the web. [1] X Research source
-
2Type =SEQUENCE() . The sequence function allows you to generate a quick and easy dataset that spans multiple rows and columns.
- There are four components to a SEQUENCE function: rows, columns, starting number, and step. All of these components are optional; if they are omitted, each component will default to 1.
- Rows: This is the number of rows you want the number series to span.
- Columns: This is the number of columns you want the number series to span.
- Starting number: This is the number you want your sequence to start with.
- Step: This is the number of steps between each number in your number series. The step can be positive or negative.
Advertisement - There are four components to a SEQUENCE function: rows, columns, starting number, and step. All of these components are optional; if they are omitted, each component will default to 1.
-
3Write your formula in between the parentheses. For example, if you wanted to generate a number series that started with 2, increased by 3, and was 5 rows by 5 columns large, you'd write the following: =SEQUENCE(5, 5, 2, 3) .
- Press ↵ Enter . Excel will generate the number series.
Advertisement
-
Click and hold to highlight all the cells with your numbers. To do so, hold your cursor in the top left of the first cell, and drag it down to the last cell with a number in it (in the first example, the cell with the "2" in it.) [2] X Research source
- Do this without letting your finger off the cursor. This will highlight the 2 (or 3) numbers that you have already typed into the cells.
- Remember that, in Excel, cells form vertical columns but horizontal rows. You can create the number series vertically down a column, or horizontally across a row.
-
Hover your cursor over the little black (or green) square in the bottom right cell. The square will appear in the bottom right of the last cell you typed a number in (in the first example, the cell with the "2.")
- The little black square will turn into a small black plus sign in the bottom right corner of that cell. This is called the fill handle. The key to creating a number series in MS Excel is the fill handle.
- When you look at the individual cell, notice the green or black border around the cell. That means you are working in the active cell. [3] X Research source
-
Left-click on your mouse while hovering your cursor over the plus sign. Drag the cursor down the vertical column. Excel will automatically create a number series for as long as you drag your cursor.
- Use the same process with a number series in a horizontal row. But drag your cursor horizontally. Remember, by default, Excel uses a linear growth pattern to determine these values.
- If you already have a sequence of numbers and you just want to add to it, select the last two in the sequence and drag the fill handle to the new selection, and it will continue the list.
Advertisement
-
Use the ROW function to generate a number series. Put your cursor in the cell at A1. This means the block that is located where Column A meets Row 1.
- In A1, type =ROW() . This formula should generate the first number in your series. Select the fill handle on the bottom right of the A1 cell, and drag down or across to create the number series.
- If you want to find the number of any cell, you can put your cursor in it, and type =ROW(C10) , replacing C10 with the coordinates of that cell. Hit enter.
-
Right-click or Ctrl-click the plus (+) and drag the fill handle. This will open a shortcut menu that allows you to perform other functions with the number series.
- To fill the series in increasing order, drag down or to the right. To fill in decreasing order, drag up or to the left.
- In the shortcut menu, you can choose such options as fill series to populate the numbers or copy series.
-
Count days in Excel. This same trick also allows you to count up by days. To make this work, type a date in any recognizable format in any one cell.
- Drag the fill handle to the adjacent cells, and it will add the days as you go.
- You can skip days, for example, showing every other day or every third day, as long as the sequence is repetitive.
Advertisement
-
Click on the cell that you want to start the number series in. A cell is one of the individual blocks that make up an Excel spreadsheet.
- Type the number that you want to start the series with in that cell and hit Enter or Return . For example, type "1." This is called a "value" in Excel terminology. [4] X Research source
- Now, write the first few numbers of your series in adjacent cells. You could write them in the vertical columns or horizontally in a row. [5] X Research source
-
Figure out the increment for your number series. For example, if you want cells to increase by the same increment (say by "1"), then type two numbers with that increment. Thus, you would type "1" in the first cell and "2" in the cell beneath it.
- If you want the number series to increase by increments of 2, you would type 2 and then 4.
- If you want the series to use more complicated increments (say, "2, 4, 8, 16") type the first three numbers so it doesn’t assume you are asking it for increments of 2.
Advertisement
Community Q&A
Search
-
QuestionWhy do I need to enter the first two values of a number series?Community AnswerYou need to enter two values of a number series in Excel to create the pattern. Using only one number, you can't get a unique pattern of numbers, so two numbers are required.
Ask a Question
200 characters left
Include your email address to get a message when this question is answered.
Submit
Advertisement
Video
Tips
- You could import Excel into Microsoft Access, and create a field to generate unique identifiers. [6] X Research sourceThanks
- These numbers are not automatically updated when you add, move, or remove rows.Thanks
Submit a Tip
All tip submissions are carefully reviewed before being published
Name
Please provide your name and last initial
Thanks for submitting a tip for review!
Advertisement
References
- ↑ https://www.ablebits.com/office-addins-blog/sequence-function-excel-auto-generate-number-series/
- ↑ https://www.ablebits.com/office-addins-blog/2014/05/30/howto-use-autofill-excel/
- ↑ https://support.office.com/en-us/article/Enter-a-series-of-numbers-dates-or-other-items-41e0bbf2-7198-4d78-8545-fdd4709976b4
- ↑ https://www.youtube.com/watch?v=hBy7BZs-zx0
- ↑ https://support.office.com/en-us/article/Automatically-number-rows-76ce49e3-d8d2-459b-bd85-ee1d3973e6e6
- ↑ https://support.office.com/en-us/article/Exchange-copy-import-export-data-between-Excel-and-Access-409c27cc-c69d-461d-a74c-35392a68ed53?CorrelationId=3c15d0cb-78c2-4a74-b367-203b52e3a779&ui=en-US&rs=en-US&ad=US
About This Article
Thanks to all authors for creating a page that has been read 190,161 times.
Advertisement