Excel & Google Sheets Function
LEFT, RIGHT & MID function in Excel (with interactive examples)
LEFT, RIGHT, and MID extract fixed or dynamic substrings from text — essential for parsing SKUs, area codes, and messy IDs.
Syntax
=LEFT(text, num_chars) | =RIGHT(text, num_chars) | =MID(text, start_num, num_chars)Live Interactive Exercise — Try it nowNo login required
Interactive practice grid (LEFT, RIGHT & MID reference)
Try our live spreadsheet engine: total Q1 sales in cell B5 using =SUM(B2:B4).
B5fx
| A | B | |
|---|---|---|
| 1 | Month | Sales |
| 2 | Jan | $1,100.00 |
| 3 | Feb | $1,350.00 |
| 4 | Mar | $1,550.00 |
| 5 | Total | type here |
Insert:
Arguments explained
| text | Required | Cell containing text to slice. |
| start_num | Optional | (MID only) 1-based starting character position. |
| num_chars | Required | Number of characters to extract. |
Common errors & fixes
Extracted digits behave as text: Wrap the output in VALUE() or multiply by 1 when comparing to numeric IDs.
Excel vs Google Sheets
Identical in Excel and Google Sheets.
Practise LEFT, RIGHT & MID in a full 4-minute lesson
Every lesson is free to study — build real speed with instant feedback.
Free 1-Page Excel, Google Sheets & SQL Interview Cheat Sheet
The 25 formulas, keyboard shortcuts, and SQL patterns tested most in analyst interviews — emailed instantly, zero spam.