How to Remove Specific Text from a Column in Excel (8 Ways)

This article illustrates 8 different methods for how remove specific text from a column in excel. Deleting specific redundant text manually from a column in your dataset will be a tedious task. This article will help you to do that with simple formulas and VBA in excel. The following picture highlights the purpose of the article. Have a quick look through it to see how to do that.

Remove Specific Text from a Column in Excel


Download Practice Workbook

You can download the practice workbook from the download button below.


8 Ways to Remove Specific Text from a Column in Excel

Here I am going to illustrate the methods. So let’s begin.

1. Remove Specific Text from a Column with Find & Replace Feature

You can use the Find and Replace feature to delete particular text from a column in excel.

πŸ“Œ Steps

  • First, select your data in the required column.
  • Then press CTRL+H to open the Find and Replace window.
  • Next, enter the specific text (.com) you want to remove in the Find what box.
  • Then clear the Replace withΒ box or keep it empty.
  • After that, select the Replace All button.

Remove Specific Text from a Column with Find & Replace Feature

Finally, you will see the specific text removed from the entire column as shown below.πŸ‘‡


1.1 Remove Text before a Specific Text or Character in Excel

You can also remove all the texts before a specific text or a particular character (@) with the Find and Replace feature in excel.

πŸ“Œ Steps

  • First, select the target dataset (B5:B9).
  • Then press CTRL+H.
  • Next, enter an asterisk (*) followed by the particular text or character (@) in the Find what box.
  • After that, clear the Replace withΒ box or keep it empty.
  • Then, select the Replace All button.

Finally, you will see all the text before the particular character is removed as shown below.πŸ‘‡


1.2 Remove Text after a Specific Text or Character in Excel

You can remove texts after a specific text or a particular character with this feature as well.

πŸ“Œ Steps

  • At first, select the entire dataset.
  • Next, press CTRL+H.
  • Then, enter the particular text or character (@) and an asterisk (*) after that in the Find what box as shown below.
  • After that, clear the Replace withΒ box or keep it empty.
  • Then, select the Replace All button.

Now you will see all the text after the particular character is removed along with it.

Read More: How to Remove Text between Two Characters in Excel (3 Easy Ways)


2. Remove Specific Text from a Column with SUBSTITUTE Function

You can use the SUBSTITUTE function to delete specific text in excel. It uses the following arguments.

SUBSTITUTE(text, old_text, new_text, [instance_num])

πŸ“Œ Steps

  • First, enter the following formula in cell C5.
=SUBSTITUTE(B5,".com","")

After that, you will see the specific text (.com) is removed as shown in the picture below.πŸ‘‡

Remove Specific Text from a Column with SUBSTITUTE Function


2.1 Remove Multiple Specific Text from a Column in Excel

You can also remove/replace multiple particular texts from a column with this function. We will use multiple characters to demonstrate the method. You can use the desired texts instead.

πŸ“Œ Steps

  • First, enter the following formula in cell C5.
=SUBSTITUTE(SUBSTITUTE(SUBSTITUTE(B5,"#","("),"/",") "),"@","-")
  • Then drag the fill handle icon or double-click on it.

After that, all the specific characters are replaced with new characters. You can remove the characters as well by only using the double quotes (β€œβ€) instead of new characters in between them.

πŸ”Ž How Does the Formula Work?

