Data Analytics Roadmap
Excel Basics → Text Functions → Text Extraction (LEFT, RIGHT, MID, LEN)
EXCEL TEXT PARSING

Master Text Extraction

Learn how to slice, parse, and extract specific parts of text strings using LEFT, RIGHT, MID, and LEN in Excel!

⏱ ~12 Min Complete Guide✂️ Text Slicing Formulas🎮 Live Interactive String Slicer

1. Why Text Extraction is Essential for Data Analysts

Raw business data is messy. You will frequently receive single columns containing messy text strings like SKU-9842-NYC (Product Code + Serial + Location), john.doe@company.com (Email Username + Domain), or +1 (555) 234-5678 (Country Code + Area Code + Phone Number).

Instead of manually retyping thousands of rows, Excel provides 4 powerhouse text extraction formulas to chop up and extract any character range instantly!

🥖

Real-World Analogy: Cutting a Loaf of Bread

Think of text extraction formulas as a bread slicer:

1. LEFT(text, num):

Slice the crust off the FRONT (beginning) of the loaf.

2. RIGHT(text, num):

Slice the crust off the BACK (end) of the loaf.

3. MID(text, start, num):

Cut out a slice right out of the MIDDLE of the loaf!

LEFT FUNCTION

=LEFT(text, num_chars)

Extracts characters starting from the far left (beginning) of a text string.

=LEFT("SKU-9842", 3) ➔ "SKU"
RIGHT FUNCTION

=RIGHT(text, num_chars)

Extracts characters starting from the far right (end) of a text string.

=RIGHT("SKU-9842-NYC", 3) ➔ "NYC"
MID FUNCTION

=MID(text, start_num, num_chars)

Extracts characters starting at ANY position in the middle of a string.

=MID("SKU-9842-NYC", 5, 4) ➔ "9842"
LEN FUNCTION

=LEN(text)

Counts the total number of characters in a string (including spaces!).

=LEN("SKU-9842") ➔ 8

🎮 Live Interactive Character Slicer Simulator

Type custom text or choose a preset, pick a formula, and watch the exact characters highlight in real-time!

🔍 Visual Character Breakdown & Extraction Highlight

Total Length: 12 Characters
1
S
2
K
3
U
4
-
5
9
6
8
7
4
8
2
9
-
10
N
11
Y
12
C
FORMULA OUTPUT VALUE:"SKU"
📊 Generated Excel Formula
=LEFT(A2, 3)

🧪 Knowledge Check — Text Extraction Quiz

Question 1 of 5Score: 0

✂️ What does =LEFT('EXCEL', 3) return?