Ulangi teks seperti yang ditentukan
=REPT(text, number_times)
| Parameter | Deskripsi |
|---|---|
text |
The text to repeat. |
number_times |
The number of times to repeat text. |
To repeat "x" five times, you can use the following formula:
=REPT("x",5) // returns "xxxxx"
Inputs to REPT can be variable. In the example shown above, REPT is configured to repeat the values in column B using the count in column C. The formu
=REPT(B5,C5) // returns "-----"
REPT can be combined with other functions to calculate a variable count. For example, to pad a text string with a specific character so that all strin
=A1&REPT("*",count-LEN(A1))