Extracting specific text from a text string

richardthelionheart

Board Regular
Joined
Mar 25, 2016
Messages
95
Office Version
  1. 2016
Platform
  1. Windows

<colgroup><col style="mso-width-source:userset;mso-width-alt:10532;width:216pt" width="288"> <col style="mso-width-source:userset;mso-width-alt:1536;width:32pt" width="42"> <col style="mso-width-source:userset;mso-width-alt:1755;width:36pt" width="48"> </colgroup><tbody>
[TD="class: xl66, width: 288"] Deano Mixa 12:54 Romford
[/TD]
[TD="class: xl64, width: 42"]UK >[/TD]
[TD="class: xl65, width: 48"]12:54[/TD]

[TD="class: xl66"] Prime The Rank 19:11 Sunderland
[/TD]
[TD="class: xl64"]UK >[/TD]
[TD="class: xl65"]19:11[/TD]

[TD="class: xl63"] Aulton Rumble 21:37 Peterborough
[/TD]
[TD="class: xl64"]UK >[/TD]
[TD="class: xl65"]21:37[/TD]

[TD="class: xl63"] Honour Express 21:26 Doncaster
[/TD]
[TD="class: xl64"]UK >[/TD]
[TD="class: xl65"]21:26
[/TD]

</tbody>

Thanks to FormR who supplied me with -
=TRIM(LEFT(SUBSTITUTE(MID(D189,FIND(" 1"," "&SUBSTITUTE(D189,"2","1")),LEN(D189))," ",REPT(" ",5)),5))
I am able to extract the 'numbers' from the text string as can be seen here.
But I'd like to go a step further. Is it now possible to extract the names following the 'nimbers' I wonder. ie Romford, Sunderland, Peterborough and Doncaster ?? I would be happy to settle for the first 4 letters in each one if option A is not possible. Any help greatly appreciated.
 

Excel Facts

Will the fill handle fill 1, 2, 3?
Yes! Type 1 in a cell. Hold down Ctrl while you drag the fill handle.

Forum statistics

Threads
1,224,823
Messages
6,181,181
Members
453,022
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