Extract Particular Text from Cell

sanket_sk

Board Regular
Joined
Dec 27, 2016
Messages
140
Office Version
  1. 365
Platform
  1. Windows
Hi All,

I have small task in hand but unable to crack.

We have text missed with alphabet and numbers, we want to extract particular part from it

i.e. –
  1. Call Number 60-0016388499 allocated to Vijay he will attend today where we need to extract – “60-0016388499”
  2. Consumer Mr.Akhilesh is out of town we will attend call number 60-0015508727 in next week where we need to extract – “60-0015508727”
  3. One of Gov dept call registered 132434-00438 we will attend as per schedule where we need to extract – “132434-00438”

Could you please help me develop formula / VBA code to extract these details.

Sanket
 

Excel Facts

Does the VLOOKUP table have to be sorted?
No! when you are using an exact match, the VLOOKUP table can be in any order. Best-selling items at the top is actually the best.
Hi, if the part you want to extract are the only numbers in the text, then you could try something like this.

Book1
AB
1Call Number 60-0016388499 allocated to Vijay he will attend today60-0016388499
2Consumer Mr.Akhilesh is out of town we will attend call number 60-0015508727 in next week60-0015508727
3One of Gov dept call registered 132434-00438 we will attend as per schedule where we need to extract132434-00438
Sheet1
Cell Formulas
RangeFormula
B1:B3B1=TRIM(LEFT(SUBSTITUTE(MID(A1,AGGREGATE(15,6,FIND({0,1,2,3,4,5,6,7,8,9},A1),1),255)," ",REPT(" ",255)),255))
 
Upvote 0

Forum statistics

Threads
1,215,046
Messages
6,122,855
Members
449,096
Latest member
Erald

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