Extract 8 digit number starting with a 4

Adapt375

New Member
Joined
Sep 27, 2024
Messages
3
Office Version
  1. 365
Platform
  1. Windows
Hi,
Within an excel string containing numbers and alphabets , how do I extract a specific 8 digit no starting with a 4.
Where there are multiple 8 digit nos starting with a 4 , can a message like "check nos" be shown
Thanks
 

Excel Facts

Ambidextrous Undo
Undo last command with Ctrl+Z or Alt+Backspace. If you use the Undo icon in the QAT, open the drop-down arrow to undo up to 100 steps.
Could You shows some examples of these strings, please?
 
Upvote 0
I THS, ORT, SM & NE, QUOTE: 2035088337. SMAT FRUT MEDM, REF: 7107588720 ; 41046772 ;
 
Upvote 0
Hi & welcome to MrExcel.
How about
Excel Formula:
=LET(s,TEXTSPLIT(A2," "),FILTER(s,(LEN(s)=8)*(LEFT(s)="4"),"none"))
 
Upvote 0
For Excel version older than 365

Book1
AB
1I THS, ORT, SM & NE, QUOTE: 2035088337. SMAT FRUT MEDM, REF: 7107588720 ; 41046772 ;41046772
Sheet1
Cell Formulas
RangeFormula
B1B1=AGGREGATE(14,6,MID(A1,ROW(INDIRECT("1:" & LEN(A1))),8)/((MID(A1,ROW(INDIRECT("1:" & LEN(A1))),8)-40000000>=0)*(MID(A1,ROW(INDIRECT("1:" & LEN(A1))),8)-49999999<=0)),1)
 
Upvote 0
Solution
Did the formula I suggested work?
 
Upvote 0

Forum statistics

Threads
1,223,101
Messages
6,170,116
Members
452,302
Latest member
TaMere

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