WRONG RESULTWrong result
Check that every range starts and ends on the same rows, and that numbers are stored as numbers.
LEFT / RIGHT / MIDUse LEFT / RIGHT / MID to extract a prefix from an invoice number. This guide shows the exact structure, a working example and the mistakes most likely to break it.
Verified by JosephineReviewed July 25, 2026✓=LEFT(string, [number_of_characters])stringsource text
number_of_charactersamount to return
Edit any highlighted cell below. The example recalculates immediately.
| A · TEXT | |
|---|---|
| 2 | |
| 3 | |
| 4 | |
| 5 |
INVUpdates liveTry changing a value above. This example runs entirely in your browser.
stringsource text
number_of_charactersamount to return
WRONG RESULTCheck that every range starts and ends on the same rows, and that numbers are stored as numbers.
FORMULA PARSE ERRORCheck commas, quotation marks and closing parentheses. Your locale may use semicolons instead of commas.
UNEXPECTED BLANKSTest the source cells for hidden spaces, empty strings and inconsistent data types.