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 TODAY Function
google sheets today function

This post will guide you how to use Google Sheets TODAY function with syntax and examples. Description The Google Sheets TODAY function get the current date as a date value. And it will be updated each time when your worksheet ...

Google Sheets TIME Function
google sheets time function1

This post will guide you how to use Google Sheets TIME function with syntax and examples. Description The Google Sheets TIME function converts an hour, minute and second into a time. The TIME function can be used to create a ...

Google Sheets SECOND Function
google sheets second function1

This post will guide you how to use Google Sheets SECOND function with syntax and examples. Description The Google Sheets SECOND function returns the seconds of a time value. Or returns an integer value that represent the second component of ...

Google Sheets NOW Function
google sheets now function1

This post will guide you how to use Google Sheets NOW function with syntax and examples. Description The Google Sheets NOW function returns the serial number of the current date and time. And it will be updated each time when ...

Google Sheets NETWORKDAYS.INTL Function
google sheets networkdays.intl function1

This post will guide you how to use Google Sheets NETWORKDAYS.INTL function with syntax and examples. Description The Google Sheets NETWORKDAYS.INTL function returns the number of net working days between tow given days excluding specified weekend days and holidays. The ...

Google Sheets NETWORKDAYS Function
google sheets networkdays function1

This post will guide you how to use Google Sheets NETWORKDAYS function with syntax and examples. Description The Google Sheets NETWORKDAYS function returns the number of net working days between tow given days. The NETWORKDAYS function can be used to ...

Google Sheets MONTH Function
google sheets month function1

This post will guide you how to use Google Sheets MONTH function with syntax and examples. Description The Google Sheets MONTH function returns the month of a date represented by a serial number. And the month is an integer number ...

Google Sheets MINUTE Function
google sheets minute function1

This post will guide you how to use Google Sheets MINUTE function with syntax and examples. Description The Google Sheets MINUTE returns the minutes of a time value. And the minutes is an integer number from 0 to 59. So ...

Google Sheets ISOWEEKNUM Function
google sheets isoweeknum function1

This post will guide you how to use Google Sheets ISOWEEKNUM function with syntax and examples. Description The Google Sheets ISOWEEKNUM returns the number of the ISO week of the year for a given date. ISO weeks begin on Monday ...

Google Sheets HOUR Function
google sheets hour function1

This post will guide you how to use Google Sheets HOUR function with syntax and examples. Description The Google Sheets HOUR returns the hour of a time value. Or returns an integer value that represent the hour component of a ...

Sidebar