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 extract extension from filename in Excel?

Let’s say you have a list of filenames in a worksheet as left screenshot shown, and now you need to extract the extensions from each filename. How to solve it easily in Excel? In this article, I will introduce three methods to archive it.

Extract extensions from filenames with formulas

Extract extensions from filenames with Extract Text utility of Kutools for Excel

Extract extensions from filenames with Split Cells utility of Kutools for Excel

Easily extract all extensions from multiple filenames in bulk in Excel

With excellent Extract Text feature of Kutools for Excek, you can easily extract all extensions from all selected filenames in bulk in Excel as below screenshot shown.  Full Feature Free Trial 60-day!
ad extract extension


arrow blue right bubble Extract extensions from filenames with formulas

If you are familiar with Excel functions, you can combine the Right function, Find function, Substitute function and Len function to extract extensions from filenames. Please do as follows:

Select a blank cell next to the file names, and enter the formula =RIGHT(A2,LEN(A2)-FIND("|",SUBSTITUTE(A2,".","|",LEN(A2)-LEN(SUBSTITUTE(A2,".",""))))) into it, and then drag the Fill Handle to the range as you need. See below screenshots:

doc extract extension from filenames 2

Note: In above formula, A2 is the filename cell that you will extract extension from. And you can change it based on your needs.


arrow blue right bubble Extract extensions from filenames with Extract Text utility of Kutools for Excel

If you have Kutools for Excel installed, its Extract Text utility can help you extract extensions from filenames easily. Please do as follows:

Kutools for Excel - Combines more than 300 Advanced Functions and Tools for Microsoft Excel

1. Select the filename cells that you will extract extensions from, and click the Kutools > Text > Extract Text.

2. In the opening Extract Text dialog box, type .*  into the Text box, click the Add button, and then click the Ok button.

Note: If there already has extract rules in the Extract list, please clear all the old rules except the new added one.

3. In the new opening dialog box, specify the first cell address of destination range, and click the OK button.

Now you will see all extensions of filenames are extracted and output into the specified range. See below screenshot:

Kutools for Excel - Includes more than 300 handy Excel tools. Full feature free trial 60-day, no credit card required! Get it now!


arrow blue right bubble Extract extensions from filenames with Split Cells utility of Kutools for Excel

Apart from Extract Text utility, you can also apply Kutools for Excel’s Split Cells utility to extract extensions from filenames. Please do as follows:

Kutools for Excel - Combines more than 300 Advanced Functions and Tools for Microsoft Excel

1. Select the filename cells that you will extract extensions from, and click the Kutools > Text > Split Cells.

2. In the popping out Split Cells dialog box, check Split to Columns option, check Other option, type . into the below box, and click the Ok button.

3. In the second Split Cells dialog box, specify the first cell address of destination range, and click the OK button.

Now you will see the filenames column is split into two columns: filename column and extension column as below screenshot shown.

If necessary, please delete the new filename column based on your needs.

Kutools for Excel - Includes more than 300 handy Excel tools. Full feature free trial 60-day, no credit card required! Get it now!


Demo: extract extensions from filenames in Excel

In this Video, the Kutools tab and the Kutools Plus tab are added by Kutools for Excel. If need it, please click here to have a 60-day free trial without limitation!


arrow blue right bubbleRelated articles:



Recommended Productivity Tools for Excel

Kutools for Excel Helps You Always Finish Work Ahead of Time, and Stand Out From Crowd

  • More than 300 powerful advanced features, designed for 1500 work scenarios, increasing productivity by 70%, give you more time to take care of family and enjoy life.
  • No longer need memorizing formulas and VBA codes, give your brain a rest from now on.
  • Become an Excel expert in 3 minutes, Complicated and repeated operations can be done in seconds, 
  • Reduce thousands of keyboard & mouse operations every day, say goodbye to occupational diseases now.
  • 110,000 highly effective people and 300+ world-renowned companies' choice.
  • 60-day full features free trial. 60-day money back guarantees. 2 years of free upgrade and support.

Brings Tabbed Browsing and Editing to Microsoft Office, Far More Powerful Than The Browser's Tabs

  • Office Tab is designed for Word, Excel, PowerPoint and Other Office Applications: 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!
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.

Be the first to comment.