The quick answer: the REPT formula
REPT means "repeat". You give it the text and the number of times, and it returns one long piece of text. It works the same way in Excel (Windows, Mac, Excel online) and in Google Sheets.
- Type the formula: =REPT("Hello ", 5)
- Result in the cell: Hello Hello Hello Hello Hello
- Repeat what is already in a cell: =REPT(A1, 5)
- Take the number from another cell: =REPT(A1, B1), so changing B1 changes the count.
Add a space, comma or new line between copies
REPT glues copies together with nothing in between. Add the separator to the text itself. To avoid an extra separator at the end, cut the last one off with LEFT and LEN.
- With a space: =REPT(A1&" ", 5)
- With a comma, no comma at the end: =LEFT(REPT(A1&", ",5), LEN(REPT(A1&", ",5))-2)
- Each copy on a new line in Excel (Windows): =REPT(A1&CHAR(10), 5), then turn on Home → Wrap Text.
- Each copy on a new line in Google Sheets: =REPT(A1&CHAR(10), 5), then Format → Wrapping → Wrap.
- On a Mac, Excel also uses CHAR(10) for a line break inside a cell; just remember to turn on Wrap Text.
Repeat the same text down a column (many rows)
Sometimes you don't want one long cell. You want "Pending" in 100 rows, one per row. There are three easy ways.
- Fill handle: type the text in the first cell, then drag the small square at the bottom-right corner down.
- Fill down: select the cell and the empty cells under it, then press Ctrl + D (Windows) or Cmd + D (Mac).
- Excel 365 / Excel 2021: =IF(SEQUENCE(100), "Pending") fills 100 rows at once.
- Google Sheets: =ARRAYFORMULA(IF(SEQUENCE(100), "Pending")) does the same.
- To repeat a short list (A, B, C, A, B, C...) in Excel 365, use =INDEX(A1:A3, MOD(SEQUENCE(30)-1, 3)+1).
Why REPT shows #VALUE! (and the fix)
An Excel cell can hold at most 32,767 characters. If the result of REPT would be longer, Excel shows #VALUE! instead. Google Sheets has its own cell size limit and shows an error in the same situation.
- Lower the count, or repeat a shorter text.
- Work out the size first: length of the text × number of copies. "Good morning " is 13 characters, so 2,500 copies = 32,500 characters, just under Excel's limit.
- A count of 0 returns an empty cell, and a negative count returns #VALUE!.
- A count with decimals is cut down to a whole number (3.9 counts as 3).
- Need more than a cell can hold? Use the online text repeater on this site and paste the result into a document instead.
Useful things you can build with REPT
- A simple bar chart inside cells: =REPT("█", B2/10) draws a bar that grows with the number in B2.
- Star ratings: =REPT("★", C2) & REPT("☆", 5-C2) turns a 1-5 score into stars.
- Fixed-length codes: =REPT("0", 6-LEN(A2)) & A2 pads 42 into 000042.
- Dotted lines for print forms: =REPT(".", 40).
When an online text repeater is easier
Spreadsheets are great when the text lives next to other data. If you only want to send a repeated message on WhatsApp or Instagram, the online tool is faster: no formula, a live character count, numbering, custom separators and one-tap copy. It also handles up to 10,000 copies and warns you when the result is too long for the app you are sending it to.
Final words
To repeat text in Excel, use =REPT(text, number) for copies in one cell, and fill or copy a formula down for many rows. Add a separator inside the quotes, and keep the result under Excel's 32,767-character cell limit.
For text outside a spreadsheet, the online Text Repeater is faster.
Frequently asked questions
How do I repeat text in an Excel cell?
Use the REPT formula: =REPT("text", number). For example =REPT("Hi ", 3) gives "Hi Hi Hi ". To repeat the content of another cell, use =REPT(A1, 3).
How do I repeat text with a line break in Excel?
Join CHAR(10) to the text, like =REPT(A1&CHAR(10), 5), and turn on Wrap Text for that cell. Without Wrap Text the copies show on one line.
Does REPT work in Google Sheets?
Yes. The formula is the same: =REPT(text, number). For a new line between copies use CHAR(10) and turn on text wrapping.
Why does REPT give a #VALUE! error?
In Excel the result is longer than 32,767 characters (the maximum for one cell), or the number of times is negative. Use a smaller count or shorter text.
How do I fill the same text in many rows?
Type it once, select it and the empty cells below, and press Ctrl + D. In Excel 365 you can also use =IF(SEQUENCE(100),"text") to fill 100 rows at once.