=REPT(text,number_times)
=REPT("*-", 3)
The function allows you to repeat a character or string multiple times. For example, this will display an asterisk and a dash*- 3 times.
=REPT("-", 10)
The function can be used to repeat a single character multiple times. For example, this will display 10 dashes ---------.
=REPT("Hello World!", 2)
This function can also be used to repeat a string of characters multiple times. For example, this will display Hello World! Hello World!.
=REPT(CONCATENATE("a", "b"), 3)
The function can also be used in conjunction with other functions. For example, this will display ababab.
=REPT("*", 100)
The function can be used to display a large number of characters. For example, this will display 100 asterisks ****************************************************************************************************.
The REPT function is a logical function used to repeat characters a given number of times, fill cells in a worksheet, pad values to a certain length, and build histograms.