How to remove extension from filename in Excel?
For removing extension from filenames and only leaving the filename as below screenshot shown, here are two methods for you.
- Reuse Anything: Add the most used or complex formulas, charts and anything else to your favorites, and quickly reuse them in the future.
- More than 20 text features: Extract Number from Text String; Extract or Remove Part of Texts; Convert Numbers and Currencies to English Words.
- Merge Tools: Multiple Workbooks and Sheets into One; Merge Multiple Cells/Rows/Columns Without Losing Data; Merge Duplicate Rows and Sum.
- Split Tools: Split Data into Multiple Sheets Based on Value; One Workbook to Multiple Excel, PDF or CSV Files; One Column to Multiple Columns.
- Paste Skipping Hidden/Filtered Rows; Count And Sum by Background Color; Send Personalized Emails to Multiple Recipients in Bulk.
- Super Filter: Create advanced filter schemes and apply to any sheets; Sort by week, day, frequency and more; Filter by bold, formulas, comment...
- More than 300 powerful features; Works with Office 2007-2019 and 365; Supports all languages; Easy deploying in your enterprise or organization.
You can remove extension from file name with formula, please do as follows.
1. Select a blank cell adjacent to the filename (here we select cell B2), type formula =LEFT(A2,LOOKUP(2^15,FIND(".",A2,ROW(INDIRECT("1:"&LEN(A2)))))-1) into the Formula Bar, and then press the Enter key.
You can see the file name is extracted to the selected cell without extension.
2. Select the cell B2, drag the Fill Handle down to the cells until all filenames are extracted without extensions. See screenshot:
With the Split Cells utility of Kutools for Excel, you can get the filenames without extensions with splitting cells by comma.
|Kutools for Excel : with more than 300 handy Excel add-ins, free to try with no limitation in 60 days.|
1. Select the cells with filename you want to remove extension. Click Kutools > Text > Split Cells. See screenshot:
2. In the Split Cells dialog box, select Split to Columns option in the Type section based on your needs, then select the Other box, type dot mark “.” Into the box, and then click the OK button.
3. In another popping up Split Cells dialog box, select a blank cell for locating the filename, and then click the OK button.
You will get all filenames without extensions immediately in specified cells. See screenshot:
Note: If there are multiple dot marks existing in the file name, the Split Cells utility will separate this file name to multiple cells based on the dot mark numbers.
You are guest ( Sign Up? )
or post as a guest, but your post won't be published automatically.
- To post as a guest, your comment is unpublished.· 7 months agoThis is not a good example since the file names may contain any number of ".", i.e. my.file.pdf, another.file.like this.pdf
- To post as a guest, your comment is unpublished.· 11 months agoThe formula version does not work with Excel 2016, i just can't figure out how to do get it done.
I get a formula error =1+1 results in 2 and '=1+1 results in 1+1...