How to Trim Once Open Parenthesis Appears

meppwc

Well-known Member
Joined
May 16, 2003
Messages
604
Office Version
  1. 365
Platform
  1. Windows
I have a bunch of cells that I need to trim off everything once and open parenthesis is found, including the open parenthesis
Is there a formula that will do this?

I have a few examples below
The below 3 examples are in A1-A3
Aficio MP C3502(10.28.132.33)
MP C307(10.28.132.58)
IM C3000(10.28.132.53)

In B1-B3 I want to end up with:
Aficio MP C3502
MP C307
IM C3000
 

Excel Facts

Remove leading & trailing spaces
Save as CSV to remove all leading and trailing spaces. It is faster than using TRIM().
How about
=LEFT(A1,FIND("(",A1&"(")-1)
 
Upvote 0
You're welcome & thanks for the feedback
 
Upvote 0
I have a bunch of cells that I need to trim off everything once and open parenthesis is found, including the open parenthesis
Is there a formula that will do this?

I have a few examples below
The below 3 examples are in A1-A3
Aficio MP C3502(10.28.132.33)
MP C307(10.28.132.58)
IM C3000(10.28.132.53)

In B1-B3 I want to end up with:
Aficio MP C3502
MP C307
IM C3000

If you would like to do this to your original data (that is, perform the removal directly within the data cells themselves), simply select the column or columns containing your data, press CTRL+H to bring up the "Replace" dialog box, put (* in the "Find what" field, leave the "Replace with" field empty and click the "Replace All" button.
 
Upvote 0

Forum statistics

Threads
1,213,546
Messages
6,114,256
Members
448,557
Latest member
richa mishra

We've detected that you are using an adblocker.

We have a great community of people providing Excel help here, but the hosting costs are enormous. You can help keep this site running by allowing ads on MrExcel.com.
Allow Ads at MrExcel

Which adblocker are you using?

Disable AdBlock

Follow these easy steps to disable AdBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the icon in the browser’s toolbar.
2)Click on the "Pause on this site" option.
Go back

Disable AdBlock Plus

Follow these easy steps to disable AdBlock Plus

1)Click on the icon in the browser’s toolbar.
2)Click on the toggle to disable it for "mrexcel.com".
Go back

Disable uBlock Origin

Follow these easy steps to disable uBlock Origin

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back

Disable uBlock

Follow these easy steps to disable uBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back
Back
Top