• Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 1494
  • Last Modified:

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.
0
RTsal
Asked:
RTsal
1 Solution
 
Rory ArchibaldCommented:
To delete:
Select the data, press Ctrl+H, enter (*) in the Find box, leave the Replace box blank and press Replace All.
HTH
Rory

0
 
barry houdiniCommented:
If you want the parentheses and contents in another column then you can extract that with a formula, i.e. If data is in A1
=REPLACE(LEFT(A1,FIND(")",A1)),1,FIND("(",A1)-1,"")
Then select the range of formulas and convert to values by doing the following:
Copy > Edit > Paste Special > Values
Now you can delete the parentheses and contents from the original data
select the range of data and use
Edit > Replace
in "Find what" use
(*)
and leave "replace with" blank
 regards, barry
0
 
calacucciaCommented:
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)
0
Free Tool: ZipGrep

ZipGrep is a utility that can list and search zip (.war, .ear, .jar, etc) archives for text patterns, without the need to extract the archive's contents.

One of a set of tools we're offering as a way to say thank you for being a part of the community.

 
RTsalAuthor Commented:
The other solutions work for just deleting the data but I also asked to extract the data. This solution does both
0
 
p912sCommented:
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
0
 
Rory ArchibaldCommented:
>>"I want to delete or extract the number in parenthesis"
note the 'or'.
0
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

Join & Write a Comment

Featured Post

Upgrade your Question Security!

Your question, your audience. Choose who sees your identity—and your question—with question security.

Tackle projects and never again get stuck behind a technical roadblock.
Join Now