Help with extracting Mobile # from a string of text ?

Maverick27

Active Member
Joined
Sep 23, 2010
Messages
329
Office Version
  1. 2013
Platform
  1. Windows
Hi

Can someone share an Excel Function or Macro Code to extract the 2nd set of Tel/Mob # from a string of Text ?

mobile-no.jpg


I've managed to extract the 1st Set of Mob #s ( Col B ) using Function below:
=LEFT(B2,(FIND(" ",B2,1)-1))

I'm struggling with the 2nd set of #'s since the data in the Column is not consistent.

The final result need not be a 100% accurate, but somewhat sensible.

Rgds
 

Excel Facts

How can you automate Excel?
Press Alt+F11 from Windows Excel to open the Visual Basic for Applications (VBA) editor.
Excel Formula:
=IF((LEN(A1)-LEN(SUBSTITUTE(A1,":","")))/LEN(":")>1,RIGHT(A1,LEN(A1)-FIND(":",A1,3)+2),"")
 
Upvote 0
Solution
or else just use text to columns and set the comma as your delimiter should get you most of the way there
 
Upvote 0

Forum statistics

Threads
1,215,059
Messages
6,122,918
Members
449,094
Latest member
teemeren

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