<?xml version='1.0' encoding='UTF-8'?><?xml-stylesheet href="http://www.blogger.com/styles/atom.css" type="text/css"?><feed xmlns='http://www.w3.org/2005/Atom' xmlns:openSearch='http://a9.com/-/spec/opensearchrss/1.0/'><id>tag:blogger.com,1999:blog-2509167754737584590.post595254743607698695..comments</id><updated>2009-12-24T11:17:23.122+05:30</updated><category term='Excel Addins'/><category term='countif two criteria'/><category term='Hide cell contents before printing'/><category term='Sum Top 5 values in Unsorted Range'/><category term='Forcing users to use updated version'/><category term='Macros in Excel'/><category term='countif array'/><category term='PMT Function in Excel'/><category term='Test if workbook is open or not'/><category term='Formating Numbers in Excel'/><category term='Symbol Check Mark'/><category term='Disable Cut Copy Paste in Excel'/><category term='Pivot Tables'/><category term='Range Name Excel'/><category term='calculating age'/><category term='Custom Functions'/><category term='Excel Vlookup Function'/><category term='subtotal function excel'/><category term='multiple countif'/><category term='Deploy Macros Found Elsewhere'/><category term='Get Number From String'/><category term='countif with multiple criteria'/><category term='Send email with VBA'/><category term='Excel Currency Format'/><category term='Excel Macros'/><category term='Excel Formulas'/><category term='sumif multiple'/><category term='subtotal in excel'/><category term='Auto Open Macro'/><category term='Extract Number From String'/><category term='Automating Tasks in Excel'/><category term='Adding non printing information to your worksheet'/><category term='Find Duplicate'/><category term='Hardware Locking for Excel Workbook'/><category term='Excel Date Picker'/><category term='Profit and Loss report using Pivot Tables'/><category term='Excel Last Row'/><category term='Find Last Row'/><category term='Spell Currency'/><category term='Extract Number From Text'/><category term='EMI Calculator'/><category term='Macro Last Row'/><category term='File Open'/><category term='countif multiple conditions'/><category term='Excel Pop up Calendar'/><category term='Wingdings Check Mark with double click'/><category term='Sorting Dates by Birthday'/><category term='Disable right click menu'/><category term='Working with date function'/><category term='excel subtotals'/><category term='Excel Kay Board Shortcuts'/><category term='Defined Names'/><category term='Excel Closest Match'/><category term='Indian Style Comma Separation for numbers'/><category term='Converting Text to date'/><category term='Convert Numbers to Words'/><category term='Working with Data Range'/><category term='Show Developer Tab'/><category term='Logging User Activity'/><category term='Numbers to Text'/><category term='VBA Last Row'/><category term='Countif Multiple Criteria'/><category term='Email Address Extract'/><category term='Add Spin Buttons ActiveX Controls'/><category term='Visual Basic Grammar'/><category term='Formating Cells in Excel'/><category term='Making EMI Calculator'/><category term='Excel Number Format'/><category term='sumif multiple criteria'/><category term='subtotals in excel'/><category term='multiple sumif criteria'/><category term='Remove Duplicate'/><category term='Learn Excel VBA'/><category term='Forcing users to Enable Macros'/><category term='subtotal excel'/><category term='Text To Numbers'/><category term='SpellCurr()'/><title type='text'>Comments on Yogesh Gupta's Excel Tips: Excel Macros : Text to Numbers VBA</title><link rel='http://schemas.google.com/g/2005#feed' type='application/atom+xml' href='http://www.yogeshguptaonline.com/feeds/595254743607698695/comments/default'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/2509167754737584590/595254743607698695/comments/default'/><link rel='alternate' type='text/html' href='http://www.yogeshguptaonline.com/2009/12/excel-macros-text-to-numbers-vba.html'/><author><name>Yogesh Gupta</name><uri>http://www.blogger.com/profile/08246342663404873564</uri><email>noreply@blogger.com</email><gd:image xmlns:gd='http://schemas.google.com/g/2005' rel='http://schemas.google.com/g/2005#thumbnail' width='24' height='32' src='http://1.bp.blogspot.com/_3QrPv-CwOcc/StCm3VNBEOI/AAAAAAAAAIg/4ahMTa1Ps5c/S220/Yogesh.jpg'/></author><generator version='7.00' uri='http://www.blogger.com'>Blogger</generator><openSearch:totalResults>8</openSearch:totalResults><openSearch:startIndex>1</openSearch:startIndex><openSearch:itemsPerPage>25</openSearch:itemsPerPage><entry><id>tag:blogger.com,1999:blog-2509167754737584590.post-994303431582026616</id><published>2009-12-24T11:17:23.122+05:30</published><updated>2009-12-24T11:17:23.122+05:30</updated><title type='text'>Hey guys thanks for this rich source of knowledge ...</title><content type='html'>Hey guys thanks for this rich source of knowledge sharing. I am familiar with Access, but in my current environment, XL is more widely used. And I am learning.&lt;br /&gt;&lt;br /&gt;Happy New Year to you all.&lt;br /&gt;&lt;br /&gt;Ninad.</content><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/2509167754737584590/595254743607698695/comments/default/994303431582026616'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/2509167754737584590/595254743607698695/comments/default/994303431582026616'/><link rel='alternate' type='text/html' href='http://www.yogeshguptaonline.com/2009/12/excel-macros-text-to-numbers-vba.html?showComment=1261633643122#c994303431582026616' title=''/><author><name>Ninad</name><uri>http://www.blogger.com/profile/09010642049136695229</uri><email>noreply@blogger.com</email><gd:image xmlns:gd='http://schemas.google.com/g/2005' rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:in-reply-to xmlns:thr='http://purl.org/syndication/thread/1.0' href='http://www.yogeshguptaonline.com/2009/12/excel-macros-text-to-numbers-vba.html' ref='tag:blogger.com,1999:blog-2509167754737584590.post-595254743607698695' source='http://www.blogger.com/feeds/2509167754737584590/posts/default/595254743607698695' type='text/html'/><gd:extendedProperty xmlns:gd='http://schemas.google.com/g/2005' name='blogger.itemClass' value='pid-2129778036'/></entry><entry><id>tag:blogger.com,1999:blog-2509167754737584590.post-6562819447944040504</id><published>2009-12-05T13:46:31.622+05:30</published><updated>2009-12-05T13:46:31.622+05:30</updated><title type='text'>Hello Rick

