I have a excel file, in which one column has the data set such as following:
1.txt
2.txt
3.txt
100.txt
20.txt
30.txt
I have to replace this column with the following one by removing all of the .txt from each cell
1
2
3
100
20
30
How to do that in Excel? Thanks.
user785099,
You may find it useful to use the “Text to Columns” feature, or possibly “Search & Replace”.
Text to Columns
Select the column in question. Under the
Datatab findText to Columns, choose this, and underOriginal Data TypechooseDelimited. SelectNext. Then underDelimiterspecifyOtherand insert a.in the corresponding field and chooseFinish.This will result in two columns, you can just delete the one populated with
txtSearch & Replace
Highlight the column, or cells
Use the keyboard shortcut
ctrl+hor graphically selectHome->Find & Select->Replace ...to bring up the Find & Replace dialog box