How to split text and numbers in excel

tbones

New Member
Joined
Jul 18, 2008
Messages
43
Office Version
  1. 365
Platform
  1. Windows
Hi all,
I am having trouble splitting text and numbers in excel.
I have managed successfully to separate the text before the numbers however when I try to separate the number ( which is a time) from the text to the right it comes up all wird . I have got a spreadsheet that I am using .
On the spreadsheet you have two teams playing each other with a time in the middle. I want to separate the two teams into two columns without the time being added

If you look at what i have tried so far it will be clear where the issue is.

Any advice would be great
Thank you

Separate text and numbers
 

Excel Facts

Format cells as currency
Select range and press Ctrl+Shift+4 to format cells as currency. (Shift 4 is the $ sign).
Here's a possible solution:

Book10
ABC
1Blackburn Rovers15:00West Bromwich AlbionBlackburn RoversWest Bromwich Albion
2Bristol City15:00Preston North EndBristol Cityreston North End
3Middlesbrough15:00MillwallMiddlesbroughough15:00Millwall
4Norwich City15:00Hull CityNorwich Cityty15:00Hull City
5Plymouth Argyle15:00Huddersfield TownPlymouth Argyle00Huddersfield Town
6Stoke City15:00Rotherham UnitedStoke Citytherham United
7Swansea City15:00Birmingham CitySwansea City0Birmingham City
8Watford15:00Queens Park RangersWatfordark Rangers
9Leicester City12:00Coventry CityLeicester City12:00Coventry City
10Leeds United14:30Cardiff CityLeeds United14:30Cardiff City
11Sunderland17:00Ipswich TownSunderland00Ipswich Town
12
13
14Blackburn RoversWest Bromwich Albion
15Bristol CityPreston North End
16MiddlesbroughMillwall
17Norwich CityHull City
18Plymouth ArgyleHuddersfield Town
19Stoke CityRotherham United
20Swansea CityBirmingham City
21WatfordQueens Park Rangers
22Leicester CityCoventry City
23Leeds UnitedCardiff City
24SunderlandIpswich Town
Sheet1
Cell Formulas
RangeFormula
A14:A24A14=TEXTBEFORE(A1:A11,SEQUENCE(10,,0),,,1)
B14:B24B14=RIGHT(A1:A11,LEN(A1:A11)-(5+LEN(A14#)))
Dynamic array formulas.
 
Upvote 0
Solution
Since there are always times, you won't need those 3 commas and the 1 after the sequence.
I copied this from another need I had which just took the values from the left and sometimes there weren't any numbers after the text.
 
Upvote 0
Here's a possible solution:

Book10
ABC
1Blackburn Rovers15:00West Bromwich AlbionBlackburn RoversWest Bromwich Albion
2Bristol City15:00Preston North EndBristol Cityreston North End
3Middlesbrough15:00MillwallMiddlesbroughough15:00Millwall
4Norwich City15:00Hull CityNorwich Cityty15:00Hull City
5Plymouth Argyle15:00Huddersfield TownPlymouth Argyle00Huddersfield Town
6Stoke City15:00Rotherham UnitedStoke Citytherham United
7Swansea City15:00Birmingham CitySwansea City0Birmingham City
8Watford15:00Queens Park RangersWatfordark Rangers
9Leicester City12:00Coventry CityLeicester City12:00Coventry City
10Leeds United14:30Cardiff CityLeeds United14:30Cardiff City
11Sunderland17:00Ipswich TownSunderland00Ipswich Town
12
13
14Blackburn RoversWest Bromwich Albion
15Bristol CityPreston North End
16MiddlesbroughMillwall
17Norwich CityHull City
18Plymouth ArgyleHuddersfield Town
19Stoke CityRotherham United
20Swansea CityBirmingham City
21WatfordQueens Park Rangers
22Leicester CityCoventry City
23Leeds UnitedCardiff City
24SunderlandIpswich Town
Sheet1
Cell Formulas
RangeFormula
A14:A24A14=TEXTBEFORE(A1:A11,SEQUENCE(10,,0),,,1)
B14:B24B14=RIGHT(A1:A11,LEN(A1:A11)-(5+LEN(A14#)))
Dynamic array formulas.
Thats magic, that has done the trick for sure. Thank you ever so much it is much appreciated
 
Upvote 0
Another option for the 2nd team is
Excel Formula:
=TEXTAFTER(A1:A11,SEQUENCE(10,,0),-1)
 
Upvote 0

Forum statistics

Threads
1,224,823
Messages
6,181,183
Members
453,020
Latest member
Mohamed Magdi Tawfiq Emam

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