Contact

RIGHT in Zoho Sheet: text-cleaning and order ID examples

Text Beginner Zoho Sheet

Retrieve the trailing four-character order number while preserving leading zeros.

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

Quick answer: Use RIGHT to take characters from the end of a text cell. =RIGHT(A2;4) returns the four-character text 0041, retaining the leading zeros from CA-2026-0041. This is useful for display or matching suffixes; do not convert the result to a number if fixed-width formatting matters.

Availability and version history

  • Introduced: The original introduction version and date are not established by the checked sources.
  • Availability: Currently documented in Zoho Sheet’s rolling web-service help; no numbered release or retirement endpoint is established.
  • Scope: English-language web-service documentation. Mobile and offline-client parity is outside the verified scope.
  • Checked: October 14, 2026, against the official RIGHT reference. Documentation and independent ASCII example checks; no native Zoho Sheet test.

Formula syntax and parameter definitions

Zoho’s public reference displays:

=RIGHT(text; number)
Parameter Meaning and practical notes
text Source text or text-bearing cell, such as A2.
number Number of trailing characters requested. Zoho writes this argument without brackets in its syntax line; supply it explicitly for clarity.

Use semicolons (;) as shown in these Zoho English help examples. A formula typed for a different spreadsheet application or locale may use a different separator; copy the function structure, not assumptions about separators.

Reproduce the examples: an eight-order practice sheet

Create a new blank sheet. Enter the three field names in A1:C1 and the eight records below in A2:C9. Do not enter the row-number column or surrounding backticks. Keep Order_ID as text; the customer and status columns are text too. No separate CSV is needed.

Row A: Order_ID B: Customer_Raw (␠ represents a space) C: Status
2 CA-2026-0041 ␠␠East Depot␠␠ Open
3 US-2026-0087 West Market Closed
4 CA-2026-0129 ␠␠North Hub␠ Open
5 GB-2026-1042 South Shop Hold
6 CA-2026-0205 East Depot Closed
7 US-2026-0130 ␠␠West Market␠␠ Open
8 CA-2026-0420 Central Store Hold
9 GB-2026-0011 North Hub Closed

The symbol ␠ in the display table represents one ordinary space. Do not type the symbol; enter an ordinary space for each marker. Put formula results in a free column, such as D, rather than replacing source data. Spreadsheet row references shown below assume this table location.

Worked example with exact expected results

  1. In A2 confirm CA-2026-0041 appears as a text identifier.
  2. Enter =RIGHT(A2;4) in D2.
  3. Expected D2 result: 0041 as text. Reading from the right, the four characters are 0, 0, 4, 1.
  4. Fill D2 down through D9. Expected text results are 0041, 0087, 0129, 1042, 0205, 0130, 0420 and 0011.

Check directly: =RIGHT("Zoho Sheet";2) → et, following Zoho’s own example. =RIGHT("Zoho";0) → empty text according to Zoho’s remarks. Although Zoho displays the syntax as RIGHT(text; number), one of its official examples omits the number and returns the final character of Spreadsheet. That discrepancy is documented rather than silently resolving whether number is optional in every client; use ;1 for reliable explicit intent.

Advanced: a suffix flag and a display label

Keep the suffix formula in D2. Enter this classification in E2 and fill E2 through E9:

=IF(RIGHT(A2;4)="0041";"Manual check";"Routine")

Row 2 returns Manual check; rows 3–9 return Routine. The rule identifies a chosen text suffix, not a unique order. A different region or year may reuse the same four digits.

In F2, enter =RIGHT(A2;4)&"-"&LEFT(A2;2) and fill through F9. Expected text labels are 0041-CA, 0087-US, 0129-CA, 1042-GB, 0205-CA, 0130-US, 0420-CA and 0011-GB. Keep them as text if their leading zeros are meaningful.

To expose a collision, enter US-2025-0041 in H2, then put =IF(RIGHT(H2;4)="0041";"Manual check";"Routine") in I2. It too returns Manual check, despite being a different complete identifier. Compare the full source ID where uniqueness is required.

Common errors, limitations, and troubleshooting

  • #NAME!: String literals must be in double quotes; function and range names must be spelled correctly.
  • #VALUE!: A wrong data type can fail. Avoid negative character counts and use a nonnegative integer in your own templates; the individual Zoho RIGHT page does not enumerate every numeric boundary rule.
  • #REF!: Broken column references need to be repaired before the text can be extracted.
  • Unexpected zeros disappear: The output 0041 is text. If you force numeric conversion, it will display as 41 without a custom format. Do not compare serial strings to numbers.
  • Short or inconsistent IDs: Four trailing characters alone may be an invalid “serial” if upstream values vary. Validate input length separately with LEN.

Portability and boundary limits

The formulas use ASCII order IDs with known lengths. The Zoho reference does not fully specify Unicode/emoji character counting, fractional counts, blank inputs or every out-of-range start/count case. Compare representative data after import rather than borrowing another application’s boundary rules. Local formula separators can differ from the semicolons used in Zoho’s English examples.

LEFT · MID · LEN · IF.

Function-specific sources