Formula to find second 4 digit number in cell?

tonywatsonhelp

Well-known Member
Joined
Feb 24, 2014
Messages
3,194
Office Version
  1. 365
  2. 2019
  3. 2016
Platform
  1. Windows
Hi Everyone,

I have to sort some data and the text is all combined into one cell,
I'd like to pull out the stock code number.
now this is the second 4 digit number in the cell
the data is in column A

here's a few examples but the 4 digit can be anywhere in the cell but I'll use a few to give you an idea of what I'm up against.

ABCDE
1Current textWhat I want
2
3000 - Share Capital & Reserves:3006 - Retained Earnings
<strike></strike>
<strike></strike><strike></strike>
3006
3
6100 - Utilities:6110 - Building maintenance-R&M air,heat,plum,paint,elec
<strike></strike>
<strike></strike>
6110
4
6100 - Utilities:6108 - Lease of offices
<strike></strike>
<strike></strike>
6108
5
6050 - Finance Charges:6056 - Bank charges
<strike></strike>
<strike></strike>
6056
6
6000 - Professional Fees:6004 - Accountancy-accounting services
<strike></strike>
<strike></strike>
6004
7
3000 - Share Capital & Reserves:3014 - R/Unrestricted Funds
<strike></strike>
<strike></strike>
3014
8
2400 - Other Liabilites:2434 - O/C Credit Card Control
<strike></strike>
<strike></strike>
2434
9
10

<tbody>
</tbody>
Please help if you can I'm totally stuck.
Thanks
Tony
 

Excel Facts

How to show all formulas in Excel?
Press Ctrl+` to show all formulas. Press it again to toggle back to numbers. The grave accent is often under the tilde on US keyboards.
Is it always number after ":"? Try:
Code:
=VALUE(MID(A1,FIND(":",A1)+1,4))
 
Upvote 0

Forum statistics

Threads
1,215,055
Messages
6,122,902
Members
449,097
Latest member
dbomb1414

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