How to Remove matching characters in Text in Excel

In this article, we will learn about how to remove matching characters in Text in Excel.
In simple words, while cleaning numbers to get just the numbers and no characters in the cell. We will use SUBSTITUTE function to remove unwanted characters.
The SUBSTITUTE function finds and replaces the text from the cell. Find and Replace text is provided in the formula. Unlike REPLACE function we don’t need to provide the position of the replacement text.

Generic formula

=SUBSTITUTE (text, "char", "")

Text : character to be removed from the text
Char : character to be removed, within quotes
"" : empty string is replaced with char.
Let’s understand this function using it in an example.
0053
Here “-” is removed from the numbers and returns the number with no “-”.
Now we will remove all unwanted characters from the input numbers.
0054
We can use the SUBSTITUTE function inside SUBSTITUTE function multiple times.
Use the formula:

=SUBSTITUTE(SUBSTITUTE(SUBSTITUTE(SUBSTITUTE(SUBSTITUTE(A2,"(",""),")",""),"]",""),"[",""),"-","")

Explanantion:
Here 5 SUBSTITUTE functions are used to remove 5 unwanted chars.

  1. (
  2. )
  3. -
  4. [
  5. ]

0055
As you can see the formula removes all the unwanted characters. Hence we get the clean numbers as required.

Note: The SUBSTITUTE function is a case sensitive function.

Hope you understood how to remove matching characters from text in Excel. Explore more articles on Excel text functions here. Please feel free to state your query or feedback for the above article.

Related Articles:

Excel REPLACE vs SUBSTITUTE function in Excel

How to Use TRIM function in Excel

Remove unwanted characters in Excel

How to Use REPLACE function in Excel

How to Use SUBSTITUTE function in Excel

Popular Articles :

50 Excel Shortcut to Increase Your Productivity : Get faster at your task. These 50 shortcuts will make you work even faster on Excel.

How to use the VLOOKUP Function in Excel : This is one of the most used and popular functions of excel that is used to lookup value from different ranges and sheets.

How to use the COUNTIF function in Excel : Count values with conditions using this amazing function. You don't need to filter your data to count specific values. Countif function is essential to prepare your dashboard.

How to use the SUMIF Function in Excel : This is another dashboard essential function. This helps you sum up values on specific conditions.

Leave a Reply

Your email address will not be published. Required fields are marked *

Terms and Conditions of use

The applications/code on this site are distributed as is and without warranties or liability. In no event shall the owner of the copyrights, or the authors of the applications/code be liable for any loss of profit, any problems or any damage resulting from the use or evaluation of the applications/code.

Visit Us On TwitterVisit Us On FacebookVisit Us On Youtube