Excel Formula to extract a 5 character word from text string

Ancarmusick

New Member
Joined
Feb 6, 2016
Messages
1
Hello,
I need help with a excel formula to extract a 5 digit code (can be numeric/alpha) from the following text string. I can't seem to figure it out.
I need the following 5 digit code from the rows below.

Row 1 - I need X7777 (may have 0, 2, 4 letters after which I don't need)

Row 2 - I need 36600
Row 3 - I need 80008
[TABLE="width: 794"]
<tbody style="box-sizing: border-box; border: 0px; margin: 0px; padding: 0px; vertical-align: top; -webkit-font-smoothing: antialiased;">[TR]
[TD]0222 TA SOLUTIONS X7777 073015 1 132 00[/TD]
[/TR]
[TR]
[TD]0225 LADDER OR LG 36600 IL91 073015 1 50 00[/TD]
[/TR]
[TR]
[TD]0230 MOP/BROOM 80008 OT 073015 1 550 00[/TD]
[/TR]
</tbody>[/TABLE]
Thanks in advance for your help!
 

Excel Facts

Waterfall charts in Excel?
Office 365 customers have access to Waterfall charts since late 2016. They were added to Excel 2019.
As there doesn't seem to be any consistent logic...I'd suggest using Text to Columns !!!
 
Upvote 0

Forum statistics

Threads
1,223,264
Messages
6,171,081
Members
452,377
Latest member
bradfordsam

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