FormulaCraft

REPT

REPT outputs a string repeated N times. A common trick is REPT("|", value) to draw a tiny in-cell bar chart without conditional formatting.

Excel
=REPT(A2, 3)
Google Sheets
=REPT(A2, 3)

Verified example

Computed by a real spreadsheet engine on the sample data below.

Symbol
ab

=REPT(A2, 3)ababab

Try it with your data

Edit the grid or formula, then run it through a real spreadsheet engine — no signup.

Sample data — click any cell to edit

Runs server-side · free · no signup

How it works

  1. 1A2 holds the text to repeat.
  2. 23 is the number of repetitions.
  3. 3"ab" repeated 3 times is "ababab".

Need a version for your data?

Try: “Repeat the text in A2 three times

Related

Written and reviewed by FormulaCraft Team. Each formula on this page is run through our verification engine before publishing.

Last reviewed: