REPT Function
Repeat a text a given number of times. text is the text to repeat and number_times the number of repetitions, truncated to an integer; 0 returns empty text. A negative number_times, or a result longer than 32,767 characters, returns #VALUE!.
Syntax
REPT(text, number_times)
Category: Text. Minimum arguments: 2. Maximum arguments: 2.
Available for supported offline calculation.
Examples
=REPT("ab",3)
The formula returns ababab.
Cell and range examples require appropriate input values in the referenced cells. Handle invalid arguments, formula errors and array and spill constraints.