You always add value to my posts, that...</title><content type='html'>Hello Rick&lt;br /&gt;&lt;br /&gt;You always add value to my posts, that makes content richer for users of myblog.&lt;br /&gt;&lt;br /&gt;Thanks once again.&lt;br /&gt;&lt;br /&gt;Yogesh Gupta</content><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/2509167754737584590/595254743607698695/comments/default/6562819447944040504'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/2509167754737584590/595254743607698695/comments/default/6562819447944040504'/><link rel='alternate' type='text/html' href='http://www.yogeshguptaonline.com/2009/12/excel-macros-text-to-numbers-vba.html?showComment=1260000991622#c6562819447944040504' title=''/><author><name>Yogesh Gupta</name><uri>http://www.blogger.com/profile/08246342663404873564</uri><email>noreply@blogger.com</email><gd:image xmlns:gd='http://schemas.google.com/g/2005' rel='http://schemas.google.com/g/2005#thumbnail' width='24' height='32' src='http://1.bp.blogspot.com/_3QrPv-CwOcc/StCm3VNBEOI/AAAAAAAAAIg/4ahMTa1Ps5c/S220/Yogesh.jpg'/></author><thr:in-reply-to xmlns:thr='http://purl.org/syndication/thread/1.0' href='http://www.yogeshguptaonline.com/2009/12/excel-macros-text-to-numbers-vba.html' ref='tag:blogger.com,1999:blog-2509167754737584590.post-595254743607698695' source='http://www.blogger.com/feeds/2509167754737584590/posts/default/595254743607698695' type='text/html'/><gd:extendedProperty xmlns:gd='http://schemas.google.com/g/2005' name='blogger.itemClass' value='pid-1113289490'/></entry><entry><id>tag:blogger.com,1999:blog-2509167754737584590.post-5986498651262631044</id><published>2009-12-05T13:13:52.604+05:30</published><updated>2009-12-05T13:13:52.604+05:30</updated><title type='text'>And here is an even shorter UDF...

