Formula to separate text

ashani

Active Member
Joined
Mar 14, 2020
Messages
347
Office Version
  1. 365
Platform
  1. Windows
hi experts,

I wonder if someone could please guide me the relevant formula to separate text from the cell. So currently my text appears like this :

(1234) Abc Def

I would like just '1234' (no brackets) in Column A and 'Abc Def' in Column B

I would really appreciate your help.

thank you
 

Excel Facts

Lock one reference in a formula
Need 1 part of a formula to always point to the same range? use $ signs: $V$2:$Z$99 will always point to V2:Z99, even after copying
assuming your text is in column "C"
for text within the brackets
Excel Formula:
=MID(c1,FIND("(",c1)+1,FIND(")",c1)-FIND("(",c1)-1)

for text after the brackets

Excel Formula:
=RIGHT(C1,LEN(C1)-SEARCH(") ",C1))
 
Upvote 0
TextBefore.xlsm
ABC
1
2(1234) Abc Def1234Abc Def
3
3h
Cell Formulas
RangeFormula
B2B2=TEXTAFTER(TEXTBEFORE(A2,")"),"(")
C2C2=TEXTAFTER(A2," ")
 
Upvote 0
Assuming your text is representative of your actual data and is located in cell C2, put this single formula in cell A2...

=TEXTSPLIT(MID(C2,2,LEN(C2)),") ")
 
Upvote 0
No better, but just another way ..
=DROP(TEXTSPLIT(C2,{"(",") "}),,1)
 
Upvote 0

Forum statistics

Threads
1,224,820
Messages
6,181,160
Members
453,021
Latest member
Justyna P

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