How to use LEFT in Excel: extract characters from the start of text
LEFT takes characters from the start of text: a passport series, a region code on a number plate, a surname. Pairing with FIND, plus number and date traps.
LEFT cuts the number of characters you specify from the left side of a text — that is, from the beginning.
Real-life examples:
- From passport number AB1234567 — the series AB.
- From the number plate “01 A 777 AA” — the region code 01.
- From a product code like “TSH-0147” — the branch TSH.
- From “Karimov Aziz” — the surname Karimov (here LEFT works together with FIND).
When cleaning and grouping data exported from other software, LEFT is one of the most used text functions.
| A | B | C | D | |
|---|---|---|---|---|
| 1 | Full name | Passport | Series | |
| 2 | Karimov Aziz | AB12345671 | AB2 | |
| 3 | Rahimova Dilnoza | AD7654321 | AD | |
| 4 | Tursunov Javohir | AC0034512 | AC | |
| 5 | Yusupova Malika | AB9081726 | AB | |
| 6 |
Syntax
=ЛЕВСИМВ(text; [num_chars])
text— the text or a cell containing text.num_chars— how many characters to take. If omitted — 1 character. Larger than the text length — the whole text comes back. A negative number — #VALUE!.
Important: spaces, hyphens and dots are characters too. And the result is always text — even when it consists of digits like “2025”.
Writing LEFT step by step
1
Select C2. On the Формулы tab, click Текстовые and pick LEFT from the list.
| A | B | C | D | |
|---|---|---|---|---|
| 1 | Full name | Passport | Series | |
| 2 | Karimov Aziz | AB1234567 | ||
| 3 | Rahimova Dilnoza | AD7654321 | ||
| 4 | Tursunov Javohir | AC0034512 | ||
| 5 |
2
In the Function Arguments box: Text — click B2, Num_chars — 2. The preview at the bottom already shows the result: “AB”.
| A | B | C | D | |
|---|---|---|---|---|
| 1 | Full name | Passport | Series | |
| 2 | Karimov Aziz | AB1234567 | ||
| 3 | Rahimova Dilnoza | AD7654321 | ||
| 4 | Tursunov Javohir | AC0034512 | ||
| 5 | Yusupova Malika | AB9081726 | ||
| 6 |
3
Click OK and double-click the fill handle — the formula runs to the end of the list. Now you can filter by series or count them with COUNTIF.
| A | B | C | D | |
|---|---|---|---|---|
| 1 | Full name | Passport | Series | |
| 2 | Karimov Aziz | AB1234567 | AB | |
| 3 | Rahimova Dilnoza | AD7654321 | AD | |
| 4 | Tursunov Javohir | AC0034512 | AC | |
| 5 | Yusupova Malika | AB9081726 | AB | |
| 6 |
Example: the region from a number plate
The first two digits of an Uzbek number plate are the region code: 01 — Tashkent city, 10 — Tashkent region, 30 — Samarkand, 80 — Bukhara. LEFT extracts the code, and VLOOKUP finds the region name for it:
=ВПР(ЛЕВСИМВ(A2;2);$E$2:$F$5;2;ЛОЖЬ)
Watch out: LEFT returns text (“01”). So the codes in the lookup table must be text too — typed as '01 or in a column formatted as Text. Otherwise Excel turns 01 into the number 1 and VLOOKUP returns #N/A.
| A | B | C | D | E | F | G | |
|---|---|---|---|---|---|---|---|
| 1 | Plate | Code | Region | Code | Region | ||
| 2 | 01 A 777 AA | 01 | Tashkent city | 01 | Tashkent city | ||
| 3 | 30 K 245 BA | 30 | Samarkand | 10 | Tashkent reg. | ||
| 4 | 80 M 512 DA | 80 | Bukhara | 30 | Samarkand | ||
| 5 | 10 S 908 CB | 10 | Tashkent reg. | 80 | Bukhara | ||
| 6 |
Up to a delimiter: LEFT + FIND
Surnames have different lengths: “Karimov” is 7 characters, “Rahimova” is 8. A fixed number won’t work. The fix: find the position of the space with FIND and give LEFT one character less:
=ЛЕВСИМВ(A2;НАЙТИ(" ";A2)-1)
In “Karimov Aziz” the space is at position 8, so LEFT takes 7 characters — “Karimov”. The -1 keeps the space itself out of the result. The same trick takes the part of “TSH-0147” before the hyphen: =ЛЕВСИМВ(A2;НАЙТИ("-";A2)-1).
| A | B | C | D | |
|---|---|---|---|---|
| 1 | Full name | Space at | Surname | |
| 2 | Karimov Aziz | 8 | Karimov | |
| 3 | Rahimova Dilnoza | 9 | Rahimova | |
| 4 | Tursunov Javohir | 9 | Tursunov | |
| 5 | Yusupova Malika | 9 | Yusupova | |
| 6 |
| A | B | C | D | |
|---|---|---|---|---|
| 1 | Date | LEFT(A,2) | The right way | |
| 2 | 01.01.2025 | 45 | 1 | |
| 3 | 01.03.2025 | 45 | 1 | |
| 4 | ||||
| 5 |
Pro level: trimming the end and quick alternatives
- Drop the last N characters. LEFT + LEN:
=ЛЕВСИМВ(A2;ДЛСТР(A2)-4)turns “Report.pdf” into “Report” (the 4 characters “.pdf” are cut off). - Checking a prefix.
=ЕСЛИ(ЛЕВСИМВ(B2;3)="TSH";"Tashkent";"Region")groups by the start of a code. In COUNTIF a wildcard is handier:=СЧЁТЕСЛИ(B2:B100;"AB*")counts AB-series passports. - Need text from a date? Convert it with TEXT first:
=ЛЕВСИМВ(ТЕКСТ(A2;"dd.mm.yyyy");2). Note that format codes are localized — in Russian Excel it is “ДД.ММ.ГГГГ”. - Flash Fill. For a one-off job, type the result in the first cell by hand and press Ctrl + E — Excel fills in the rest (no formulas).
- Excel 365:
=ТЕКСТДО(A2;" ")returns the part before the space, no FIND needed.
Try it in the simulator
Type =ЛЕВСИМВ(A2;НАЙТИ(" ";A2)-1) in C2 and fill it down to C5 to get the surnames. Then type =ЛЕВСИМВ(B2;2) in D2 to extract the passport series, and fill it down.
| A | B | C | D | E | F | G | H | I | J | K | L | M | N | O | P | Q | R | S | T | U | V | W | X | |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
| 1 | Full name | Passport | Surname | Series | ||||||||||||||||||||
| 2 | Karimov Aziz | AB1234567 | ||||||||||||||||||||||
| 3 | Rahimova Dilnoza | AD7654321 | ||||||||||||||||||||||
| 4 | Tursunov Javohir | AC0034512 | ||||||||||||||||||||||
| 5 | Yusupova Malika | AB9081726 | ||||||||||||||||||||||
| 6 | ||||||||||||||||||||||||
| 7 | ||||||||||||||||||||||||
| 8 | ||||||||||||||||||||||||
| 9 | ||||||||||||||||||||||||
| 10 |
Has ExcelLab been useful?
Support the project and help us release new lessons and exercises.