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

If Cell is This Value or That Value

IF function is frequently used in Excel worksheet to return you expect “true value” or “false value” based on the result of logical test. If you want to see if a cell is A or B, and if one of ...

If Value is Greater Than A Certain Value
If Value is Greater Than A Certain Value 1

IF function is frequently used in Excel worksheet to return you expect “true value” or “false value” based on the logical test result. If you want to see if a value in one cell is greater than a specific value, ...

If Cell is Not Blank
If Cell is Not Blank 6

IF function is frequently used in Excel worksheet to return you expect “true value” or “false value” based on the result of created logical test. If you want to see if a cell is blank or not, and leave some ...

VBA Macro For VLOOKUP From Another Sheet
vba macro for vlookup from another sheet1

In the previous post, you should know that how to fix or remove the #N/A error when using VLOOKUP formula to lookup value from another sheet. And this post will show you how to use VBA code to vlookup data ...

If Cell is Blank
If Cell is Blank_1

IF function is frequently used in Excel worksheet to return you expect “true value” or “false value” based on the result of created logical test. If you want to see if a cell is blank or not, and leave some ...

If Cell Equals Certain Text String
If cell equals certain text_1

IF function is frequently used in Excel worksheet to return you expect “true value” or “false value” based on the result of created logical test. If you want to see if cell equals a certain text string like “Win”, you ...

If Cell Contains Either Text1 or Text2
If cell contains text1 or text2_1

IF function is frequently used in Excel worksheet to return “true value” or “false value” based on the logical test result. If you want to see if cell contains certain substring1 like “abc” or substring2 like “def”, and returns true ...

If Cell Contains Certain Text OR Equals Certain Text

IF cell equals certain text IF function is frequently used in Excel worksheet to return “true value” or “false value” based on the logical test result. If you want to test values to see if they equal certain text like ...

VLOOKUP From Another Sheet Not Working
vlookup from another sheet not working3

In the previous post, you should know that how to fix or remove the #N/A error when using VLOOKUP formula to lookup value from another sheet. And this post will show you reasons why your VLOOKUP formula is not working ...

If Cell Begins with One of Three Supplied Characters
If Cell Begins with One of Three Supplied Characters

If you want to test values to see if they begin with some given specific characters like “x”, ”y”, or “z”, you can create a formula with COUNTIF and SUM functions to return results. EXAMPLE You can see “TRUE” or ...

Sidebar