Google Sheets REPT Function

This post will guide you how to use Google Sheets REPT function with syntax and examples.

Description


The Google Sheets REPT function repeats a text string a specified number of times.

The REPT function can be used to repeat specified text repeated a number of times in google sheets. And it’s return value as the repeated text. The purpose of this function is repeat text as specified.

The REPT function is a build-in function in Google Sheets and it is categorized as a Text Function.

Syntax


The syntax of the REPT function is as below:

= REPT (text, number_times)

Where the REPT function arguments are:

  • Text -This is a required argument. The text string that you want to repeat.
  • Number_times – This is a required argument.  The number of times that you want to repeat

Note:

  • If number_times is zero, the REPT function will return empty text. And If number_times value is not an integer, it is truncated to an integer value.
  • Nuber_times argument should be zero or a positive integer, otherwise, it will return an #VALUE error.
  • REPT function takes two arguments, text and number_times. The first argument, Text is the characters to repeat. And the second argument, number_times is the number of times text should appear in the value returned.
  • REPT function does not insert any space characters between repetitions of text. If you wish to insert a space, a space character must be appended to the end of the value of text value. And the resulting return value from REPT function will have at least one trailing space, and you can use another function called TRIM function to remove it.

Google Sheets REPT Function Examples


The below examples will show you how to use google sheets REPT function to repeat a text string a given number of times.

#1 To repeat a text string in B1 cell 3 times, just using the following formula:

=REPT (B1,3) //it returns “googlegooglegoogle”

google sheets rept function

#2 Repeat “g” letter 5 times, just using the following formula:

=REPT(“g”,5) //it returns “ggggg”

google sheets rept function

#3 Repeat text string in Cell B1 using a specified number of times in Cell C1, you can type the following REPT formula in Cell D1:

=REPT(B1,C1) //it returns “googlegooglegoogle”

google sheets rept function

 

 

Related Posts

Google Sheets FLOOR Function
google sheets floor function1

This post will guide you how to use Google Sheets FLOOR function with syntax and examples. Description The Google Sheets FLOOR function returns a number rounded down to the nearest multiple of significance. So it will return a rounded number. ...

Google Sheets EXP Function
google sheets exp function1

This post will guide you how to use Google Sheets EXP function with syntax and examples. Description The Google Sheets EXP function returns e raised to the power of a number.  The constant e is equal to 2.71828182845904, and it ...

Google Sheets FACT Function
google sheets FACT function1

This post will guide you how to use Google Sheets FACT function with syntax and examples. Description The Google Sheets FACT function returns the factorial of a given number.  The factorial of a given number is equal to 1*2*3…* number. ...

Google Sheets EVEN Function
google sheets even function1

This post will guide you how to use Google Sheets EVEN function with syntax and examples. Description The Google Sheets EVEN function rounds a given number up to the nearest even integer. You can use the EVEN function to return ...

Google Sheets COUNTBLANK Function
google sheets countblank function1

This post will guide you how to use Google Sheets COUNTBLANK function with syntax and examples. Description The Google Sheets COUNTBLANK function use to count the number of empty cells in a range of cells. You can use the COUNTBLANK ...

Google Sheets DEGREES Function
google sheets degrees function1

This post will guide you how to use Google Sheets DEGREES function with syntax and examples. Description The Google Sheets DEGREES function converts radians into degrees. And it will return a numeric value. For examples, if you pass the PI() function into ...

Google Sheets COSH Function
google sheets cosh function1

This post will guide you how to use Google Sheets COSH function with syntax and examples. Description The Google Sheets COSH function returns the hyperbolic cosine of a given angle. The purpose of this function is used to get hyperbolic ...

Google Sheets COS Function
google sheets cos function1

This post will guide you how to use Google Sheets COS function with syntax and examples. Description The Google Sheets COS function returns the cosine of a given angle. If you want to supply an angle to COS function in ...

Google Sheets COMBINA Function
google sheets combina function1

This post will guide you how to use Google Sheets COMBINA function with syntax and examples. Description The Google Sheets COMBINA function returns the number of combinations for a given number of items and it includes repetitions. You can use ...

Google Sheets COMBIN Function
google sheets combin function1

This post will guide you how to use Google Sheets COMBIN function with syntax and examples. Description The Google Sheets COMBIN function returns the number of combinations for a given number of items. And you can use the COMBIN function ...

Sidebar