Delete certain text that is repeated multiple times within a cell

Miroy72

New Member
Joined
Aug 7, 2014
Messages
47
Hey Everyone!

I need some help figuring out how to delete certain text that repeats itself within a cell in Excel 2010. Right now I have (for example) all in one cell A1:

"John Smith (Services - 6)/OAI; David Frame (Services - 6)/OAI; Kyle Pilot (Services - 6)/OAI"

and I am trying to delete the "(Services - 6)/OAI" after each name so I only have the names and the semicolons left in B1. Sometimes its only one name in the cell, and sometimes it can be up to four names. I know I could do find and replace but I would like a formula so when I copy and paste this data into my spreadsheet, the formula as a new column would automatically do this for me. I also tried Text to Columns but that separates the names into separate columns (I want to keep the names in same cell) and its not a formula as well.

Thanks for your help!
 

Excel Facts

Why are there 1,048,576 rows in Excel?
The Excel team increased the size of the grid in 2007. There are 2^20 rows and 2^14 columns for a total of 17 billion cells.
Try


Excel 2010
ABCD
2John Smith (Services - 6)/OAI; David Frame (Services - 6)/OAI; Kyle Pilot (Services - 6)/OAIJohn Smith ; David Frame ; Kyle Pilot
Sheet1
Cell Formulas
RangeFormula
D2=SUBSTITUTE(A2,"(Services - 6)/OAI","")
 
Upvote 0
Such an easy fix, thanks so much Scott T!

Any way to delete the space after the name and the semicolon?
 
Last edited:
Upvote 0
Put a space before (Services - 6)/OAI

Code:
=SUBSTITUTE([COLOR=blue]A2," (Services - 6)/OAI",""[/COLOR])
 
Upvote 0

Forum statistics

Threads
1,215,793
Messages
6,126,934
Members
449,349
Latest member
Omer Lutfu Neziroglu

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