Function Numbe...</title><content type='html'>And here is an even shorter UDF...&lt;br /&gt;&lt;br /&gt;Function Number(ByVal CurrString As String)&lt;br /&gt;  Dim X As Long&lt;br /&gt;  For X = 1 To Len(CurrString)&lt;br /&gt;    Number = val(Mid(CurrString, X))&lt;br /&gt;    If IsNumeric(Number) And Number &amp;gt; 0 Then Exit For&lt;br /&gt;  Next&lt;br /&gt;End Function&lt;br /&gt;&lt;br /&gt;Rick Rothstein (MVP - Excel)</content><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/2509167754737584590/595254743607698695/comments/default/5986498651262631044'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/2509167754737584590/595254743607698695/comments/default/5986498651262631044'/><link rel='alternate' type='text/html' href='http://www.yogeshguptaonline.com/2009/12/excel-macros-text-to-numbers-vba.html?showComment=1259999032604#c5986498651262631044' title=''/><author><name>Rick</name><uri>http://www.blogger.com/profile/07572190007880814311</uri><email>noreply@blogger.com</email><gd:image xmlns:gd='http://schemas.google.com/g/2005' rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:in-reply-to xmlns:thr='http://purl.org/syndication/thread/1.0' href='http://www.yogeshguptaonline.com/2009/12/excel-macros-text-to-numbers-vba.html' ref='tag:blogger.com,1999:blog-2509167754737584590.post-595254743607698695' source='http://www.blogger.com/feeds/2509167754737584590/posts/default/595254743607698695' type='text/html'/><gd:extendedProperty xmlns:gd='http://schemas.google.com/g/2005' name='blogger.itemClass' value='pid-1213274641'/></entry><entry><id>tag:blogger.com,1999:blog-2509167754737584590.post-3977266591285788972</id><published>2009-12-05T13:05:03.794+05:30</published><updated>2009-12-05T13:05:03.794+05:30</updated><title type='text'>Here is a slightly shorter UDF that does what your...</title><content type='html'>Here is a slightly shorter UDF that does what your UDF does...&lt;br /&gt;&lt;br /&gt;Function Number(ByVal CurrString As String)&lt;br /&gt;  Dim X As Long&lt;br /&gt;  For X = 1 To Len(CurrString)&lt;br /&gt;    If IsNumeric(Mid(CurrString, X, 1)) Then&lt;br /&gt;      Number = Val(Mid(CurrString, X))&lt;br /&gt;      Exit For&lt;br /&gt;    End If&lt;br /&gt;  Next&lt;br /&gt;End Function&lt;br /&gt;&lt;br /&gt;Rick Rothstein (MVP - Excel)</content><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/2509167754737584590/595254743607698695/comments/default/3977266591285788972'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/2509167754737584590/595254743607698695/comments/default/3977266591285788972'/><link rel='alternate' type='text/html' href='http://www.yogeshguptaonline.com/2009/12/excel-macros-text-to-numbers-vba.html?showComment=1259998503794#c3977266591285788972' title=''/><author><name>Rick</name><uri>http://www.blogger.com/profile/07572190007880814311</uri><email>noreply@blogger.com</email><gd:image xmlns:gd='http://schemas.google.com/g/2005' rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:in-reply-to xmlns:thr='http://purl.org/syndication/thread/1.0' href='http://www.yogeshguptaonline.com/2009/12/excel-macros-text-to-numbers-vba.html' ref='tag:blogger.com,1999:blog-2509167754737584590.post-595254743607698695' source='http://www.blogger.com/feeds/2509167754737584590/posts/default/595254743607698695' type='text/html'/><gd:extendedProperty xmlns:gd='http://schemas.google.com/g/2005' name='blogger.itemClass' value='pid-1213274641'/></entry><entry><id>tag:blogger.com,1999:blog-2509167754737584590.post-862868236250095881</id><published>2009-12-05T12:59:19.497+05:30</published><updated>2009-12-05T12:59:19.497+05:30</updated><title type='text'>Actually, to fully duplicate your UDF, the workshe...</title><content type='html'>Actually, to fully duplicate your UDF, the worksheet formula needs to look like this...&lt;br /&gt;&lt;br /&gt;=IF(A1=&amp;quot;&amp;quot;,0,LOOKUP(9.9E+307,--LEFT(MID(SUBSTITUTE(A1,&amp;quot; &amp;quot;,&amp;quot;&amp;quot;),MIN(FIND({0,1,2,3,4,5,6,7,8,9},SUBSTITUTE(A1,&amp;quot; &amp;quot;,&amp;quot;&amp;quot;)&amp;amp;&amp;quot;0123456789&amp;quot;)),999),ROW($1:$99))))&lt;br /&gt;&lt;br /&gt;Rick Rothstein (MVP - Excel)</content><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/2509167754737584590/595254743607698695/comments/default/862868236250095881'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/2509167754737584590/595254743607698695/comments/default/862868236250095881'/><link rel='alternate' type='text/html' href='http://www.yogeshguptaonline.com/2009/12/excel-macros-text-to-numbers-vba.html?showComment=1259998159497#c862868236250095881' title=''/><author><name>Rick</name><uri>http://www.blogger.com/profile/07572190007880814311</uri><email>noreply@blogger.com</email><gd:image xmlns:gd='http://schemas.google.com/g/2005' rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:in-reply-to xmlns:thr='http://purl.org/syndication/thread/1.0' href='http://www.yogeshguptaonline.com/2009/12/excel-macros-text-to-numbers-vba.html' ref='tag:blogger.com,1999:blog-2509167754737584590.post-595254743607698695' source='http://www.blogger.com/feeds/2509167754737584590/posts/default/595254743607698695' type='text/html'/><gd:extendedProperty xmlns:gd='http://schemas.google.com/g/2005' name='blogger.itemClass' value='pid-1213274641'/></entry><entry><id>tag:blogger.com,1999:blog-2509167754737584590.post-4600402825504746510</id><published>2009-12-05T12:32:27.697+05:30</published><updated>2009-12-05T12:32:27.697+05:30</updated><title type='text'>Okay, in looking at your UDF closer, I see that th...</title><content type='html'>Okay, in looking at your UDF closer, I see that the rule is to get the first number you come to... I didn&amp;#39;t remember that the Val function ignores spaces in the middle of numbers. Here is a worksheet formula that does the same thing as your UDF...&lt;br /&gt;&lt;br /&gt;=LOOKUP(9.9E+307,--LEFT(MID(SUBSTITUTE(A1,&amp;quot; &amp;quot;,&amp;quot;&amp;quot;),MIN(FIND({0,1,2,3,4,5,6,7,8,9},SUBSTITUTE(A1,&amp;quot; &amp;quot;,&amp;quot;&amp;quot;)&amp;amp;&amp;quot;0123456789&amp;quot;)),999),ROW($1:$99)))&lt;br /&gt;&lt;br /&gt;Rick Rothstein (MVP - Excel)</content><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/2509167754737584590/595254743607698695/comments/default/4600402825504746510'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/2509167754737584590/595254743607698695/comments/default/4600402825504746510'/><link rel='alternate' type='text/html' href='http://www.yogeshguptaonline.com/2009/12/excel-macros-text-to-numbers-vba.html?showComment=1259996547697#c4600402825504746510' title=''/><author><name>Rick</name><uri>http://www.blogger.com/profile/07572190007880814311</uri><email>noreply@blogger.com</email><gd:image xmlns:gd='http://schemas.google.com/g/2005' rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:in-reply-to xmlns:thr='http://purl.org/syndication/thread/1.0' href='http://www.yogeshguptaonline.com/2009/12/excel-macros-text-to-numbers-vba.html' ref='tag:blogger.com,1999:blog-2509167754737584590.post-595254743607698695' source='http://www.blogger.com/feeds/2509167754737584590/posts/default/595254743607698695' type='text/html'/><gd:extendedProperty xmlns:gd='http://schemas.google.com/g/2005' name='blogger.itemClass' value='pid-1213274641'/></entry><entry><id>tag:blogger.com,1999:blog-2509167754737584590.post-8211887421267357278</id><published>2009-12-05T12:30:08.112+05:30</published><updated>2009-12-05T12:30:08.112+05:30</updated><title type='text'>Hello Rick

