Text · extract from the left · Nov 2026

The LEFT function,
measured & explained.

Syntax, a live playground, a measured position gallery, the negative-count trap, and a sourced error library: extracting text from the left.

D1
fx
=LEFT(A2, 3)
0
measured gallery rows
0
sourced errors fixed
0
platforms checked
// 01 — Anatomy

How LEFT works

Returns the first num_chars characters of text. Negative counts are #VALUE!; zero returns an empty string.

=LEFT(text, [num_chars])
textThe string to extract from.
num_charsHow many characters to take; defaults to 1.
over-lengthAsking for more than exists returns the whole string.
.bool-moat td.res-text{color:var(--cyan);font-weight:700;font-family:var(--mono)}
// 02 — Extract from the left

What LEFT actually returns

LEFT returns the first num_chars characters of a text string. The edge cases — default count, over-length, zero and negative — are where people get surprised. Every row was measured live in HyperFormula. Click any row to load it.

Position gallery — num_chars defaults to 1

ExpressionResultWhy
=LEFT(A2,3)ExcFirst 3 of Excel
=LEFT(A2)EOmitted num_chars defaults to 1
=LEFT(A2,10)ExcelLonger than the text: whole string
=LEFT(A3,4)FormFirst 4 of Formula
=LEFT(A4,2)LoFirst 2 of Lookup
=LEFT("Hello",3)HelWorks on a literal
=LEFT(A2,2.9)ExDecimal truncated to 2
=LEFT(A2,1)&"-"&RIGHT(A2,1)E-lCompose with RIGHT

Edge cases

ExpressionResultWhy
=LEFT(A2,0)""Zero characters: an empty string
=LEFT(A2,-1)#VALUE!Negative count is an error
⚠ Negative num_chars is #VALUE!. Zero returns an empty string; a negative count errors. Decimals are truncated, not rounded: LEFT(A2,2.9) takes 2 characters. Asking for more characters than exist returns the whole string, not an error.
// 03 — Try it live

Interactive LEFT playground

Edit the table or type any formula — the engine evaluates instantly. Load a preset to see LEFT take a default single character, return the whole string when over-length, and compose with RIGHT.

A1Sample data — click any cell to edit, the formula re-evaluates live
Result
—
✓ readyHyperFormula 3.5
// 04 — Error library

The real-world error library

8 failure patterns mined from actual user reports on Reddit, Stack Overflow and Super User — each with the authentic symptom, root cause, a fix, and a runnable formula. Not textbook theory.

// 05 — Cross-platform

Where LEFT works

LEFT is available across modern Excel, Google Sheets and LibreOffice. It has been in Excel since 2003.

PlatformSupportNotesGotcha
✓ Supported full LEFT◐ Partial works with caveatsCompiled from public docs · verify against your build
// Go deeper

Master text extraction

LEFT is one piece. The full course walks the toolkit end to end with live, measured examples.

  • LEFT / RIGHT / MID — choosing the extraction direction
  • The default-1 and over-length rules
  • Negative and zero counts
  • TEXT + LEFT for numbers and dates
Free while in beta
Browse the function library

No account needed. Every page has a live playground.

// 07 — FAQ

Frequently asked