How to Remove Parentheses in Excel?

In this article, we will demonstrate 4 easy methods to remove parentheses in Excel.

How to Remove Parentheses in Excel


What Are Parentheses in Excel?

In general, Parentheses are a pair of characters or symbols that group elements together, which have different expressions in different contexts. Common examples include (), {} and {}. In Excel, values inside parentheses are evaluated first, before other operations in a formula.

There are 2 scenarios involving parentheses in calculation in Excel:

  • In the case of more than one parenthesis in a formula, the calculation is done from left to right.
  • On the other hand, when there are multiple parentheses inside one another, they will be calculated in an inside-out process. So, the innermost formula or value is evaluated first and the outermost last.

How to Remove Parentheses in Excel: 4 Easy Ways

We’ll use the dataset below to illustrate our methods. There are numbers within parentheses in every Product ID. The numbers denote the product codes, whereas the parentheses are redundant.

Dataset to Remove Parentheses

We’ll remove the parentheses using the methods below.


Method 1 – Using Find & Replace to Remove Parentheses

In this first method, we will use the Find & Replace command to remove the parentheses one at a time.

  • Select the range B5:B11.
  • Select Find & Select from the Home tab

Selecting Find & Select from Home Tab

  • In the drop-down menu, choose Replace.

Choosing Replace Option

The Find & Replace dialogue box opens. It can also be opened with the keyboard shortcut Ctrl + H.

  • Now, type “(“ in the Find what box and keep the Replace with box empty.
  • Click Replace All to remove the opening bracket.

Inserting 1st Parentheses to Replace

  • Now type “)“ in the Find what box and keep the Replace with box empty.
  • Click Replace All again.

Inserting 2nd Parentheses to Replace

The parentheses are removed completely.

Final Output of Using Find & Replace to Remove Parentheses

Note: To remove the parenthesis including the text inside, type (*) in the Find What box and click Replace All.

Replacing Parentheses with Text

Read More: How to Remove Non-Alphanumeric Characters in Excel


Method 2 – Using the SUBSTITUTE Function to Delete Parentheses in Excel

The SUBSTITUTE function finds text in a cell and replaces it with different text. First, we’ll remove the opening parenthesis in Column Output1, and then the closing parenthesis in Column Output2.

Steps:

  • Select Cell D5 and enter the formula below:
=SUBSTITUTE(B5,"(","")
  • Press Enter.

Inserting SUBSTITUTE Function for Output 1

  • Drag the Fill Handle icon down to copy the formula to the cells below.

The opening parentheses are gone.

Removing 1st Parentheses

  • In Cell E5, enter the following formula:
=SUBSTITUTE(D5,")","")

Removing 2nd Parentheses with SUBSTITUTE Function

  • Press Enter and drag the Fill Handle icon to copy the formula.

Both parentheses have now been removed

How to Remove Parentheses in Excel


Method 3 – Using VBA Macros to Erase Parentheses in Excel

We can also remove all the parentheses using VBA code.

Steps:

  • Right-click on the sheet title.
  • Select View Code from the context menu .

Opening Module with View Code

The VBA Module window will open up.

  • Enter the following code in the window:
Option Explicit
Sub DelParentheses()
Cells.Select
Selection.Replace What:="(", Replacement:="", LookAt:=xlPart, _
SearchOrder:=xlByRows, MatchCase:=False, SearchFormat:=False, _
ReplaceFormat:=False
Selection.Replace What:=")", Replacement:="", LookAt:=xlPart, _
SearchOrder:=xlByRows, MatchCase:=False, SearchFormat:=False, _
ReplaceFormat:=False
End Sub

Inserting VBA Code to Remove Parentheses

  • Select the Run Sub from the Run tab to run the code.

Running VBA Code

All the parentheses are deleted from the selected range.

Output of Embedding VBA to Remove Parentheses


Method 4 – Combining the LEFT And FIND Functions to Remove Text with Parentheses in Excel

The LEFT function returns the first character or characters in a text string from the left based on the number of characters specified. The FIND function is used to find the position of a substring in a string. We can combine these functions to remove parentheses.

Steps:

  • Enter the following formula in Cell D5:
=LEFT(B5,FIND("(",B5,1)-1)

Inserting Formula with LEFT & FIND Functions

  • Press Enter to return the output.
  • Drag the Fill Handle icon down to copy the formula to the rest of the cells.

Final Output after Removing Parentheses

Formula Breakdown:

  • FIND(“(“,B5,1)

Finds the position number of the opening parenthesis starting from the first position, and returns:

{7}

  • LEFT(B5,FIND(“(“,B5,1)-1)

Keeps only 6 letters starting from the left, so 1 is subtracted from the output to remove the bracket. It returns:

{Carrot}


Download Practice Workbook


Related Articles

<< Go Back To Remove Specific Characters in Excel | Excel Remove Characters | Data Cleaning in Excel | Learn Excel

Get FREE Advanced Excel Exercises with Solutions!
Md. Sourov Hossain Mithun
Md. Sourov Hossain Mithun

Md. Sourov Hossain Mithun, an Excel and VBA Content Developer at Softeko's ExcelDemy project, joined in October 2021. Holding a Naval Architecture & Marine Engineering degree from BUET, Mithun showcases expertise during his two-year tenure. With over 200 published articles on Excel topics, he earned a promotion to Team Leader, excelling in leading diverse teams. Mithun's passion extends to Advanced Excel, Excel VBA, Data Analysis, and Python programming, contributing significantly to the innovative and dynamic environment of ExcelDemy... Read Full Bio

We will be happy to hear your thoughts

Leave a reply

Advanced Excel Exercises with Solutions PDF

 

 

ExcelDemy
Logo