REPT function

REPT repeats a character string by the given number of copies. The result can be a maximum of 255 characters.

Syntax

REPT (text, count)

  • text is the text to be repeated.
  • count is the number of repetitions.

Example

REPT("Good morning", 2) returns Good morningGood morning.