Hi All,
I need formula to remove a string or text within a bracket. For instance, (abc) to become abc or [abc] to become abc. Thanks in advance.
Hi All,
I need formula to remove a string or text within a bracket. For instance, (abc) to become abc or [abc] to become abc. Thanks in advance.
Last edited by seanyeap; 04-23-2010 at 10:24 AM.
Your description seems more like remove the brackets.
Remove String Within a Bracket
(ABC) would become ()
[ABC] would become []
=SUBSTITUTE(SUBSTITUTE(A1,")",""),"(","")
Modify for square brackets or nest 2 more SUBSTITUTES if both bracket types are required.
Hi Andy,
I have edited the subject. A1 is 123(abc), I want the result is 123. I have tried =LEFT(A1,FIND(" ",A1)), but it does not return the result I want. Thanks again.
Hi Andy,
I think this =LEFT(A1,FIND("(",A1,1)-1) solved my problem.
Hi,
How do I incorporate =LEFT(A1,FIND("(",A1,1)-1) with =SUBSTITUTE((A1&" "&A2&" "&A3)," "," + ")? The aim is to delete string within the bracket then to join with "+" sign. Please refer to my attachment for better understanding. Thank you.
=concatenate(left(a2,find("(",a2)-1),"+",left(b2,find("(",b2)-1),"+",left(c2,find("(",c2)-1))
Hi Andy,
It is done with marvelous formula, I am so thankful for your help.
There are currently 1 users browsing this thread. (0 members and 1 guests)
Bookmarks