Contact

Zoho Sheet REPT Function: Syntax, Examples and Troubleshooting

Text Beginner Zoho Sheet

Repeat a text fragment a specific number of times with documented zero handling and practical visual-status examples.

Verification status: See the evidence and test scope described in this guide. How formula examples are checked

=REPT("*";F2) gives four asterisks (****) when F2 contains 4. Zoho Sheet REPT creates a repeated text string in its own formula cell. Keep the score as a separate number; a symbol bar is not a numeric total or a substitute for an accessible chart.

Availability and version history

  • Introduced: The original introduction release and date are not established by the checked sources.
  • Availability: Documented in Zoho Sheet’s current rolling web-service help; no final supported-version endpoint is established.
  • Scope: English-language web documentation. Historical releases, mobile and offline-client parity remain separately unverified.
  • Checked: October 14, 2026, against the official REPT entry. Explicit string and arithmetic examples were independently calculated; no native Zoho Sheet execution was performed.

Syntax and the documented zero result

REPT(text; number)

Both arguments are required. The official reference explicitly states that a repetition count of 0 returns empty text. It illustrates repeating Zoho three times, a hash five times and the complete three-character fragment **_ six times.

The entry does not specify fractional-count shortening, negative-count results or a maximum output length. Use the stated integer counts below rather than copying a different product’s boundary rules.

Enter the original seven scored orders

Create ScoredOrders, reserving A1:N12. Enter the six headings in A1:F1 and these seven original records in A2:F8. Order IDs, names and Price_Text are text; Quantity and Score are numeric. Format E2:E8 as Text before entry, preserving each price-looking string. No separate download is needed.

Row A: Order_ID B: First_Name C: Last_Name D: Quantity E: Price_Text F: Score
2 ORD-001 Ada Ng 3 12 4
3 ORD-002 Ben Li 2 7 2
4 ORD-003 Cara Moss 5 0 5
5 ORD-004 Dan Ives 1 19 3
6 ORD-005 Eva Chen 4 6 1
7 ORD-006 Finn Yu 2 14 4
8 ORD-007 Gia Ray 6 3 2

Keep A:F unchanged while adding the calculated outputs. The unused source fields remain available as context; a formula does not automatically use every column in its worksheet.

Calculate markers, lengths and full order labels

Put Stars, Marker length and Order label in G1:I1. Enter the following formulas in row 2 and fill G2:I2 through row 8:

G2: =REPT("*";F2)
H2: =LEN(G2)
I2: =CONCATENATE(A2;" score ";REPT("#";F2))
Row G: expected stars H I: expected label
2 **** 4 ORD-001 score ####
3 ** 2 ORD-002 score ##
4 ***** 5 ORD-003 score #####
5 *** 3 ORD-004 score ###
6 * 1 ORD-005 score #
7 **** 4 ORD-006 score ####
8 ** 2 ORD-007 score ##

The one-character token makes H equal the score. CONCATENATE joins the ID and explicit separator with the repeated hashes. The source score is unchanged by either formula.

Copy ScoredOrders as ChangedScore. Change only F2 to 2. G2 becomes two stars, H2 becomes 2 and I2 becomes ORD-001 score ##. The original four-star record remains available for comparison.

Keep literal examples and zero handling visible

Create RepeatLiterals, reserving A1:D12. Enter these formulas separately in B2:B10, then put C2 =LEN(B2) and fill through C10:

Row Formula in B Expected text C: length
2 =REPT("Zoho";3) ZohoZohoZoho 12
3 =REPT("#";5) ##### 5
4 =REPT("**_";6) **_**_**_**_**_**_ 18
5 =REPT("ab";2) abab 4
6 =REPT("#";0) empty text 0
7 =REPT("-";5) —– 5
8 =REPT("OK";3) OKOKOK 6
9 =REPT("-";10) ———- 10
10 =REPT("- ";3) -␠-␠-␠ 6

Each ␠ denotes an actual ordinary space, including the final one. B7’s five-hyphen result is not a width specification for a cell; REPT returns text, and the font controls its display width.

Advanced: a zero score should not hide the record

Duplicate the original ScoredOrders as ZeroScore. Change F2 to 0. G2 becomes empty text and H2 becomes 0; I2 becomes **ORD-001 score **, including its final space. It has 14 characters and is not an empty cell.

In J1 type Explicit score label. Enter J2 =IF(F2=0;"Score 0";CONCATENATE("Score ";F2;": ";REPT("#";F2))) and fill through J8. J2 is Score 0. J3 is Score 2: ##, J4 is Score 5: #####, and J6 is Score 1: #.

This policy distinguishes a known zero score from a missing or invalid input; it does not claim that every blank-looking imported count should become zero. IF selects the explicit message, while the original numeric field remains visible.

For a separate token-width check, create TwoCharacterMarkers, reserving A1:D8. Enter 1,2,3,4 in A2:A5. B2 =REPT("[]";A2) filled through B5 produces [], [][], [][][] and [][][][]. C2 =LEN(B2) filled through C5 gives 2,4,6,8; D2 =C2=2*A2 filled through D5 is TRUE. Repetition counts and character counts are different when a token contains more than one character.

Excel comparison and practical limits

Microsoft’s REPT entry specifies fractional-count truncation and a 32,767-character result limit for Excel. Zoho’s entry does not publish those rules. Both document the basic repeat operation and zero returning empty text, but that is not proof of every limit or parser behavior being identical.

Use modest counts for readable markers, retain the numeric score and consider whether a screen reader will announce every symbol. LEN checks the actual character count, not physical width. An empty-text result remains different from an untouched source cell in later completeness checks.

Formula entry and scope

Use Zoho’s documented semicolon separators, straight double quotes around literal text and a leading equals sign. Check the formula bar and stored cell types if an imported field does not reproduce the small sample. Formula results belong in separate cells; they do not repair the original field in place.

The shared help error table includes general name, reference and argument-type problems. It is not a complete native error matrix for this function. Unicode segmentation, every mixed-type conversion, exact error propagation and cross-client file imports remain outside these explicit ASCII examples.