Text

REPT

Repeat a string a specified number of times.

Syntax

=REPT(text, number_times)

Worked example

Create a four-character separator.

=REPT("=",4)

Result ====

Microsoft documentation

Check the arguments, supported editions and behavior of this function in Microsoft’s reference.

Microsoft reference

Search ExcelTutor