Split text

thedeadzeds

Active Member
Joined
Aug 16, 2011
Messages
445
Office Version
  1. 365
Platform
  1. Windows
Hi Guys,

What would be the best way to split the below to show as per the result

text to split (all in one cell)
January (2024) Points: 67.00Rank: 18

result
cell 1cell 2cell 3cell 4cell 5
January (2024)Points67Rank18
 

Excel Facts

Can Excel fill bagel flavors?
You can teach Excel a new custom list. Type the list in cells, File, Options, Advanced, Edit Custom Lists, Import, OK
It doesn't look like you have a consistent delimiter. Can you state the rules for the splitting? Does this part have no space in between or is it a typo? "...67.00Rank..."
 
Upvote 0
If that's a typo and there's actually a space before Rank, then I would do this:

Book1
ABCDEF
1January (2024) Points: 67.00 Rank: 18January (2024)Points67.00Rank18
Sheet1
Cell Formulas
RangeFormula
B1B1=TEXTBEFORE($A1," ",2)
C1:F1C1=SUBSTITUTE(INDEX(TEXTSPLIT($A1," "),COLUMN(C1)),":","")
 
Upvote 0
Assuming a missing Space after Rank, then alternative is with Power Query

Power Query:
let
    Source = Excel.CurrentWorkbook(){[Name="Table1"]}[Content],
    #"Split Column by Delimiter" = Table.SplitColumn(Source, "Column1", Splitter.SplitTextByAnyDelimiter({" ",": "}, QuoteStyle.Csv), {"Column1.1", "Column1.2", "Column1.3", "Column1.4", "Column1.5", "Column1.6"}),
    #"Merged Columns" = Table.CombineColumns(#"Split Column by Delimiter",{"Column1.1", "Column1.2"},Combiner.CombineTextByDelimiter(" ", QuoteStyle.None),"Merged")
in
    #"Merged Columns"
 
Upvote 0

Forum statistics

Threads
1,217,363
Messages
6,136,107
Members
449,993
Latest member
Sphere2215

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