Thanks for pointing out. Actualy this ...</title><content type='html'>Hello Rick&lt;br /&gt;&lt;br /&gt;Thanks for pointing out. Actualy this UDF extracts first number until it is seprated by a non numeric character, however this ignores any space separating the number. &lt;br /&gt;&lt;br /&gt;The logic in this UDF is to remove all non numeric character in the begining of text. Once the string has numeric value at start I am using Val(String) statement to extract number. This ignores any space seprating the number.&lt;br /&gt;&lt;br /&gt;Other way could be start building new string after you hit numeric character till you encounter a space or non numeric character. That basis I will get only first number.&lt;br /&gt;&lt;br /&gt;Thanks&lt;br /&gt;Yogesh Gupta</content><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/2509167754737584590/595254743607698695/comments/default/8211887421267357278'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/2509167754737584590/595254743607698695/comments/default/8211887421267357278'/><link rel='alternate' type='text/html' href='http://www.yogeshguptaonline.com/2009/12/excel-macros-text-to-numbers-vba.html?showComment=1259996408112#c8211887421267357278' title=''/><author><name>Yogesh Gupta</name><uri>http://www.blogger.com/profile/08246342663404873564</uri><email>noreply@blogger.com</email><gd:image xmlns:gd='http://schemas.google.com/g/2005' rel='http://schemas.google.com/g/2005#thumbnail' width='24' height='32' src='http://1.bp.blogspot.com/_3QrPv-CwOcc/StCm3VNBEOI/AAAAAAAAAIg/4ahMTa1Ps5c/S220/Yogesh.jpg'/></author><thr:in-reply-to xmlns:thr='http://purl.org/syndication/thread/1.0' href='http://www.yogeshguptaonline.com/2009/12/excel-macros-text-to-numbers-vba.html' ref='tag:blogger.com,1999:blog-2509167754737584590.post-595254743607698695' source='http://www.blogger.com/feeds/2509167754737584590/posts/default/595254743607698695' type='text/html'/><gd:extendedProperty xmlns:gd='http://schemas.google.com/g/2005' name='blogger.itemClass' value='pid-1113289490'/></entry><entry><id>tag:blogger.com,1999:blog-2509167754737584590.post-1478994633088788320</id><published>2009-12-05T12:12:20.525+05:30</published><updated>2009-12-05T12:12:20.525+05:30</updated><title type='text'>I&amp;#39;m a little confused as to the rule governing...</title><content type='html'>I&amp;#39;m a little confused as to the rule governing your UDF. Why for this piece of data...&lt;br /&gt;&lt;br /&gt;10005 0000 A1&lt;br /&gt;&lt;br /&gt;do you extract the first two numbers (and concatenate them together while ignoring the third number at the end? At first I thought your rule was to extract the first number you come to, but in this case you extracted the first two numbers you came to.&lt;br /&gt;&lt;br /&gt;Rick Rothstein (MVP - Excel)</content><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/2509167754737584590/595254743607698695/comments/default/1478994633088788320'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/2509167754737584590/595254743607698695/comments/default/1478994633088788320'/><link rel='alternate' type='text/html' href='http://www.yogeshguptaonline.com/2009/12/excel-macros-text-to-numbers-vba.html?showComment=1259995340525#c1478994633088788320' title=''/><author><name>Rick</name><uri>http://www.blogger.com/profile/07572190007880814311</uri><email>noreply@blogger.com</email><gd:image xmlns:gd='http://schemas.google.com/g/2005' rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:in-reply-to xmlns:thr='http://purl.org/syndication/thread/1.0' href='http://www.yogeshguptaonline.com/2009/12/excel-macros-text-to-numbers-vba.html' ref='tag:blogger.com,1999:blog-2509167754737584590.post-595254743607698695' source='http://www.blogger.com/feeds/2509167754737584590/posts/default/595254743607698695' type='text/html'/><gd:extendedProperty xmlns:gd='http://schemas.google.com/g/2005' name='blogger.itemClass' value='pid-1213274641'/></entry></feed>
