Repeat Text in Excel – Complete Guide

Repeat Text in Excel: Formulas, Fill Tricks & Cleanup

Repeating text in Excel comes up constantly β€” padding cells with dashes, building in-cell bar charts, stamping the same label down a column, or cleaning up duplicated rows. Excel has a dedicated formula for it plus several fill tricks most users never discover.

Quick Summary

Use =REPT(text, number_times) to repeat any text inside a single cell β€” e.g. =REPT("β€”", 20) draws a 20-dash divider. A REPT result cannot exceed 32,767 characters or you get a #VALUE! error. To repeat the same value across many cells, select the range, type once, and press Ctrl+Enter. Use CHAR(10) inside REPT for repeated lines, and Remove Duplicates (Data tab) to strip repeats instead of making them. Our Text Repeater can generate the repeated string first if you need thousands of copies fast.

The REPT Function: Repeat Text Inside One Cell

The standard Excel formula to repeat text is:

=REPT("text", 5) β†’ texttexttexttexttext

Practical uses:

Two limits to remember: REPT output is capped at 32,767 characters (beyond that Excel returns #VALUE!), and a negative repeat count also returns #VALUE!. Wrap the count in MAX(0,...) if it can go negative.

How to Repeat the Same Text Across Many Cells

When you need Excel to repeat text automatically down a column or across a row, the formula is overkill. Use fill instead:

  1. Type once, fill a range: select the target range, type the text, and press Ctrl+Enter β€” Excel fills every selected cell at once. This is the fastest way to stamp a label into hundreds of cells.
  2. Fill handle: type the text in the first cell, then drag the small square at the cell's bottom-right corner (or double-click it to auto-fill down to the last adjacent row).
  3. Ctrl+D / Ctrl+R: select a column range and press Ctrl+D to fill down, or a row range and Ctrl+R to fill right, from the top/left cell.
  4. Repeat a formula's result: enter =REPT($A$2, 3) once and fill down β€” the absolute reference keeps every row repeating the same source text.

Repeat Text on Multiple Lines Inside One Cell

To stack repeated text vertically inside a single cell, combine REPT with a line break:

=REPT("Approved" & CHAR(10), 4)

Then turn on Wrap Text (Home tab) so the line breaks render. Without Wrap Text the cell shows everything on one line and the trick looks broken β€” this is the single most common reason the formula "doesn't work."

Fill Down: Repeat a Label Into Every Blank Cell

Reports often have a label only on the first row of each group, with blanks beneath. To repeat it into every blank cell:

  1. Select the column.
  2. Press F5 β†’ Special β†’ Blanks β†’ OK (Home β†’ Find & Select β†’ Go To Special on newer ribbons).
  3. Type =, press the Up arrow, then Ctrl+Enter.

Every blank cell now references the cell above it. Copy the column and Paste as Values to lock the labels in.

Show Repeated Text Without Changing the Value

Sometimes you want a cell to display repeated text while keeping its real value for calculations. Use a custom number format: select the cells, press Ctrl+1 β†’ Custom, and enter something like "Total: "@. The cell shows "Total: " before its text but the underlying value is untouched β€” sorting and formulas still see the original.

How to Find and Remove Repeated Text in Excel

The other half of repetition is cleanup. To find repeated text in Excel:

To remove repeated text in Excel, select the range and use Data β†’ Remove Duplicates β€” choose which columns define a duplicate and Excel keeps the first occurrence. For a formula route, =UNIQUE(A2:A100) spills the deduplicated list (Microsoft 365 / Excel 2021+).

Common Mistakes to Avoid

Frequently Asked Questions

What is the Excel formula to repeat text?

=REPT(text, number_times). For example, =REPT("ab", 3) returns ababab. The result cannot exceed 32,767 characters.

How do I repeat text in Excel automatically down a column?

Select the range, type the text once, and press Ctrl+Enter. Or enter the text in the first cell and double-click the fill handle to auto-fill to the last adjacent row.

How do I repeat text in Excel on separate lines in one cell?

Use =REPT("text" & CHAR(10), n) and enable Wrap Text on the cell.

How do I stop text from repeating when I drag the fill handle?

After dragging, open Auto Fill Options and pick Fill Without Formatting β€” or hold Ctrl while dragging to copy cells instead of extending a series.

How do I remove repeated text in Excel?

Use Data β†’ Remove Duplicates for a one-click cleanup, or =UNIQUE(range) for a formula that spills the deduplicated list.

Can I repeat text across multiple sheets at once?

Yes β€” group the sheets first (Ctrl+click the sheet tabs), then type or use Ctrl+Enter. Whatever you enter repeats on every grouped sheet. Remember to ungroup afterward (right-click a tab β†’ Ungroup Sheets).

Related Guides & Tools

Need the repeated string itself? Generate it in seconds with our free Text Repeater, check the length with the Character Counter, or build repeated WhatsApp chunks with WhatsApp Repeater. More in the guides hub.