LEFT Function

LEFT Function

LEFT Function

Extracts a chosen number of characters from the start of a text string.

ExcelClash Team
PUBLISHED

Summary

The Excel LEFT function returns characters from the beginning of a text string. You choose how many characters to take, and Excel starts from the left side. For example, =LEFT("EC-101",2) returns "EC".

LEFT is useful when the part you need is always at the start of the value. Common examples are prefixes, initials, area codes, and the first part of a structured code. When the length is fixed, LEFT is enough on its own. When the length changes, you usually combine it with FIND or SEARCH.

Purpose

Extract text from the start

Returns the first part of a text string based on the number of characters you request.

Return Value

A text string

Returns text. If you ask for more characters than the text contains, Excel returns the whole string.

Syntax

=LEFT(text, [num_chars])

The first argument is the text to extract from. The second argument is how many characters to return. If you leave num_chars out, Excel uses 1, so =LEFT(A1) returns only the first character.

Arguments

  • text - [Required] The cell or text string you want to extract from.
  • num_chars - [Optional] The number of characters to return. The default is 1.

LEFT vs Other Functions

LEFT, RIGHT, and MID all extract text, but they start from different positions. LEFT starts at the beginning, RIGHT starts at the end, and MID starts from any position you specify.

Function Starts From Use When
LEFT The first character The part you need is at the beginning
RIGHT The last character The part you need is at the end
MID A position you choose The part you need is in the middle
FIND / SEARCH - You first need the position of a separator

Using LEFT

If every value follows the same pattern, LEFT is simple. A formula like =LEFT(A1,3) can return a three-letter code from every row. This is common with product prefixes, class codes, and short identifiers.

If the length is not fixed, LEFT becomes more useful when paired with FIND. For example, =LEFT(A1,FIND("-",A1)-1) returns everything before the first hyphen. Because FIND locates the hyphen first, the formula still works even when the prefix length changes.

  • Use LEFT(A1,n) when the number of characters is always the same.
  • Use LEFT(A1,FIND("-",A1)-1) when the text ends at a separator.
  • Use LEFT(A1,1) when you only need the first letter.

Example 1 - Extracting a Fixed Number of Characters

This is the basic LEFT pattern. Excel starts at the first character and returns the number of characters you specify. It works best when the structure is consistent across the whole column.

=LEFT("ExcelClash", 5)  // "Excel"
=LEFT("ENG-2026", 3)    // "ENG"
=LEFT("EC-101", 2)      // "EC"
Check Answer
Challenge #1
Target: Sheet1!F1
Get the First 5 Characters

In cell F1, use LEFT to extract the first 5 characters from "ExcelClash". Expected result: "Excel".

Example 2 - Pulling an Area Code from a Phone Number

When the area code always appears at the start in the same format, LEFT can extract it directly. Here the first five characters are (212), so that is what the formula returns.

=LEFT(A1, 5)   // "(212) 555-0101" -> "(212)"
Check Answer
Challenge #2
Target: Sheet1!F2
Get the Area Code

In cell F2, use LEFT on A1 to extract the first 5 characters, which gives the area code "(212)".

Example 3 - Getting the First Letter from a Name

If you set num_chars to 1, LEFT returns only the first character. This is useful for initials, short labels, or checks based on the first letter of a value.

=LEFT(B2, 1)     // "John Smith" -> "J"
=LEFT(B2, 1)&"." // "J."
Check Answer
Challenge #3
Target: Sheet1!F3
Get the First Initial

In cell F3, use LEFT on B2 ("John Smith") to extract just the first letter. Expected result: "J".

Example 4 - Extracting a Variable-Length Prefix Dynamically

When the prefix length changes, LEFT alone is not enough because you do not know how many characters to take. In that case, FIND returns the position of the hyphen, and LEFT uses that result to cut the text at the correct point.

=LEFT(C1, FIND("-",C1)-1)
// "MTL-005" -> finds "-" at position 4 -> returns "MTL"
Check Answer
Challenge #4
Target: Sheet1!F4
Extract a Product Prefix Dynamically

In cell F4, use FIND to locate the hyphen in C1 ("MTL-005"), then use LEFT to extract everything before it.

LEFT works on text, but Excel will also apply it to numbers and dates by first converting them to text. That can be useful, but it can also produce results that look odd if you expected numeric behavior. It is best to use LEFT when you are clearly working with text-based values or text-like codes.

  • LEFT is best when the needed part is at the beginning of the value.
  • Use FIND or SEARCH with LEFT when the cut point depends on a separator.
  • Use RIGHT for text at the end, and MID for text in the middle.

Conclusion Recap

  • Summary: LEFT returns characters from the beginning of a text string.
  • Syntax: =LEFT(text, [num_chars]).
  • Key point: If num_chars is omitted, Excel returns just the first character.
  • Practical usage: Prefixes, initials, area codes, and text before a separator.
  • Best pattern: Combine LEFT with FIND when the prefix length is not fixed.
Tactical Arena
Select Scenario:
Share LEFT Function!

Tell your friends about this post

Discussion

ExcelClash is an interactive platform designed to level up your Excel skills through real-world exercises and challenges. Sharpen your logic, solve real spreadsheet problems, and learn faster.

© 2026 ExcelClash, Inc. All rights reserved.