Description
The Microsoft Excel REPT function returns a repeated text value a specified number of times.
The Microsoft Excel REPT function returns a repeated text value a specified number of times.
Syntax
The syntax for the REPT function in Microsoft Excel is:
REPT( text, number )
The syntax for the REPT function in Microsoft Excel is:
REPT( text, number )
Parameters or Arguments
- text
- The text value to repeat.
- number
- The number of times to repeat the text value.
- text
- The text value to repeat.
- number
- The number of times to repeat the text value.
Applies To
- Excel 2016, Excel 2013, Excel 2011 for Mac, Excel 2010, Excel 2007, Excel 2003, Excel XP, Excel 2000
- Excel 2016, Excel 2013, Excel 2011 for Mac, Excel 2010, Excel 2007, Excel 2003, Excel XP, Excel 2000
Type of Function
- Worksheet function (WS)
- 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:
Based on the Excel spreadsheet above, the following REPT examples would return:
=REPT(A1, 3)
Result: "abcdabcdabcd"
=REPT(A2, 2)
Result: "isis"
=REPT("apples", 2)
Result: "applesapples"
Let's look at some Excel REPT function examples and explore how to use the REPT function as a worksheet function in Microsoft Excel:
Based on the Excel spreadsheet above, the following REPT examples would return:
=REPT(A1, 3) Result: "abcdabcdabcd" =REPT(A2, 2) Result: "isis" =REPT("apples", 2) Result: "applesapples"