ExcelCSE.com

Menu
  • Excel 101
  • Excel Functions
  • Excel Formula
  • Contact Us
How to Use Excel > Excel Functions > Excel REPT Function

Excel REPT Function

How to Use the Excel REPT Function
Table of contents :
  • What is the Excel REPT Function?
  • REPT Syntax
  • How to Use REPT Function in Excel
  • REPT Example

Excel REPT Function

What is the Excel REPT Function?

The excel REPT function repeats a text with a specified number of replications.

REPT Syntax

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:

  • REPT function returns empty text “” if number_times argument is zero.
  • REPT function truncates any decimal number in number_times argument, use only the integer number.
  • REPT function returns a #VALUE error if the repeated text longer than 32,767 characters.

How to Use REPT Function in Excel

Below is an example of REPT function usage and the results.

Excel REPT Function

REPT Function #1

=REPT(A2,B2)

REPT function returns nothing If a number_times argument is zero or empty.

REPT Function #2

=REPT(A3,B3)

The result is an excel word, repeated twice without spaces.

REPT Function #3

=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 Function #4

=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 Function #5

=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.

REPT Example

Another article using or explain about REPT Function
  • Add and Remove Leading Zeros in Excel

Another Text Function

Another article about Text Function
  • Excel TEXTJOIN Function
  • Excel CONCAT Function
  • Excel CONCATENATE Function
  • Excel REPLACE Function
  • Excel SUBSTITUTE Function
  • Excel REPT Function
  • Excel FIND Function
  • Excel SEARCH Function
  • Excel MID Function
  • Excel RIGHT Function
Usefull links
  • Microsoft REPT function documentation
Share
Tweet
Google+
Email
Prev Article
Next Article

Related Articles

Excel MOD Function
What is the MOD function? What does mod stand for …

Excel MOD Function

Excel DAY Function
What is the Excel DAY Function? The DAY function returns …

Excel DAY Function

Excel DATE Function
What is the Excel DATE Function? The DATE function returns …

Excel DATE Function

Excel AVERAGEIF Function
What is the Excel AVERAGEIF Function? The Excel AVERAGEIF function …

Excel AVERAGEIF Function

Excel SUMPRODUCT Function
What is SUMPRODUCT Function? The SUMPRODUCT function multiplies corresponding ranges …

Excel SUMPRODUCT Function

Tags:Excel Formula REPT Excel REPT How to Use REPT Formula in Excel REPT Excel REPT Excel Function REPT Formula in Excel REPT in Excel Text Functions

Categories

  • Excel 101
  • Excel Formula
  • Excel Functions

Recent Posts

  • Get the Original Price from Percentage Increase/Decrease
  • How to Add/Subtract Percentage in Excel
  • How to Extract Day, Month and Year from Date in Excel
  • How to Add Seconds, Minutes and Hours to a Time in Excel
  • How to Add Days, Weeks, Months and Years to a Date in Excel
  • How to Calculate Time Difference in Excel
  • Calculate Number of Days, Weeks, Months and Years Between Two Dates in Excel
  • Flash Fill Excel
  • Paste Special Excel
  • Excel TEXTJOIN Function
  • Excel CONCAT Function
  • Excel CONCATENATE Function
  • Excel REPLACE Function
  • Excel SUBSTITUTE Function
  • Excel REPT Function
  • Excel FIND Function
  • Excel SEARCH Function
  • Excel MID Function
  • Excel RIGHT Function
  • Excel LEFT Function

ExcelCSE.com

The Ultimate Guide How to Use Excel Better
Copyright © 2024 ExcelCSE.com
Contact Us - Privacy Policy - Sitemap | Theme by MyThemeShop.com

Ad Blocker Detected

Our website is made possible by displaying online advertisements to our visitors. Please consider supporting us by disabling your ad blocker.

Refresh