Excel Function REPT

Complete Excel VBA Course

REPT function is used to repeat the text or cell reference to multiple times. The function has two “Required” arguments i.e. text and number_times

Syntax:
=REPT(text,number_times)
Syntax Description:

Text argument [Required] is used to give the text or cell reference that you want to repeat

number_times argument [Required], is used to give the numeric value for number of times you want text to repeat

Complete Excel VBA Course
Example 1: Exploring “REPT” function with various examples:

Here we have some examples, where “Column A” has various values, “Column B” represents the number of times value should be repeated and “Column C” shows the output of the function. Explanation is also provided for your reference:

We will be using REPT function as follows:

Excel Function REPT
Things to Remember:

– Spaces available in a string is counted as characters

– If number_times argument has “0”(Zero) value, it will show output as “Blank/Empty text”

– Value in number_times argument should NOT be “Negative value or Text” otherwise output will return with error

– Function should give output in “General” format, however, if the output is not as per the desired format then we need to change the cell format to “GENERAL”.

Recommended Articles

Hope you learnt this Function,

Don’t forget to leave your valuable comments!

If you liked this article and want to learn more similar tricks, please Subscribe us or follow us on Social Media by clicking below buttons:

Similar Posts

Leave a Reply

Your email address will not be published. Required fields are marked *