How to Repeat a Number Pattern in Excel (5 Methods)

Suppose you have the following dataset:

excel repeat number pattern


Method 1 – Use a Keyboard Shortcut to Repeat a Number Pattern

Steps (Single Repeated Cell):

  • Select the cell where you want the repeated number pattern to start.

Use the Keyboard Command to Repeat Number Pattern in Excel

  • Manually enter the data you want repeated.

Use the Keyboard Command to Repeat Number Pattern in Excel

  • Place your cursor on the bottom-right of the cell. An AutoFill sign pops up.
  • Hold Ctrl on your keyboard and drag the AutoFill handle downward. Release the Ctrl button.

Steps (Repeated Group of Cells):

  • Repeating groups of cells is the same procedure.
  • Select the group of cells. Press Ctrl on your keyboard, and drag the AutoFill handle downward.

Use the Keyboard Command to Repeat Number Pattern in Excel

The group is repeated.

Read more: How to Repeat Formula Pattern in Excel


Method 2 – Use the Fill command to Repeat a Number Pattern

Steps:

  • Manually enter the data to set the pattern you want repeated.

Perform the Fill command to Repeat Number Pattern in Excel

  • Hover your cursor on the bottom-right of the selected cell(s), and an AutoFill sign will pop up.

  • Drag the AutoFill handle downward.

Perform the Fill command to Repeat Number Pattern in Excel

Read More: Applications of Excel Fill Series


Method 3 – Use the IF Function to Repeat a Number Pattern

Steps:

  • Manually enter the data to set the pattern you want to be repeated.

Apply the IF Function to Repeat Number Pattern in Excel

  • Select the first empty cell in the fill area.

Apply the IF Function to Repeat Number Pattern in Excel

  • Enter the following IF function in the Formula Bar.
=IF(C7=7, 5, C7+1)
  • In this example, C7=7 is the logical_test for repeating numbers.
  • 5 is the starting number.
  • C7+1 – +1 is the interval the repeated numbers will increase by.

  • Press Enter.

Apply the IF Function to Repeat Number Pattern in Excel

  • Drag the autoFill handle downward.

  • The cells populate with the repeated pattern.

Apply the IF Function to Repeat Number Pattern in Excel

Read More: How to Perform Predictive AutoFill in Excel


Method 4 – Insert the MOD Function to Repeat a Number Pattern

You can easily apply the MOD function to repeat the number pattern. Let’s follow the instructions below to learn!

Steps:

  • Manually enter the data to set the pattern you want to be repeated.
  • Select the next cell in the fill area.

Insert the MOD Function to Repeat Number Pattern in Excel

  • Enter the following MOD function in the Formula Bar.
=MOD(C5,3)+1
  • In this example, C5 is the first number to repeat.
  • 3 is the divisor (the length of the pattern in this example).
  • +1 is the increase interval between numbers.

Insert the MOD Function to Repeat Number Pattern in Excel

  • Press Enter.

Insert the MOD Function to Repeat Number Pattern in Excel

  • Drag the AutoFill handle downward.

  • The cells populate with the repeated pattern.

Read More: How to Add Sequence Number by Group in Excel 


Method 5 – Use the MOD and ROW Functions to Repeat a Number Pattern

Steps:

  • Select the first cell.

Use the MOD and ROW Functions to Repeat Number Pattern in Excel

  • Enter the MOD and ROW functions in the Formula Bar.
=9+3*MOD(ROW(),-2)
  • In this example, 3 is the increase interval between numbers.
  • ROW() returns the current row number.
  • -2 is the decrease number.

Use the MOD and ROW Functions to Repeat Number Pattern in Excel

  • Press Enter.

Use the MOD and ROW Functions to Repeat Number Pattern in Excel

  • Drag the AutoFill handle downward.

Use the MOD and ROW Functions to Repeat Number Pattern in Excel

  • The cells populate with the repeated pattern.

Use the MOD and ROW Functions to Repeat Number Pattern in Excel


Things to Remember

  • Don’t forget to manually type the data needed to set the pattern first.
  • If the divisor in the MOD function is 0, the function will return a #DIV/0 error.

Download Practice Workbook

Download this practice workbook to exercise while you are reading this article.


Related Articles


<< Go Back to Autofill Numbers | Excel Autofill | Learn Excel

Get FREE Advanced Excel Exercises with Solutions!
Md. Abdur Rahim Rasel
Md. Abdur Rahim Rasel

MD. ABDUR RAHIM is a marine engineer proficient in Excel and passionate about programming with VBA. He views programming as an efficient means to save time while managing data, handling files, and engaging with the internet. His interests extend to Rhino3D, Maxsurf C++, AutoCAD, Deep Neural Networks, and Machine Learning, reflecting his versatile skill set. He earned a B.Sc in Naval Architecture & Marine Engineering from BUET, and now he has become a content developer, creating technical content... Read Full Bio

We will be happy to hear your thoughts

Leave a reply

Advanced Excel Exercises with Solutions PDF

 

 

ExcelDemy
Logo