Skip to content
Free Excel Tutorials
  • Home
  • Excel For Beginners
  • Excel Intermediate
  • Advanced Excel For Experts

Data Analysis

  • How To Sort One Column or Multiple Columns in Excel
  • How to calculate correlation coefficient Correlation in Excel
  • Conditional Formatting Icon Sets Examples in Excel
  • Conditional Formatting Color Scales Examples in Excel
  • Conditional Formatting New Rule with Formulas in Excel

References

  • CHOOSE function: Description, Usage, Syntax, Examples and Explanation
  • How to get address of last cell in range in Excel
  • How to get relative row numbers in a range in Excel
  • How to use Excel MMULT Function
  • How to use Excel INDIRECT Function

Data Validations

  • Prevent invalid data entering in specific cells
  • Excel Data validation specific characters only
  • Excel Data validation with conditional list
  • Data validation must not exist in list
  • Excel Data validation unique values only

REPT function: Description, Usage, Syntax, Examples and Explanation

by

What is REPT function in Excel?

REPT function is one of TEXT functions in Microsoft Excel that repeats text a given number of times. Use REPT to fill a cell with a number of instances of a text string.

Syntax of REPT function

REPT(text, number_times)

The REPT function syntax has the following arguments:

  • Text    Required. The text you want to repeat.
  • Number_times    Required. A positive number specifying the number of times to repeat text.
Worked Example:   How to create simple in-cell histogram in Excel

REPT formula explanation

  • If number_times is 0 (zero), REPT returns “” (empty text).
  • If number_times is not an integer, it is truncated.
  • The result of the REPT function cannot be longer than 32,767 characters, or REPT returns #VALUE!.
Worked Example:   How to split text with delimiter in Excel

Example of REPT function

Steps to follow:

1. Open a new Excel worksheet.

2. Copy data in the following table below and paste it in cell A1

Note: For formulas to show results, select them, press F2 key on your keyboard and then press Enter.

Worked Example:   How to get last line in cell in Excel

You can adjust the column widths to see all the data, if need be.

Formula Description Result
=REPT(“*-“, 3) Displays an asterisk and a dash (*-) 3 times. *-*-*-
=REPT(“-“,10) Displays a dash (-) 10 times. ———-

Post navigation

Previous Post:

DCOUNT function: Description, Usage, Syntax, Examples and Explanation

Next Post:

Customize Ribbon In Excel

Leave a Reply Cancel reply

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

Learn Basic Excel

Ribbon
Workbook
Worksheets
Format Cells
Find & Select
Sort & Filter
Templates
Print
Share
Protect
Keyboard Shortcuts

Categories

  • Charts
  • Data Analysis
  • Data Validation
  • Excel Functions
    • Cube Functions
    • Database Functions
    • Date and Time Functions
    • Engineering Functions
    • Financial Functions
    • Information Functions
    • Logical Functions
    • Lookup and Reference Functions
    • Math and Trig Functions
    • Statistical Functions
    • Text Functions
    • Web Functions
  • Excel VBA
  • Excel Video Tutorials
  • Formatting
  • Grouping
  • Others

Logical Functions

  • Complete List of Excel Logical Functions, References and Examples
  • How to use Excel XOR Function
  • Return blank if in Excel
  • Invoice status with nested if in Excel
  • SWITCH function example in Excel

Date Time

  • WEEKNUM function: Description, Usage, Syntax, Examples and Explanation
  • Next biweekly payday from date in Excel
  • Get month name from date in Excel
  • How to show last updated date stamp in Excel
  • DAYS360 function: Description, Usage, Syntax, Examples and Explanation

Grouping

  • If cell contains one of many things in Excel
  • Group numbers at uneven intervals in Excel
  • How to randomly assign people to groups in Excel
  • Group times into 3 hour buckets in Excel
  • Group arbitrary text values in Excel

General

  • Count cells that contain errors in Excel
  • How to calculate percentage of total in Excel
  • Cell References: Relative, Absolute and Mixed Referencing Examples
  • List worksheet index numbers in Excel
  • Using Existing Templates in Excel
© 2023 xlsoffice . All Right Reserved. | Teal Smiles | Abbreviations And Their Meaning