To repeat a range of values, you can use a formula based on the SEQUENCE function and the CHOOSEROWS function. In the example shown, the formula in cell D5 looks like this:


This formula repeats the values in B8:B10 a total of 4 times.

Generic formula



In this example, the goal is to repeat a range of values. This can be done in various ways in Excel, but I think the CHOOSEROWS/ CHOOSECOLS functions are the easiest way to retrieve values from the range for now. Both functions work natively with two-dimensional ranges and can accept a single array of numeric index numbers. The formulas below work in two steps:

  1. Generate a repeating list of numeric index numbers.
  2. Use the index numbers to retrieve and repeat values from a range.

Step 1 is based on the formula explained in detail here. Step 2 is based on either the CHOOSEROWS function (to repeat values by row) or the CHOOSECOLS function (to repeat values by column).

Generic formula

The generalized formula for repeating a range into rows looks like this:

  • range - the range to repeat, or an array constant like {"a";"b";"c"}
  • n - the number of rows to repeat
  • x - the number of times to repeat

Worksheet formula

In the example shown above, we are repeating 3 values {"dog";"cat";"fish"} 4 times into 12 rows with this formula in cell D5:


Step 1: Generate repeating index numbers

The core idea of this approach is to create a repeating sequence of numbers that can be used as indices to retrieve values from a range or array. This is done with the SEQUENCE function and the MOD function here:


This code creates a single array of repeating numbers. First, SEQUENCE creates an array of 12 sequential numbers starting with zero:


Next, the MOD function converts the numbers into a repeating sequence:


The final result is an array like this:


Notice that we have repeated the values {1;2;3} four times.

Note: For a more detailed explanation of this part of the formula, which can used standalone, see: Repeat sequence of numbers.

Step 2: Repeat the values

Now that we have an array of repeating numbers, the next step is to use these numbers to extract values in the range B8:B10. To do that, we use the CHOOSEROWS function, which is designed to return specific rows from an array or range. The array from the SEQUENCE and MOD operation described above is delivered directly to CHOOSEROWS as row_num1:


Although the signature for CHOOSEROWS suggests that row numbers must be provided separately, an array constant works just fine. The result from CHOOSEROWS is an array with the first three rows of the range B5:B10 repeated 4 times:


This array lands in cell D5 and spills into the range D5:D16.

Example with a 2D range

Because we are using the CHOOSEROWS function, we have native support for two-dimensional ranges. In the worksheet below, we repeat the range B8:C11 3 times with this formula in cell E5:


Example of repeating a two-dimensional range

Repeat range into columns

By switching to CHOOSECOLS, we can repeat a range into columns instead of rows. The CHOOSECOLS function is designed to return specific columns from a range. The generic version of the formula looks like this:


  In the worksheet below, we use this formula to repeat the range B8:B11 5 times by column:

Example of repeating a range into columns

This formula's operation is the same as the original above, except that we repeat values by column.

Dave Bruns Profile Picture

AuthorMicrosoft Most Valuable Professional Award

Dave Bruns

Hi - I'm Dave Bruns, and I run Exceljet with my wife, Lisa. Our goal is to help you work faster in Excel. We create short videos, and clear examples of formulas, functions, pivot tables, conditional formatting, and charts.