ExcelBanter

ExcelBanter (https://www.excelbanter.com/)
-   Excel Worksheet Functions (https://www.excelbanter.com/excel-worksheet-functions/)
-   -   splitting text within parenthese into new column (https://www.excelbanter.com/excel-worksheet-functions/27748-splitting-text-within-parenthese-into-new-column.html)

John

splitting text within parenthese into new column
 
I need to split out the text with the parentheses into a seperate column

i.e
A1 B1 C1

1 AA, CC, (BB) AA, CC BB
2 AA, (BB), CC AA, CC BB
3
4

etc. etc. etc.

Thank You in advance
John

Barb R.

To split out the (BB) in the example you give, use this equation:

=MID(A1,SEARCH("(",A1)+1,SEARCH(")",A1)-SEARCH("(",A1)-1)

You'll have to play around with something like this and possibly concatenate
the results if the (BB) is in the middle of the string. You may also need
to use the LENGTH() function to ensure that you have everything.


"John" wrote:

I need to split out the text with the parentheses into a seperate column

i.e
A1 B1 C1

1 AA, CC, (BB) AA, CC BB
2 AA, (BB), CC AA, CC BB
3
4

etc. etc. etc.

Thank You in advance
John



All times are GMT +1. The time now is 07:18 PM.

Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
ExcelBanter.com