5. Text Functions & Data Cleaning

LEFT

Syntax Structure
=LEFT(text, [num_chars])
Returns the first character or characters in a text string.
Live Interactive Spreadsheet ⚡ All Excel Versions

Extract country prefix from Order codes.

fx
#A (Order Code)B (Country Code)C (Amount)
2USA-9921USA1400
3CAN-8812CAN890
4GBR-7721GBR2100
Calculated Output: USA
💡 Edit any table cell or formula to recalculate

String Extraction with LEFT

Extract country codes, prefixes, and initials from text fields.

💡 Pro Tip / Best Practice
Combine with LEN and FIND for dynamic substring extraction.
Scroll to Top