➀ SUBSTITUTE(B5,”#”,”(β€œ)
First, # is replaced by ( as shown in the output below.
Output: β€œ(244/[email protected]”

➀ SUBSTITUTE(SUBSTITUTE(B5,”#”,”(β€œ),”/”,”)
Then, / is replaced with ).
Output: β€œ(244) [email protected]”

➀ SUBSTITUTE(SUBSTITUTE(SUBSTITUTE(B5,”#”,”(β€œ),”/”,”) β€œ),”@”,”-β€œ)
Finally, @ is replaced by –.
Output: β€œ(244) 647-5422”

Read More: How to Remove Specific Text from Cell in Excel (Easiest 11 Ways)


3. Delete Specific Text from a Column with LEFT and FIND Functions

Alternatively, you can use the LEFT function to remove specific text in excel. It uses the following arguments and returns the specified number of characters from the left of a text string.

LEFT(text, [num_chars])

We will use the FIND function for the [num_chars] argument. It has the following arguments and returns the starting position of a text string within another text.

FIND(find_text, within_text, [start_num])

πŸ“Œ Steps

  • At first, enter the following formula in cell C5.
=LEFT(B5,FIND(".",B5)-1)
  • Then double click on the fill handle icon or drag it to the cells below.

After that, you will get the same results as obtained in the earlier methods.

Delete Specific Text from a Column with LEFT Function

Read More: How to Remove Text From Excel Cell (9 Easy Ways)


4. Remove Specific Text from a Column with MID and FIND Functions

You can also do that with the MID function. It uses the following arguments and returns the specified number of characters from the middle of a text string.

MID(text, start_num, num_chars)

We will use the FIND function for the [num_chars] argument here too.

πŸ“Œ Steps

  • At first, enter the following formula in cell C5.
=MID(B5,1,FIND(".",B5,1)-1)
  • Then double click on the fill handle icon or drag it to the cells below.

After that, you will get the same results as obtained in the earlier methods.

Remove Specific Text from a Column with MID Function


5. Remove Specific Text from a Column Combining RIGHT, LEN, and FIND Function

Another alternate way to remove specific text is by using the RIGHT, LEN, and FIND functions together.

The RIGHT function has the following arguments and returns the specified number of characters from the right of a text string.

RIGHT(text, [num_chars])

The LEN function returns the number of total characters in a text string.

LEN(text)

πŸ“Œ Steps

  • At first, enter the following formula in cell C5.
=RIGHT(B5,LEN(B5)-FIND("@",B5))
  • Then double click on the fill handle icon or drag it to the cells below.

Finally, you will see the following results.πŸ‘‡

Remove Specific Text from a Column with RIGHT Function

πŸ”Ž How Does the Formula Work?

➀ LEN(B5)
The LEN function returns the number of characters in cell B5.
Output: 15

➀ FIND(β€œ@”,B5)
The FIND function returns the position of @ in cell C5.
Output: 5

➀ LEN(B5)-FIND(β€œ@”,B5)
Output: 10

➀ RIGHT(B5,LEN(B5)-FIND(β€œ@”,B5))
The RIGHT function returns 10 characters from the right of cell C5.
Output: β€œgoogle.com”

Read More: How to Remove Text before a Space with Excel Formula (5 Methods)


6. Delete Specific Text from a Column with REPLACE Function

The Replace function in excel also allows us to remove specific text from a text string. It has the following arguments.

REPLACE(old_text, start_num, num_chars, new_text)

πŸ“Œ Steps

  • At first, enter the following formula in cell C5.
=REPLACE(B5,1,4,"")
  • Then double click on the fill handle icon or drag it to the cells below.

Finally, you will see the following results.πŸ‘‡

Delete Specific Text from a Column with REPLACE Function

Read More: How to Remove Text After Character in Excel (3 Ways)


7. Remove Specific Text from a Column with Flash Fill

Using the Flash Fill feature can be another alternative way to remove a specific text from a column in excel. Follow the steps below to do that.

πŸ“Œ Steps

  • At first, assume you want to remove the titles () from a list of names (B5:B9).
  • Then enter the first name in cell C5 excluding the title (Bill Ayers).
  • Now as soon as you start typing the next name in cell C6, you will see a greyed-out flash fill list of all the names in column B as shown below.
  • If you don’t see the flash fill list, then enter the name in cell C6 and start typing in cell C7.
  • After that, you should see the grayed-out list.

Finally, hit the Enter key to get the desired result.

Remove Specific Text from a Column with Flash Fill

Alternatively, you can use the CTRL+E shortcut for the flash fill after entering the name in cell C5.

Read More: How to Remove Text from an Excel Cell but Leave Numbers (8 Ways)


8. Remove Particular Text from a Column with Excel VBA

You can use Excel VBA to do that too. Follow the steps below.

πŸ“Œ Steps

  • First, press ALT+F11 to open the VBA window.
  • Then select Insert >> Module as shown below.
  • After that, a new blank module will open.

  • Now copy the following code using the copy button.
Sub RemoveSpecificText()
Dim EndRow As Long
Dim Names As Range
EndRow = Cells(Rows.Count, "B").End(xlUp).Row
Set Names = Range("B5:B" & EndRow)
Names.Replace What:="Dr. ", Replacement:="", LookAt:=xlPart, _
SearchOrder:=xlByRows, MatchCase:=False, SearchFormat:=False, _
ReplaceFormat:=False
End Sub
  • Then paste the copied code on the blank module.

Remove Particular Text from a Column with Excel VBA

  • After that, keep the cursor in the code and press F5 to run it.

Finally, you will see the following result.πŸ‘‡


Things to Remember

  • Make sure the Replace tab is selected while using the Find and Replace feature.
  • You must put the text that you want to remove inside double quotes (β€œβ€) in the formulas.

Conclusion

Now you know 8 different ways to remove specific text from a column in excel. Please let us know which method you prefer the most. You can also use the comment section below for further queries or suggestions. Do visit our ExcelDemy blog to explore more about excel. Stay with us and keep learning.


Related Articles

Md. Shamim Reza

Md. Shamim Reza

Hello there! This is Md. Shamim Reza. Working as an Excel & VBA Content Developer at ExcelDemy. We try to find simple & easy solutions to the problems that Excel users face every day. Our goal is to gather knowledge, find innovative solutions through them and make those solutions available for everybody. Stay with us & keep learning.

We will be happy to hear your thoughts

Leave a reply

ExcelDemy
Logo