Contact

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

Text Beginner Zoho Sheet

Extract the country prefix from an order ID without modifying the original cell.

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

Quick answer: Use LEFT when the useful part of a text value is at its beginning. For our sample order ID CA-2026-0041, =LEFT(A2;2) returns the text CA. The result is text, not a geographic lookup: the two-letter prefix is meaningful only because this example has that ID convention.

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 LEFT reference. Documentation and independent ASCII example checks; no native Zoho Sheet test.

Formula syntax and parameter definitions

Zoho’s public reference displays:

=LEFT(text; [number])
Parameter Meaning and practical notes
text Required input text or cell reference. For example, A2 contains CA-2026-0041.
number Optional number of characters from the left; defaults to 1 when omitted according to Zoho. Enter a nonnegative count.

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. Verify A2 is the text CA-2026-0041.
  2. In D2 enter =LEFT(A2;2) (Zoho documents semicolon-separated arguments).
  3. Expected D2 result: CA. Character 1 is C and character 2 is A; the hyphen is character 3.
  4. Fill D2 down through D9. Expected results in order are CA, US, CA, GB, CA, US, CA, GB.

Quick direct-input checks: =LEFT("Zoho Sheet";4) → Zoho; =LEFT("Zoho Sheet") → Z because the second argument is omitted. Zoho also explicitly documents that =LEFT("Zoho";0) returns an empty text string (""), not an error and not zero.

Advanced: combine the prefix with a length check

Keep the prefix formula in D2. Put this separate classification in E2, then fill E2 through E9:

=IF(AND(LEFT(A2;2)="CA";LEN(A2)=12);"Canadian-format ID";"Review")

Expect Canadian-format ID in rows 2, 4, 6 and 8, and Review in rows 3, 5, 7 and 9. All eight sample IDs have 12 characters. The prefix test distinguishes their first two characters; the length test does not validate the internal punctuation or digits.

For a counterexample, enter the literal text CA-ABCD-!!!! in G2 and the same classification formula, with A2 changed to G2, in H2. It also returns Canadian-format ID, because the prefix and length still pass. That exposes the rule’s limitation: the label describes the chosen two checks, not a valid order or an official geographic verification.

Enter the shorter text CA-26-0041 in G3 and fill H2 to H3; expect Review, because its length is 10. Keep the original A:C dataset intact. For critical use, validate required delimiters, digits and membership in an approved identifier list separately.

Common errors, limitations, and troubleshooting

  • #VALUE! and invalid lengths: Zoho explicitly lists a negative number as a cause of #VALUE!. Use 0 to request empty text; do not use -1 to mean “all but one character.”
  • #NAME! after hand-typing text: Wrap literal strings in double quotes, as in "CA-2026-0041"; a bare word may be treated as a name. Ensure the function is spelled LEFT.
  • #REF! after deletion: Check whether A2 or the referenced source column was moved/deleted.
  • Unreliable prefixes: Leading spaces or unexpected imported punctuation move the first two characters. Inspect the raw value; clean it before extracting.
  • Text semantics: CA is a two-character substring, not a flag that automatically validates Canada or assigns currency. Keep codes as text.

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.

RIGHT · MID · LEN · IF.

Function-specific sources