描述
REPT函数将文本重复给定的次数。使用REPT可以用多个文本字符串填充单元格。
语法
REPT (text, number_times)
争论
| Argument | 描述 | Required/Optional |
|---|---|---|
| Text | The text you want to repeat. | Required |
| Number_times | A positive number specifying the number of times to repeat text. | Required |
Notes
-
如果number_times为0(零),则REPT返回""(空文本)。
-
如果number_times不是整数,则会被截断。
-
REPT函数的输出不能超过32,767个字符,否则REPT返回#VALUE!错误值。
适用性
Excel 2007,Excel 2010,Excel 2013,Excel 2016
Example