REPT Function in Apple Numbers: Repeat Text for Labels, Symbols and Worksheets
Repeat text in Numbers with REPT: official syntax, nonnegative counts, checked examples, worksheet uses, localization and Excel compatibility caveats.
Verification status: See the evidence and test scope described in this guide. How formula examples are checked
=REPT("ha",3) returns hahaha. Apple Numbers REPT joins copies of a value into one text string. It does not add a separator unless that separator is part of the source.
Availability and version history
- Introduced: The original introduction release and date are not established by the checked official sources.
- Availability: Currently documented in Apple’s Formulas and Functions Help 15.4 edition; no final supported-version endpoint is established.
- Scope: Shared iWork function documentation, not a Numbers application build number. Individual historical and client-specific endpoints remain unverified.
- Checked: October 14, 2026, against the official REPT entry. Examples were independently calculated; no native Numbers execution was performed.
Syntax and the count’s documented domain
REPT(source-string, repeat-number)
Both arguments are required. Apple permits any source value and requires a numeric repeat count at least 0. Its official entry demonstrates numeric 5 producing text 555 when repeated three times. This differs from arithmetic multiplication, which gives numeric 15.
The entry allows zero but does not illustrate its rendered result, explain fractional-count handling or publish a maximum result length. The worked examples below use small positive integers. A repeated glyph string is a compact visual aid; keep the numeric value alongside it so readers do not have to count symbols.
Reproduce eight literal examples
Create RepeatExamples, with four columns and ten rows. Put Formula result, Length, Text result and Count in A1:D1. Enter these formulas individually in A2:A9:
| Row | Formula in A | Expected text | Expected B: length |
|---|---|---|---|
| 2 | =REPT("*",5) |
***** | 5 |
| 3 | =REPT("ha",3) |
hahaha | 6 |
| 4 | =REPT(5,3) |
555 | 3 |
| 5 | =REPT("+",4) |
++++ | 4 |
| 6 | =REPT("ab",3) |
ababab | 6 |
| 7 | =REPT("- ",3) |
-␠-␠-␠ | 6 |
| 8 | =REPT("X",1) |
X | 1 |
| 9 | =REPT("OK",2) |
OKOK | 4 |
The visible ␠ symbols show actual ordinary spaces; do not type them into the formula. A7 includes a trailing space. Put =LEN(A2) in B2 and =ISTEXT(A2) in C2, then fill B2:C2 through row 9. C is TRUE throughout. D2:D9 may hold the manual counts 5, 3, 3, 4, 3, 3, 1, 2 for comparison.
Keep the original marker inputs and results separate
Create Markers, with six columns and six rows. Enter these labels in A2:A4 and numeric counts in B2:B4. D2:D4 are manually entered expected text strings.
| Row | A: Label | B: Units | D: Expected text |
|---|---|---|---|
| 2 | Boxes | 3 | ■■■ |
| 3 | Bags | 1 | ■ |
| 4 | Crates | 5 | ■■■■■ |
Enter C2 =REPT("■",B2), E2 =LEN(C2) and F2 =EXACT(C2,D2), then fill each through row 4. The three computed outputs are in C2:C4, not in the numeric input column. E gives 3, 1, 5; F gives TRUE on every row.
Duplicate the table as ChangedMarkers. Change B2 to 4 and D2 to ■■■■. C2 and E2 update to four blocks and 4; F2 remains TRUE. The original Markers table still has three boxes. This separate copy avoids checking the original three-block expectation after changing its input.
Separators, ratings and numeric-looking text
Create Tokens, with four columns and six rows. Enter the following formulas in A2:A5 and put B2 =LEN(A2) and C2 =ISTEXT(A2) beside them, filling B2:C2 through row 5:
| Row | Formula in A | Expected text | B |
|---|---|---|---|
| 2 | =REPT("-",12) |
———— | 12 |
| 3 | =REPT("★",4) |
★★★★ | 4 |
| 4 | =REPT("CA-",3) |
CA-CA-CA- | 9 |
| 5 | =REPT("0",4) |
0000 | 4 |
C is TRUE for all four. The final hyphen in CA- is repeated as part of every token. Four zero characters are text; REPT does not create a number format or change an existing numeric cell’s display.
The unchanged 15-case input and expected-output record preserves these original examples. It is an independently calculated record, not an application execution log or an import-ready worksheet.
Advanced: compare token count with character count
Create TokenWidths, with seven columns and six rows. Enter the three text tokens A, AB and A-␠ in A2:A4, using an actual final space for the third. Enter 4 in B2:B4. Put these formulas in C2:G2 and fill through row 4:
C2: =REPT(A2,B2)
D2: =LEN(A2)
E2: =LEN(C2)
F2: =D2*B2
G2: =E2=F2
D gives 1, 2, 3 and E/F give 4, 8, 12. G is TRUE throughout. The strings are AAAA, ABABABAB and four copies of A-hyphen-space. Equal repeat counts do not imply equal character counts or equal displayed widths in a proportional font.
Duplicate as ChangedWidths and change B3 to 2. C3 becomes ABAB, E3/F3 become 4, and G3 stays TRUE. Leave the other rows unchanged. LEN checks character counts; it does not measure physical text width or guarantee alignment on export.
Excel compatibility and limits
Microsoft’s REPT documentation explicitly says Excel returns empty text for count zero, truncates fractional counts and limits the result to 32,767 characters. Apple’s short entry does not establish those same details for Numbers. Do not transfer the Excel limit or truncation rule merely because the function has the same name.
For a zero-count Numbers fixture, an empty string is the natural repetition-model expectation, but its native rendering remains untested here. Negative counts are outside Apple’s documented domain. Keep fractional, very large and imported/error inputs separate from these small integer examples.
Formula entry and practical limits
Examples use commas between arguments, ordinary straight quotation marks around literals, one header row and no header columns. If your decimal separator is a comma, Numbers uses semicolons between arguments. Keep output columns separate from the original data, and select source cells in the formula editor if table-qualified references are needed.
The short function entry does not establish every imported type, error-propagation rule or exact error message. These explicit examples do not certify complex Unicode segmentation or cross-client workbook conversion. Diagnose a mismatch with a small original input before changing a whole column.