Remove Specific Text From a Cell in Excel & Google Sheets

Written by

Editorial Team

Reviewed by

Steve Rynearson

Last updated on February 7, 2023
Download Example Workbook

Download the example workbook

This tutorial will demonstrate how to remove specific text from a cell in Excel & Google Sheets.

Remove Text By Matching In Excel

Remove Specific Text

To find and remove specific text in Excel, we can use the SUBSTITUTE function.

Let’s say we have hyphen signs (“-“) in a text and we want to remove it. We can do this with SUBSTITUTE function by using the following formula:

=SUBSTITUTE(B3,"-","")

Remove Text By Matching Example

In this example, we’ve provided the cell reference (B3), the content we want to remove from the text (“-”), and for replacement text, the empty string (“”).

The SUBSTITUTE function replaces all the hyphens “-” with nothing.

We can remove any other character or text from the main text string by replacing the hyphen sing (“-“) in the formula with that character or text.

Remove more than one Character

We can also remove more than one character from the text by nesting SUBSTITUTE functions.

Let’s say we have parenthesis and hyphens in text and we want to remove them both. We’ll nest SUBSTITUTE functions three times, to get the desired result, like this:

=SUBSTITUTE(SUBSTITUTE(SUBSTITUTE(B3,"(",""),")",""),"-","")

Remove Multiple Characters

First, the Excel will remove the “(” character from the text, then moves to the outer nested SUBSTITUTE function and removes the “)”, and then proceeds to the further outer SUBSTITUTE function and removes the hyphen sign (“-“).

Remove Text In Google Sheets

The formula to remove the text by matching content works exactly the same in Google Sheets as in Excel:

Remove Text By Matching In Google Sheets

AI Formula Generator

Try for Free

Excel Practice Worksheet

practice excel worksheet

Practice Excel functions and formulas with our 100% free practice worksheets!

  • Automatically Graded Exercises
  • Learn Excel, Inside Excel!

Free Download

Return to Excel Formulas List