LEFT Function

Returns a set number of characters from the start of a text value.

Category

Text

Available in

All versions, Microsoft 365

Returns

Text

Taught hands-on in Level 3: Intermediate Lookups & Data Summaries - Text Functions module

Overview

LEFT pulls characters from the beginning of a piece of text. Tell it the text and how many characters you want, and it hands back that many from the left.

It's the go-to for codes with a fixed prefix — region codes, year prefixes, country codes — and, paired with FIND, for grabbing everything up to a space or a dash.

Syntax

=LEFT(text, [num_chars])

Arguments

ArgumentRequired?What it does
textYesThe text (or the cell holding it) to take characters from.
num_charsOptionalHow many characters to return. Leave it out and you get 1.

Examples

Example 1 — Region prefix from a SKU

Northstar's SKUs start with a three-letter region code. Pull it into its own column.

B2fx=LEFT(A2, 3)
AB
1SKURegion
2WST-1042WST
3EST-2210EST
4NTH-0087NTH
=LEFT(A2, 3) Explain

Example 2 — First name, whatever its length

First names are different lengths, so find the space and take everything before it.

B2fx=LEFT(A2, FIND(" ", A2)-1)
AB
1Full nameFirst name
2Ana LopezAna
3Benjamin ChoBenjamin
4Cara SinghCara
=LEFT(A2, FIND(" ", A2)-1) Explain
  1. FIND(" ", A2) returns the position of the space — 4 for “Ana Lopez”.
  2. Subtract 1 so the space itself isn't included.
  3. LEFT returns that many characters: “Ana”.
In Microsoft 365, =TEXTBEFORE(A2, " ") does the same job in one step.

Example 3 — Turning the result back into a number

Invoice IDs start with the year, like 2026-0412. LEFT gives you "2026" as text — add -- to make it a real number.

=--LEFT(A2, 4) Explain

Common mistakes

  • The result is always text. =LEFT("2026-0412", 4) returns the text "2026", which won't add up in SUM. Wrap it in VALUE or put -- in front.
  • #VALUE! with FIND. If the cell has no space, FIND fails and so does LEFT. Wrap the formula in IFERROR, or use TEXTBEFORE with its if_not_found argument.

Notes

Kyle Stott

Author

Kyle Stott

Certified Microsoft Excel Expert

Kyle has worked professionally with Microsoft Excel for over a decade and has consulted on and taught Excel best practices to over 400 companies across 30+ countries.