REPT
Repeats a string a number of times.
Syntax
=REPT(string, repetitions)
Arguments
Argument | Type | Description |
---|---|---|
string | String | The specified string |
repetitions | Number | The number of times to repeat the string |
Examples
=REPT("Hello!", 3)
→"Hello!Hello!Hello!"
=REPT("na ", 8)
→"na na na na na na na na"
=REPT("Nothing", 0)
→""
Updated about 1 year ago
Did this page help you?