Excel Formulas to Remove the Text by Matching ~ Quick Tricks!!
Tags: excelformula, excelformulas
Published: 2021-06-21 10:13:36

---
title: Excel Formulas to Remove the Text by Matching ~ Quick Tricks!!
published: true
date: 2021-06-15 13:36:57 UTC
tags: ExcelFormula,Excelformulas
canonical_url: https://geekexcel.com/excel-formulas-to-remove-the-text-by-matching/
---

When working with text data in Excel, you may have the need to remove the text before or after a specific character or text string. Here we will guide you to **remove the text by matching it in Excel**. Let’s dive into this article!! Get an official version of ** MS Excel**  from the following link: [https://www.microsoft.com/en-in/microsoft-365/excel](https://www.microsoft.com/en-in/microsoft-365/excel)

[![Remove the text by range](https://geekexcel.com/wp-content/uploads/2021/06/Remove-the-text-by-range.png)](https://geekexcel.com/excel-formulas-to-remove-the-text-by-matching/remove-the-text-by-range/#main)<figcaption id="caption-attachment-46484">Remove the text by matching</figcaption>

## General Formula:

- You can use the below formula to remove the text by matching in Excel.

**=[SUBSTITUTE](https://geekexcel.com/how-to-use-substitute-function-in-microsoft-excel-2013/)(A1,text\_to\_remove,””)**

## Syntax Explanations:

- **SUBSTITUTE** – This function can replace existing text with new text in a text string when you want to replace text based on its content, not position.  Read more on the [**SUBSTITUTE**  **function**](https://geekexcel.com/how-to-use-substitute-function-in-microsoft-excel-2013/).
- **A1** – It represents the input value.
- **Text\_to\_remove** – It represents criteria text.
- **Comma symbol (,)** – It is a separator that helps to separate a list of values.
- **Parenthesis ()** – The main purpose of this symbol is to group the elements.

## Example:

Let’s consider the below example image.

- First, we will enter the input text strings in **Column B**.
- Now we are going to delete some text that matched the given formula.

![Input Ranges](https://geekexcel.com/wp-content/uploads/2021/06/Input-Ranges-35.png)<figcaption id="caption-attachment-46483">Input Ranges</figcaption>

- Select any cell and type the above-given formula.

![Enter the formula](https://geekexcel.com/wp-content/uploads/2021/06/Enter-the-formula-47.png)<figcaption id="caption-attachment-46482">Enter the formula</figcaption>

- Finally, press the ** ENTER**  key, you can get the result as shown below.

![Result](https://geekexcel.com/wp-content/uploads/2021/06/Result1-5.png)<figcaption id="caption-attachment-46481">Result</figcaption>

## Wrap-Up:

Here we have described the formulas to **remove the text by matching in Excel**. Hope you like this article. Mention your **queries** in the **comment** box below.

Thank you so much for visiting  **[Geek Excel](https://geekexcel.com/)!! **If you want to learn more helpful formulas, check out [**Excel Formulas**](https://geekexcel.com/excel-formula/) **!! **

### Read Ahead:

- **[Excel Formulas to Remove the Last Word ~ Easy Tutorial!!](https://geekexcel.com/excel-formulas-to-remove-the-last-word-easy-tutorial/)**
- **[Formulas for Counting Rows that Matches Two or More Criteria in Excel!!](https://geekexcel.com/formulas-for-counting-rows-that-matches-two-or-more-criteria-in-excel/)**
- **[Excel Formulas to Remove the Line Breaks Between Two Text Strings!!](https://geekexcel.com/excel-formulas-to-remove-the-line-breaks-between-two-text-strings/)**
- **[Excel Formulas to Normalize the Text ~ A Complete Tutorial!!](https://geekexcel.com/excel-formulas-to-normalize-the-text-a-complete-tutorial/)**