Link to home
Start Free TrialLog in
Avatar of RTsal
RTsal

asked on

Find and delete a partial contents of a cell in excel

I have numbers in a column and next to each number there is another number in parenthesis. I want to delete or extract the number in parenthesis along with the parenthesis.
Avatar of Rory Archibald
Rory Archibald
Flag of United Kingdom of Great Britain and Northern Ireland image

To delete:
Select the data, press Ctrl+H, enter (*) in the Find box, leave the Replace box blank and press Replace All.
HTH
Rory

ASKER CERTIFIED SOLUTION
Avatar of barry houdini
barry houdini
Flag of United Kingdom of Great Britain and Northern Ireland image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
If your text is in B1, this formula would do the job, it just needs to be dragged down to fill the entire column.

=MID(B1;FIND("(";B1);FIND(")";B1)-FIND("(";B1)+1)
Avatar of RTsal
RTsal

ASKER

The other solutions work for just deleting the data but I also asked to extract the data. This solution does both
If this is a one time delete the data the adding to what rorya said.

Select cell A1, press Ctrl-H, type (*) in 'Find what' and leave 'Replace with' blank. click Find Next, it will locate the first occurrence and if you want to replace click Replace or click Find Next.

If you click Replace it will delete the number and () and take you to the next one to replace or skip, if skipping click Find Next again and so on until you've completed the sheet.

HTH
>>"I want to delete or extract the number in parenthesis"
note the 'or'.