How to Remove Extension from Filename in Excel?


This ostensibly straightforward chore might help you to save time and effort whether you're handling a sizable dataset or organising your files. We'll walk you through the process of eliminating file extensions from filenames using Microsoft Excel in this step-by-step tutorial. The file type and associated programmes are identified by file extensions, which are crucial components of filenames. For instance, the extensions ".docx" and ".xlsx" stand for Microsoft Word documents and Excel workbooks, respectively.

Even while file extensions have important functions, there are times when you might want to get rid of them. You might be creating a clear list of filenames for a presentation or organising files by their unique names alone without taking their categories into account. Excel has a robust collection of features and functions that make it simple to work with text strings. You can quickly remove file extensions from your filenames by combining some of these operations, which will save you time and guarantee that your data is organised.

Remove Extension From Filename

Here we will first get any one of the values using the formula, then use the autofill handle to complete the task. So let us see a simple process to know how you can remove the extension from a filename in Excel.

Step 1

Consider an Excel sheet where you have a list of file names with extensions similar to the below image.

First, click on an empty cell, in this case cell B2, and enter the formula as

=LEFT(A2,LOOKUP(2^15,FIND(".",A2,ROW(INDIRECT("1:"&LEN(A2)))))-1) and click enter to get the value.

Empty Cell > Formula > Enter.

Step 2

Then drag down using the autofill handle. Then you will see that file extensions will be removed from the file names.

This is how you can remove file extensions from file names in Excel.

Conclusion

In this tutorial, we have used a simple example to demonstrate how you can remove the extension from a filename in Excel to highlight a particular set of data.

Updated on: 07-Sep-2023

872 Views

Kickstart Your Career

Get certified by completing the course

Get Started
Advertisements