How to Fill a Sequence Number and Repeat Them in Excel

In our work we often enter a sequence of numbers as ID for statistic. So we need to require a convenient way to enter the numbers by sequence. This article will introduce you a convenient way to fill numbers by custom, and repeat the sequence number by two ways.

Fill a Sequence of Numbers


It is very easy if we want to enter a sequence of numbers like 1,2,3,4, we can directly enter 1 and 2 into first two columns or rows, then just need to drag them to fill the following cells, excel will auto fill the cells with the increase of value 1. If we want to enter the first number which is not started with 1, and the step value is not 1 nether, how can we create the numbers? You can learn the way by following steps.

Step 1: If we want to enter a sequence of numbers like 5,10,15,20, 25… till 100. First enter the started number 5 into A1 cell. Then click on Home tab.

How to Fill a Sequence Number and Repeat Them in Excel 1

Step 2: Click on Fill button which is displayed in the right.

How to Fill a Sequence Number and Repeat Them in Excel 2

Step 3: Click on the arrow on the button. Then select Series.

How to Fill a Sequence Number and Repeat Them in Excel 3

Step 4: In Series, select Series in as Column, Type as Linear, Step value as 5, Stop value as 100. Then click OK.

How to Fill a Sequence Number and Repeat Them in Excel 4

Step 5: After above operation, we can find that A2 to A20 are filled with numbers 10, 15, 20…till 100. In A1 the start number is 5, in A20 the end number is 100. Between 5-100, number is increased with 5.

How to Fill a Sequence Number and Repeat Them in Excel 5

Repeat a Sequence of Numbers by Copy Cell


Step 1: Enter a sequence number for example 1,2,3,4 in excel A Column: A1-A4.

How to Fill a Sequence Number and Repeat Them in Excel 6

Step 2: Drag it down and fill the cells in A column, then release the mouse. For example, we drag it to A12 in this case. Verify that after releasing the mouse, Auto Fill Options icon displays at the lower right corner of A12. And A5-A12 are filled with numbers 5-12 which are not what we expect.

How to Fill a Sequence Number and Repeat Them in Excel 7

Step 3: Click on Auto Fill Options. Check on Copy Cells option.

How to Fill a Sequence Number and Repeat Them in Excel 8

Step 4: Now A5-A12 cells are filled with 1,2,3,4 repeatedly.

How to Fill a Sequence Number and Repeat Them in Excel 9

Repeat a Sequence of Numbers by Formula


We want get a sequence number like 1,2,3,4,1,2,3,4 etc. Here we can make use of MOD function to get this sequence of numbers.

Step 1: Enter number 1 into A1. Then enter ‘=MOD(A1,4)+1’ into A2 cell. Notice that here A1=1 is the start number in the sequence. Use function ‘=MOD(A1,4)’ we can get A1 itself. So MOD(A1,4)+1=2, we get 2 as output in A2.

How to Fill a Sequence Number and Repeat Them in Excel 10

Step 2: Drag A2 to A3. Here the formula is updated to ‘=MOD(A2,4)+1’, as A2=2 is still smaller than 4, so MOD(A2,4)=2, in A3 cell, we get 3.

How to Fill a Sequence Number and Repeat Them in Excel 11

Step 3: Execute the same way for A4. And when we drag A4 to A5, we can find that we get 1 again. That’s because use the function “=MOD(A4,4)” we can get 0 after calculation, so A5=MOD(A4,4)+1=1 again.

How to Fill a Sequence Number and Repeat Them in Excel 12

Step 4: Fill A6-A12 for example. Then we get three groups of numbers 1,2,3,4.

How to Fill a Sequence Number and Repeat Them in Excel 13

Notes: this way is only valuable for simple number sequence. And the started number should be 1.

 

Related Posts

Match Single Criteria in Excel

No repeat statistic based on a single condition is used wildly in daily work, for example, count type of products, the duplicate types are not encountered. This article describes the way of no repeats statistics for data in a single ...

Excel Array Construction

This article will talk about how to create one-dimensional array or two-dimensional array by using some functions in Excel. When using array formulas in Excel, we often use functions to construct arrays. Generate Array with ROW or COLUMN Functions Array ...

Excel Array Operation

We have all heard of arrays. Depending on the dimensionality, they are divided into one-dimensional arrays and two-dimensional arrays. Depending on the data type, they can also be divided into numeric arrays, logical arrays, and so on. The concatenation and ...

Excel Array Matrix Operation

In Excel, we have a built-in function used to perform matrix operations. It is the MMULT function. This function accepts two arrays as parameters and returns the product of the two arrays. However, this function has a prerequisite that the ...

A1 Reference Style and R1C2 Reference in Excel

In Excel, there are two reference styles. A1 reference style and R1C2 reference style. These two reference styles can help us find the cell by the cell address. Some functions return these two addresses through the argument settings. A1 Reference ...

Sidebar