Data Analytics Roadmap
Excel Basics → Text Functions → LEFT Function Complete Masterclass
EXCEL TEXT EXTRACTION

Master the LEFT Function

Extract starting prefixes, product codes, country codes, and first names directly from the beginning of any text cell in Excel!

⏱ ~15 Min Complete Masterclass✂️ Prefix Extraction🎮 Interactive Slicer Simulator

1. What is the LEFT Function & How Does It Work?

The LEFT function is Excel's primary text extraction tool for grabbing characters from the far left (beginning) of a text string. Whether you are parsing product codes like SKU-9842-NYC to isolate the department category (SKU), or parsing customer full names to grab first initials, LEFT performs instantaneous character counting.

Formula Anatomy: The Parameters of LEFT()

=LEFT( text , [num_chars] )
1. TEXT (REQUIRED)

Which cell contains the text?

The text string or cell reference (e.g. A2) you want to extract from.

A2 = "SKU-9842-NYC"
2. NUM_CHARS (OPTIONAL)

How many characters to grab?

Number of characters to extract starting from character 1. Default is 1 if omitted.

3 (Extracts "SKU")

2. Real-World Analytics Scenarios for LEFT

📦 Scenario A: Product Category SKU Codes

Isolate the 3-letter product department code from SKU-9842-NYC.

=LEFT(A2, 3) ➔ "SKU"

📞 Scenario B: Country Dialing Codes

Extract international country codes from phone numbers like +91-9876543210.

=LEFT(A2, 3) ➔ "+91"

💡 Scenario C: Dynamic First Name Parsing

Combine LEFT with SEARCH(" ", A2) to dynamically extract first names of variable length!

=LEFT(A2, SEARCH(" ", A2)-1)

🎮 Live Interactive LEFT Slicer Simulator

Type text, adjust the character count slider, or test dynamic SEARCH() delimiter matching!

🔍 Visual Character Extraction Highlight

Extracting first 3 of 12 characters
1
S
2
K
3
U
4
-
5
9
6
8
7
4
8
2
9
-
10
N
11
Y
12
C
LEFT FORMULA RESULT CELL:"SKU"
📊 Generated Excel Formula
=LEFT(A2, 3)

🧪 Knowledge Check — LEFT Function Quiz

Question 1 of 5Score: 0

✂️ What does =LEFT('DATALABS', 4) return?