Tip: Other languages are Google-Translated. You can visit the English version of this link.
Log in
x
or
x
x
Register
x

or

How to remove all but first x characters from cells in Excel?

If you have a column of text strings that you just want to keep the first two characters and remove all other characters from the cells, excepting remove them one by one, do you have any other quick ways to deal with this problem in Excel?

Remove all but first x characters from cells with formula

Remove all but first x characters from cells with Kutools for Excel

Remove first / last x characters from cells with Kutools for Excel


Remove all but first x characters from cells with formula


Supposing you have the following data range, now you need to remove all characters but first two characters, the following simple formula can help you.

doc remove all but first 1

1. Enter this formula into a blank cell, B1, for example, =LEFT(A1,2), see screenshot:

doc remove all but first 2

Tips: In the above formula, A1 is the cell that you want to use, the number 2 indicates the number of characters that you want to keep, you can change them to your need.

2. Then drag the fill handle down to the cells that you want to apply this formula, and all characters have been removed from the cells but only keep the first two characters of the string. See screenshot:

doc remove all but first 3

Note: If you want to remove all but the last two characters, you can use this formula: =RIGHT(A1,2), and you also can change A1 and number 2 to others as you need.


Remove all but first x characters from cells with Kutools for Excel

If you have installed Kutools for Excel, with its Remove by Position utility, you can quickly remove first or last x characters you don’t want, on the contrary, you can also remove all but first x characters.

Kutools for Excel : with more than 300 handy Excel add-ins, free to try with no limitation in 60 days. 

After installing Kutools for Excel, please do as follows:( Download and free trial Kutools for Excel Now ! )

1. Select the cells that you want to remove all but the first two characters.

2. Click Kutools > Text > Remove by Position, see screenshot:

doc remove all but first 4 4

3. In the Remove by Position dialog box, enter a large possible number as longas your largest text string into the Numbers text box which means these characters will be removed, then select Specify under the Position section, and enter the number position where you want to remove the characters from, see screenshot:

doc remove all but first 5

4. Then click Ok or Apply button, in this case, all the characters have been removed from the text string but only leave the first two characters, see screenshots:

doc remove all but first 6  2 doc remove all but first 7

Click to know more about this Remove by Position feature…


Remove first / last x characters from cells with Kutools for Excel

The Remove by Position feature also can help you to remove the first or last x characters you need. Take the above data for example, now, I want to delete the first two characters to get the following result:

doc remove all but first 6  2 doc remove all but first 8

After installing Kutools for Excel, please do as follows:

1. Select the data range that you want to remove the first two characters.

2. Apply this feature by clicking Kutools > Text > Remove by Position, in the popped out Remove by Position dialog box, specify the number of characters to be removed in Numbers textbox. And then check From left to remove the first x characters, and check From right to remove the last x characters under Position. You can view the result from the Preview pane. See screenshot:

doc remove all but first 9

3. Then click Ok or Apply button to get the result that you want.

Click to know more about this Remove by Position feature…

Download and free trial Kutools for Excel Now !


Demo: Remove all but first x xharacters / Remove first or last x characters from cells

Kutools for Excel: with more than 200 handy Excel add-ins, free to try with no limitation in 60 days. Download and free trial Now!


Related article:

How to remove prefix / suffix from multiple cells in Excel?


Excel Productivity Tools

Ribbon of Excel (with Kutools for Excel installed)

300+ Advanced Features Increase Your Productivity by 70%, and Help You To Stand Out From Crowd!

Would you like to complete your daily work quickly and perfectly? Kutools For Excel brings 300+ cool and powerful advanced features (Combine workbooks, sum by color, split cell contents, convert date, and so on...) for 1500+ work scenarios, helps you solve 80% Excel problems.

  •  Deal with all complicated tasks in seconds, help to enhance your work ability, get success from the fierce competition, and never worry about being fired.
  •  Save a lot of work time, leave much time for you to love and care the family and enjoy a comfortable life now.
  •  Reduce thousands of keyboard and mouse clicks every day, relieve your tired eyes and hands, and give you a healthy body.
  •  Become an Excel expert in 3 minutes, and get admiring glance from your colleagues or friends.
  •  No longer need to remember any painful formulas and VBA codes, have a relaxing and pleasant mind, give you a thrill you've never had before.
  •  Spend only $39, but worth than $4000 training of others. Being used by 110,000 elites and 300+ well-known companies.
  •  60-day unlimited free trial. 60-day money back guarantee. Free upgrade and support for 2 years. Buy once, use forever.
  •  Change the way you work now, and give you a better life immediately!

Office Tab Brings Efficient And Handy Tabs to Office (include Excel), Just Like Chrome, Firefox, And New IE

  • Increases your productivity by 50% when viewing and editing multiple documents.
  • Reduce hundreds of mouse clicks for you every day, say goodbye to mouse hand.
  • Open and create documents in new tabs of same window, rather than in new windows.
  • Help you work faster and easily stand out from the crowd! One second to switch between dozens of open documents!
Say something here...
symbols left.
You are guest ( Sign Up? )
or post as a guest, but your post won't be published automatically.
Loading comment... The comment will be refreshed after 00:00.
  • To post as a guest, your comment is unpublished.
    Nair · 2 years ago
    really helpful and useful... thank you,