How to extract first/last n characters from string in Excel?
For instance, there is a list with long strings in each cell, and you want to extract the first n characters from each string only, like the first 3 characters of each string, and now you can use the following methods to solve it in Excel.
Extract first/last n characters from string with formula
Extract first/last n characters from string with Kutools for Excel
Quickly remove special characters(numeric/alpha) from cells in Excel
|
Just several clicks with Remove Characters utilty of Kutools for Excel, the special characters will be removed from cells at once. Click for free trial in 30 days! |
![]() |
Kutools for Excel: with more than 300 handy Excel add-ins, free to try with no limitation in 30 days. |
Extract first/last n characters from string with formula
Extract first n characters from string
Select a blank cell, here I select the Cell G1, and type this formula =LEFT(E1,3) (E1 is the cell you want to extract the first 3 characters from), press Enter button, and drag fill handle to the range you want. Then you see the first 3 characters are extracted.
If you want to extract the last n characters, like the last 3 characters, type this formula = RIGHT(E1, 3).
Extract first/last n characters from string with Kutools for Excel
The Remove by Position feature of Kutools for Excel also can extract the first or last n characters only from strings in Excel.
Kutools for Excel includes more than 300 handy Excel tools. Free to try with no limitation in 30 days. Get it Now
1. Select the range you want to extract first 3 characters firstly, and click Kutools > Text Tools > Remove by position. See screenshot:
2. In the Remove by Position dialog, you need to type the number of the characters you want to remove from the string into the Numbers textbox, like in this case, I want to reserve the first 3 characters, so I need to remove 8 characters from right, then check From right. See screenshot
3. Click Ok, and you see only the first 3 character are reserved.
![]() |
![]() |
![]() |
Tip: If you want to extract the last 3 characters, check From left and specify the number of the characters you want to remove from the strings.
Note:
1. Applying this feature will change your original data, you’d better copy them firstly.
2. Only all the strings in each cell have the some characters long can this feature work.
Click here for more on Remove by Position.
Relative Articles:
The Best Office Productivity Tools
Kutools for Excel Solves Most of Your Problems, and Increases Your Productivity by 80%
- Reuse: Quickly insert complex formulas, charts and anything that you have used before; Encrypt Cells with password; Create Mailing List and send emails...
- Super Formula Bar (easily edit multiple lines of text and formula); Reading Layout (easily read and edit large numbers of cells); Paste to Filtered Range...
- Merge Cells/Rows/Columns without losing Data; Split Cells Content; Combine Duplicate Rows/Columns... Prevent Duplicate Cells; Compare Ranges...
- Select Duplicate or Unique Rows; Select Blank Rows (all cells are empty); Super Find and Fuzzy Find in Many Workbooks; Random Select...
- Exact Copy Multiple Cells without changing formula reference; Auto Create References to Multiple Sheets; Insert Bullets, Check Boxes and more...
- Extract Text, Add Text, Remove by Position, Remove Space; Create and Print Paging Subtotals; Convert Between Cells Content and Comments...
- Super Filter (save and apply filter schemes to other sheets); Advanced Sort by month/week/day, frequency and more; Special Filter by bold, italic...
- Combine Workbooks and WorkSheets; Merge Tables based on key columns; Split Data into Multiple Sheets; Batch Convert xls, xlsx and PDF...
- More than 300 powerful features. Supports Office / Excel 2007-2021 and 365. Supports all languages. Easy deploying in your enterprise or organization. Full features 30-day free trial. 60-day money back guarantee.

Office Tab Brings Tabbed interface to Office, and Make Your Work Much Easier
- Enable tabbed editing and reading in Word, Excel, PowerPoint, Publisher, Access, Visio and Project.
- Open and create multiple documents in new tabs of the same window, rather than in new windows.
- Increases your productivity by 50%, and reduces hundreds of mouse clicks for you every day!








