Quick Answer

LEFT Function

LEFT extracts a specified number of characters from the left side of a text string.

✓ Excel✓ Google SheetsExcel All versions

Syntax

LEFT
(text, [num_chars])

Parameters

ParameterDescriptionRequired
textThe text string from which to extract characters.Required
num_charsOptional. The number of characters to extract (default is 1).Optional

Basic Example

Extract first 3 characters

=LEFT("Hello World", 3)
ResultHel

Extracts the first 3 characters from "Hello World".

Advanced Examples

Example 1: Extract area code from phone number

Data cleaning

Get the first 3 digits from a phone number

=LEFT(A1, 3)
Result: 555
Extracts the area code from a phone number like "555-123-4567".

Example 2: Extract first word

Text parsing

Get the first word from a sentence

=LEFT(A1, FIND(" ", A1)-1)
Result: Hello
Combines LEFT with FIND to extract text before the first space.

How LEFT Works

LEFT counts from the beginning of the text string and returns the specified number of characters. If num_chars is omitted, it returns just the first character.

1
Select output cell
Choose where the result should appear.
2
Enter formula
Type =LEFT(text, number_of_characters).
3
Press Enter
The result shows the extracted text.

Important Notes & Limitations

  • LEFT counts each character as 1, including spaces.

  • Use RIGHT to extract from the end, or MID to extract from the middle.

Common Errors & Fixes

#VALUE!num_chars is negative

Fix: Ensure num_chars is a positive number.

Download Practice File

Practice LEFT with Real Data

Download a sample CSV file with pre-populated data and practice exercises for the LEFT function. Works in both Excel and Google Sheets.

Works in Google SheetsCompatible with ExcelIncludes exercises

File format: CSV (comma-separated values) - opens in Excel, Google Sheets, and all spreadsheet apps

Frequently Asked Questions

Does LEFT work with numbers?
Yes, numbers are treated as text. Use TEXT to format numbers first if needed.
What if num_chars exceeds the text length?
LEFT returns the entire text string.