tech on the net
Home About Us Feedback Site Map

Microsoft

Access Excel Word

Database

SQL Oracle / PLSQL SQL Server MySQL MariaDB PostgreSQL

Web Development

HTML CSS Color Picker

Language

C Language

More

ASCII Table Linux UNIX Java Clipart Joke of the Moment

Other Sites

CheckYourMath BigActivities

Excel Functions

(Scroll to see more)

Share this page:

MS Excel: REPT Function (WS)

Learn how to use the Excel REPT function with syntax and examples.

Description

The Microsoft Excel REPT function returns a repeated text value a specified number of times.

Syntax

The syntax for the Microsoft Excel REPT function is:

REPT( text, number )

Parameters or Arguments

text is the text value to repeat.

number is the number of times to repeat the text value.

Applies To

The REPT function can be used in the following versions of Microsoft Excel:

  • Excel 2013, Excel 2011 for Mac, Excel 2010, Excel 2007, Excel 2003, Excel XP, Excel 2000

Type of Excel Function

The REPT function can be used in Microsoft Excel as the following type of function:

  • Worksheet function (WS)

Example (as Worksheet Function)

Let's look at some Excel REPT function examples and explore how to use the REPT function as a worksheet function in Microsoft Excel:

Microsoft Excel

Based on the spreadsheet above, the following Excel REPT examples would return:

=REPT(A1, 3) would return "abcdabcdabcd"
=REPT(A2, 2) would return "isis"
=REPT("apples", 2) would return "applesapples"