The Excel Rept function returns a supplied text string, repeated a specified number of times.
The format of the function is :
Where the arguments are as follows :
|text||-||The string to be repeated|
|number_times||-||The number of times that the supplied text is to be repeated.|
The resulting text string must be no longer than 32,767 characters. If it is longer than this, the Rept function returns the Excel #VALUE! error.
The following spreadsheet shows several examples of the Excel Rept function. The format of the function is shown in the spreadsheet on the left and the result is shown in the spreadsheet on the right.
Note that in the above examples: