Thanks paul,
It is fantastically working as the way I have wanted; you have saved my time a lot. Regards, Selva ------------------------------ *From:* excel-macros@googlegroups.com [mailto:excel-mac...@googlegroups.com] *On Behalf Of *Paul Schreiner *Sent:* 21 December 2009 23:55 *To:* excel-macros@googlegroups.com *Subject:* Re: $$Excel-Macros$$ Extracting Numbers from the Text Selva, I couldn't find a simple way to "find" the numbers using standard Excel functions, so I created a function called Get_Number() It will extract only the numbers from the string. take a look. Public Function Get_Number(Str) Dim I, NumStr NumStr = "" For I = 1 To Len(Str) If (IsNumeric(Mid(Str, I, 1))) Then NumStr = NumStr & Mid(Str, I, 1) End If Next I Get_Number = NumStr End Function paul ------------------------------ *From:* selva jayapal <selvajaya...@gmail.com> *To:* excel-macros@googlegroups.com *Sent:* Mon, December 21, 2009 11:56:32 AM *Subject:* $$Excel-Macros$$ Extracting Numbers from the Text Dear All Excel Gurus, This is my first mail to this group. I have read many mails from this group which is of great useful to me. Currently I am finding a problem in extracting the employee no from the scrambled data. (Attached reference file) What I need is I want to extract out only the employee no which is only numerical value and nine digit number. I couldn’t use formulas like (LEFT, RIGHT or MID) as the count of numbers is not unique. I have 200 such data’s to extract. Kindly help me. Regards, Selva Jayapal -- ---------------------------------------------------------------------------------- Some important links for excel users: 1. Excel and VBA Tutorials(Video and Text), Free add-ins downloads at http://www.excelitems.com 2. Excel tutorials at http://www.excel-macros.blogspot.com 3. Learn VBA Macros at http://www.vbamacros.blogspot.com 4. Excel Tips and Tricks at http://exceldailytip.blogspot.com To post to this group, send email to excel-macros@googlegroups.com If you find any spam message in the group, please send an email to: Ayush Jain @ jainayus...@gmail.com or Ashish Jain @ 26may.1...@gmail.com <><><><><><><><><><><><><><><><><><><><><><> HELP US GROW !! We reach over 6,500 subscribers worldwide and receive many nice notes about the learning and support from the group. Our goal is to have 10,000 subscribers by the end of 2009. Let friends and co-workers know they can subscribe to group at http://groups.google.com/group/excel-macros/subscribe -- ---------------------------------------------------------------------------------- Some important links for excel users: 1. Excel and VBA Tutorials(Video and Text), Free add-ins downloads at http://www.excelitems.com 2. Excel tutorials at http://www.excel-macros.blogspot.com 3. Learn VBA Macros at http://www.vbamacros.blogspot.com 4. Excel Tips and Tricks at http://exceldailytip.blogspot.com To post to this group, send email to excel-macros@googlegroups.com If you find any spam message in the group, please send an email to: Ayush Jain @ jainayus...@gmail.com or Ashish Jain @ 26may.1...@gmail.com <><><><><><><><><><><><><><><><><><><><><><> HELP US GROW !! We reach over 6,500 subscribers worldwide and receive many nice notes about the learning and support from the group. Our goal is to have 10,000 subscribers by the end of 2009. Let friends and co-workers know they can subscribe to group at http://groups.google.com/group/excel-macros/subscribe