Excel isn’t just for numbers—it’s a go-to tool for all sorts of tasks, from simple math to detailed analysis. When dealing with text, Excel has some neat tricks up its sleeve. One common task is pulling out specific parts of text, like the first or last few characters, from a cell.
Imagine you have a list of product names or IDs, and you want to grab just the first or last part of each one. Maybe you need to organize them differently or do some special calculations. That’s where substring extraction comes in handy.

In this article, we’ll show you how to use Excel to easily grab the parts of text you need, whether it’s the first few characters or the last ones. It’s not as hard as it sounds, and once you know how, you can do it whenever you need to! Let’s dive in.
Extracting the First N Characters:
LEFT Function:
The LEFT function is straightforward and ideal for extracting the first N characters from the left side of a text string.
Its syntax is simple: `=LEFT(text, num_chars)`. For example, to extract the first 5 characters from cell A2, you would use
=LEFT(A1, 5)
In our case, to grab the first 2 letters from a product ID, just use:
=LEFT(B2, 2)

This formula takes the first 2 letters from whatever’s in cell B2. Easy peasy!
Extracting the Last N Characters:
RIGHT Function:
The RIGHT function is the counterpart of the LEFT function, designed to extract characters from the right side of a text string.
Its syntax is: `=RIGHT(text, num_chars)`.
For instance, to extract the last 4 characters from cell A1, you would use
=RIGHT(A1, 4)
In our case, to snag the last 3 digits from a product ID, you’d write:
=RIGHT(B2, 3)

This formula takes the last 3 characters from whatever’s in cell B2. Simple, right?
With these simple “left” and “right” tricks, you can easily grab the start or end of words in Excel. It’s like magic scissors for your data, making it easier to work with and understand. So next time you need to snip off some parts of your words, you’ll know what to do!