Split specific text

2avrham

Board Regular
Joined
May 12, 2014
Messages
93
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

Excel Joke
Why can't spreadsheets drive cars? They crash too often!

sandy666

Banned - Rules violations
Joined
Oct 24, 2015
Messages
7,497
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)
 

tyija1995

Well-known Member
Joined
Feb 26, 2019
Messages
780
Office Version
  1. 365
Platform
  1. Windows
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:

tyija1995

Well-known Member
Joined
Feb 26, 2019
Messages
780
Office Version
  1. 365
Platform
  1. Windows

ADVERTISEMENT

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)))
 

Joe4

MrExcel MVP, Junior Admin
Joined
Aug 1, 2002
Messages
58,249
Office Version
  1. 365
Platform
  1. Windows
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.
 

2avrham

Board Regular
Joined
May 12, 2014
Messages
93

ADVERTISEMENT

No, i have many spaces... see one of the examples "BOXsde, MAIN POWER-24PINS EXTENSION PN:KAA4a9143-35-00 (Crnishev, Yeny)"
 

Joe4

MrExcel MVP, Junior Admin
Joined
Aug 1, 2002
Messages
58,249
Office Version
  1. 365
Platform
  1. Windows
See response 5 above, which seems to do what you are asking for.
 

Forum statistics

Threads
1,136,260
Messages
5,674,681
Members
419,520
Latest member
Jennifer4Dillon

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
Top