The excel REPT function repeats a text with a specified number of replications.
REPT(text, number_times)
text, required, the text to repeat.
number_times, required, a positive number to determine the number of times to repeat the text.
Usage Notes:
Below is an example of REPT function usage and the results.
=REPT(A2,B2)
REPT function returns nothing If a number_times argument is zero or empty.
=REPT(A3,B3)
The result is an excel word, repeated twice without spaces.
=REPT(A4,B4)
The number_times argument must be a positive integer number. If you use a negative number, the result is a #VALUE! error.
=REPT(A5,B5)
If you use a positive decimal number, Excel truncates it and take the integer number. No round process, Excel truncates the decimal number and use the integer number.
The result is the word “go” is repeated three times, not four times.
=REPT(A6,B6)
The result is a #VALUE error.
No more than 31,767 characters for REPT function result. The word “Microsoft” which was repeated 3,641 times resulted in 32,769 characters length.
Calculate Number of Days Between Two Dates Excel has a function that calculates the number of days between two dates,…
What is Flash Fill Excel Flash Fill automatically fills your data when Excel detects a pattern in your initial data…
What is Paste Special Paste special is a paste but you can choose the result type. As we all know,…
What is the Excel TEXTJOIN Function? The excel TEXTJOIN function is the best function to concatenate strings in Excel, has…
What is the Excel CONCAT Function? The excel CONCAT function combines all data; it could be a text, a number…
What is the Excel CONCATENATE Function? The excel CONCATENATE function combines text or numbers into a text. CONCATENATE Syntax CONCATENATE(text1,…