Split specific text

2avrham

Board Regular
Joined
May 12, 2014
Messages
104
Office Version
  1. 365
Hi,

i have several rows that contains some text "xxxxxxxxxxxxxxxx (xxx)" all of them has ()at the end.
i wonder how can i cut (xxx) data to new column.

Thanks!
 

Excel Facts

Shade all formula cells
To shade all formula cells: Home, Find & Select, Formulas to select all formulas. Then apply a light fill color.
Re: Split spsific text

your text string has only one space before (xxx)?
use Text to Columns by space
or post more representative example (more than one)
 
Upvote 0
Re: Split spsific text

Hey, if the text is in A1 try this:

="("&TRIM(RIGHT(SUBSTITUTE(A1,"(",REPT(" ",LEN(A1))),LEN(A1)))

Example:
A1 = "test this string out! (abcdef)"
Result of formula: "(abcdef)"
 
Last edited:
Upvote 0
Re: Split spsific text

Hey did you change the A1 reference throughout the entire formula to K1? Like below:

="("&TRIM(RIGHT(SUBSTITUTE(K1,"(",REPT(" ",LEN(K1))),LEN(K1)))
 
Upvote 0
Re: Split spsific text

it is not working for my ( i used K1 data)
You received two replies.
Which one isn't working for you?
Did you try the other one?

If the first reply did not work for you, then you probably did not give us an accurate description of how the data in that field is presented.
Try to include all the possible variations, and maybe some actual examples we can work from.
 
Upvote 0
No, i have many spaces... see one of the examples "BOXsde, MAIN POWER-24PINS EXTENSION PN:KAA4a9143-35-00 (Crnishev, Yeny)"
 
Upvote 0
See response 5 above, which seems to do what you are asking for.
 
Upvote 0

Forum statistics

Threads
1,223,896
Messages
6,175,263
Members
452,627
Latest member
KitkatToby

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