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
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
Arguments
| Argument | Required? | What it does |
|---|---|---|
| text | Yes | The text (or the cell holding it) to take characters from. |
| num_chars | Optional | How 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.
| A | B | |
|---|---|---|
| 1 | SKU | Region |
| 2 | WST-1042 | WST |
| 3 | EST-2210 | EST |
| 4 | NTH-0087 | NTH |
Example 2 — First name, whatever its length
First names are different lengths, so find the space and take everything before it.
| A | B | |
|---|---|---|
| 1 | Full name | First name |
| 2 | Ana Lopez | Ana |
| 3 | Benjamin Cho | Benjamin |
| 4 | Cara Singh | Cara |
- FIND(" ", A2) returns the position of the space — 4 for “Ana Lopez”.
- Subtract 1 so the space itself isn't included.
- LEFT returns that many characters: “Ana”.
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.
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
- If num_chars is longer than the text, you simply get the whole text.
- Related functions: RIGHT, MID, LEN, FIND, TEXTBEFORE.

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.