Explanation

In this example, the goal is to repeat a sequence of numbers.

This is a useful way to create repeating sequences of numbers by itself.

The evaluation of SEQUENCE works like this:

The final result is a zero-based sequence of 12 numbers.

Repeating a sequence of numbers with MOD and SEQUENCE

The array can be one dimensional, or two-dimensional, determined byrowsandcolumnsarguments.

MOD Function

The Excel MOD function returns the remainder of two numbers after division.

For example, MOD(10,3) = 1.

Repeating a sequence of numbers with MOD and SEQUENCE

The result of MOD carries the same sign as the divisor.

The SEQUENCE function

Repeating a sequence of numbers with MOD and SEQUENCE

Repeating a sequence of numbers with MOD and SEQUENCE

Repeating a sequence of numbers with MOD and SEQUENCE

Repeating a sequence of numbers in columns with MOD and SEQUENCE

Excel formula: Repeat range of values

Excel SEQUENCE function

Excel MOD function

Article image

Repeating a sequence of numbers with MOD and SEQUENCE

Repeating a sequence of numbers in columns with MOD and SEQUENCE