<?xml version="1.0" encoding="UTF-8"?><rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
	xmlns:georss="http://www.georss.org/georss" xmlns:geo="http://www.w3.org/2003/01/geo/wgs84_pos#" xmlns:media="http://search.yahoo.com/mrss/"
		>
<channel>
	<title>Comments on: Excel &#8211; &#8216;Number Stored as Text&#8217;</title>
	<atom:link href="http://cmiles.info/2006/08/23/excel-number-stored-as-text/feed/" rel="self" type="application/rss+xml" />
	<link>http://cmiles.info/2006/08/23/excel-number-stored-as-text/</link>
	<description>Charles Miles - Tucson Hiking, Outside and Adventures, Excel, .net, Life</description>
	<lastBuildDate>Fri, 14 May 2010 12:36:23 +0000</lastBuildDate>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.com/</generator>
	<item>
		<title>By: Josh Hardin</title>
		<link>http://cmiles.info/2006/08/23/excel-number-stored-as-text/#comment-768</link>
		<dc:creator>Josh Hardin</dc:creator>
		<pubDate>Tue, 23 Feb 2010 18:30:57 +0000</pubDate>
		<guid isPermaLink="false">https://cmiles.wordpress.com/2006/08/23/excel-number-stored-as-text/#comment-768</guid>
		<description>For some reason the ‘not equals’ operator was lost when my post was translated to HTML. The line containing ‘iCell.Value = iCell.Value’ should have the ‘not equals’ operator before the “0″ in the ‘if’ statement.</description>
		<content:encoded><![CDATA[<p>For some reason the ‘not equals’ operator was lost when my post was translated to HTML. The line containing ‘iCell.Value = iCell.Value’ should have the ‘not equals’ operator before the “0″ in the ‘if’ statement.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Josh Hardin</title>
		<link>http://cmiles.info/2006/08/23/excel-number-stored-as-text/#comment-767</link>
		<dc:creator>Josh Hardin</dc:creator>
		<pubDate>Tue, 23 Feb 2010 18:30:36 +0000</pubDate>
		<guid isPermaLink="false">https://cmiles.wordpress.com/2006/08/23/excel-number-stored-as-text/#comment-767</guid>
		<description>This is how it’s done, for most normal situations (ie, not French users).

Public Sub ConvertNumbersStoredAsText(WSName$)
 Application.EnableEvents = False &#039;prevent triggering event macros
    Dim iCell
    With ActiveWorkbook.Sheets(WSName)
        For Each iCell In .UsedRange.SpecialCells(xlCellTypeConstants, xlTextValues).Cells
            If iCell.Errors.Item(xlNumberAsText).Value Then
                If (Left(iCell.Text, 1)  &quot;0&quot;) Then iCell.Value = iCell.Value &#039;skip cells with leading zeros
            End If
        Next
    End With
 Application.EnableEvents = True
End Sub</description>
		<content:encoded><![CDATA[<p>This is how it’s done, for most normal situations (ie, not French users).</p>
<p>Public Sub ConvertNumbersStoredAsText(WSName$)<br />
 Application.EnableEvents = False &#8216;prevent triggering event macros<br />
    Dim iCell<br />
    With ActiveWorkbook.Sheets(WSName)<br />
        For Each iCell In .UsedRange.SpecialCells(xlCellTypeConstants, xlTextValues).Cells<br />
            If iCell.Errors.Item(xlNumberAsText).Value Then<br />
                If (Left(iCell.Text, 1)  &#8220;0&#8243;) Then iCell.Value = iCell.Value &#8216;skip cells with leading zeros<br />
            End If<br />
        Next<br />
    End With<br />
 Application.EnableEvents = True<br />
End Sub</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Renee</title>
		<link>http://cmiles.info/2006/08/23/excel-number-stored-as-text/#comment-698</link>
		<dc:creator>Renee</dc:creator>
		<pubDate>Fri, 19 Sep 2008 06:34:55 +0000</pubDate>
		<guid isPermaLink="false">https://cmiles.wordpress.com/2006/08/23/excel-number-stored-as-text/#comment-698</guid>
		<description>I am using the Text to Columns method and it seems there is a bug. If the topmost row(s) is not populated and the entire column is selected, the pasted cells jump up a few rows - sometimes 4 rows, sometimes 2.

??????</description>
		<content:encoded><![CDATA[<p>I am using the Text to Columns method and it seems there is a bug. If the topmost row(s) is not populated and the entire column is selected, the pasted cells jump up a few rows &#8211; sometimes 4 rows, sometimes 2.</p>
<p>??????</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Mary</title>
		<link>http://cmiles.info/2006/08/23/excel-number-stored-as-text/#comment-691</link>
		<dc:creator>Mary</dc:creator>
		<pubDate>Tue, 15 Apr 2008 16:50:34 +0000</pubDate>
		<guid isPermaLink="false">https://cmiles.wordpress.com/2006/08/23/excel-number-stored-as-text/#comment-691</guid>
		<description>I have tried the paste special using either add 0 or multipy 1.  Doesn&#039;t work.

Text to Columns doesn&#039;t work.

And copy and paste special - valuse only doesn&#039;t work.

I have no knowledge of macroes or vb.

Any suggestions?</description>
		<content:encoded><![CDATA[<p>I have tried the paste special using either add 0 or multipy 1.  Doesn&#8217;t work.</p>
<p>Text to Columns doesn&#8217;t work.</p>
<p>And copy and paste special &#8211; valuse only doesn&#8217;t work.</p>
<p>I have no knowledge of macroes or vb.</p>
<p>Any suggestions?</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: perplexed</title>
		<link>http://cmiles.info/2006/08/23/excel-number-stored-as-text/#comment-687</link>
		<dc:creator>perplexed</dc:creator>
		<pubDate>Thu, 21 Feb 2008 17:09:18 +0000</pubDate>
		<guid isPermaLink="false">https://cmiles.wordpress.com/2006/08/23/excel-number-stored-as-text/#comment-687</guid>
		<description>I am programatically creating a csv file for export to other systems.  Some things that need to be exported are defined as character and can be up to 50 characters long.  If a user happens to fill those fields with numerics, Excel converts them to numeric representation such as 1.71717171717171E+29.  I can not expect my users to convert all of this before using the file.  How can I keep this from happening?</description>
		<content:encoded><![CDATA[<p>I am programatically creating a csv file for export to other systems.  Some things that need to be exported are defined as character and can be up to 50 characters long.  If a user happens to fill those fields with numerics, Excel converts them to numeric representation such as 1.71717171717171E+29.  I can not expect my users to convert all of this before using the file.  How can I keep this from happening?</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: cmiles</title>
		<link>http://cmiles.info/2006/08/23/excel-number-stored-as-text/#comment-172</link>
		<dc:creator>cmiles</dc:creator>
		<pubDate>Sat, 24 Feb 2007 05:15:21 +0000</pubDate>
		<guid isPermaLink="false">https://cmiles.wordpress.com/2006/08/23/excel-number-stored-as-text/#comment-172</guid>
		<description>Gary - really interesting comment about the French, I have not seen that mentioned before and that it would have bugged me too to find out about the , to . switch. If you find a work around let me know, I will have to experiment more with other languages...

Charles</description>
		<content:encoded><![CDATA[<p>Gary &#8211; really interesting comment about the French, I have not seen that mentioned before and that it would have bugged me too to find out about the , to . switch. If you find a work around let me know, I will have to experiment more with other languages&#8230;</p>
<p>Charles</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Gary Bouwman</title>
		<link>http://cmiles.info/2006/08/23/excel-number-stored-as-text/#comment-170</link>
		<dc:creator>Gary Bouwman</dc:creator>
		<pubDate>Thu, 22 Feb 2007 18:31:55 +0000</pubDate>
		<guid isPermaLink="false">https://cmiles.wordpress.com/2006/08/23/excel-number-stored-as-text/#comment-170</guid>
		<description>OK.  It was a great solution, but I&#039;ve found a situation that does not work.  When the PC region is set to French, texttocolumn converts the cell to a value as expected, with on exception.  When the cell was already evaluated as numeric (no green triangles), it replaces the comma with a period for the decimal, and that cell is now text (with a green triangle).
What bugs me is this texttoolumn solution works well for other language regions.</description>
		<content:encoded><![CDATA[<p>OK.  It was a great solution, but I&#8217;ve found a situation that does not work.  When the PC region is set to French, texttocolumn converts the cell to a value as expected, with on exception.  When the cell was already evaluated as numeric (no green triangles), it replaces the comma with a period for the decimal, and that cell is now text (with a green triangle).<br />
What bugs me is this texttoolumn solution works well for other language regions.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Gary Bouwman</title>
		<link>http://cmiles.info/2006/08/23/excel-number-stored-as-text/#comment-27</link>
		<dc:creator>Gary Bouwman</dc:creator>
		<pubDate>Wed, 15 Nov 2006 20:47:05 +0000</pubDate>
		<guid isPermaLink="false">https://cmiles.wordpress.com/2006/08/23/excel-number-stored-as-text/#comment-27</guid>
		<description>I&#039;ve tried several of the methods you refer to with some success.  Your example for text-to-column is the only method that has worked for me so far.  My particular issue is coding for use in a global environment.  These simple methods all worked when my PC was set to US (English), but not when set to Germany (German) ... until the text-to-column trick.  Great workaround.  I would never have thought to look at that as a fix.

Gary</description>
		<content:encoded><![CDATA[<p>I&#8217;ve tried several of the methods you refer to with some success.  Your example for text-to-column is the only method that has worked for me so far.  My particular issue is coding for use in a global environment.  These simple methods all worked when my PC was set to US (English), but not when set to Germany (German) &#8230; until the text-to-column trick.  Great workaround.  I would never have thought to look at that as a fix.</p>
<p>Gary</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: cmiles</title>
		<link>http://cmiles.info/2006/08/23/excel-number-stored-as-text/#comment-8</link>
		<dc:creator>cmiles</dc:creator>
		<pubDate>Tue, 26 Sep 2006 01:50:19 +0000</pubDate>
		<guid isPermaLink="false">https://cmiles.wordpress.com/2006/08/23/excel-number-stored-as-text/#comment-8</guid>
		<description>erik - I like .UsedRange as well (although a quick search will reveal that many people have found it to be troublesome in some situations and use other methods to get the &#039;used range&#039;) - you should be able to simplify your code by just using:

Sub valueISvalue()

Activesheet.UsedRange.Value = _
 Activesheet.UsedRange.Value

End Sub

[range].value = [range].value methods are quite fast - although (as I mentioned above) I do have one report (from a web interface) for which this method does not work.

CAM</description>
		<content:encoded><![CDATA[<p>erik &#8211; I like .UsedRange as well (although a quick search will reveal that many people have found it to be troublesome in some situations and use other methods to get the &#8216;used range&#8217;) &#8211; you should be able to simplify your code by just using:</p>
<p>Sub valueISvalue()</p>
<p>Activesheet.UsedRange.Value = _<br />
 Activesheet.UsedRange.Value</p>
<p>End Sub</p>
<p>[range].value = [range].value methods are quite fast &#8211; although (as I mentioned above) I do have one report (from a web interface) for which this method does not work.</p>
<p>CAM</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: erik</title>
		<link>http://cmiles.info/2006/08/23/excel-number-stored-as-text/#comment-7</link>
		<dc:creator>erik</dc:creator>
		<pubDate>Mon, 25 Sep 2006 10:34:51 +0000</pubDate>
		<guid isPermaLink="false">https://cmiles.wordpress.com/2006/08/23/excel-number-stored-as-text/#comment-7</guid>
		<description>Simple code to provide for range.value=range.value
Works very fast since it only takes the used cell for re-evaluation

Sub valueISvalue()
&#039;
&#039; valueISvalue Macro
&#039; Macro recorded 25-09-2006 by Erik Esveld
&#039;

&#039;
    For Each mycell In ActiveSheet.UsedRange
    mycell.Value = mycell.Value
    Next
End Sub</description>
		<content:encoded><![CDATA[<p>Simple code to provide for range.value=range.value<br />
Works very fast since it only takes the used cell for re-evaluation</p>
<p>Sub valueISvalue()<br />
&#8216;<br />
&#8216; valueISvalue Macro<br />
&#8216; Macro recorded 25-09-2006 by Erik Esveld<br />
&#8216;</p>
<p>&#8216;<br />
    For Each mycell In ActiveSheet.UsedRange<br />
    mycell.Value = mycell.Value<br />
    Next<br />
End Sub</p>
]]></content:encoded>
	</item>
</channel>
</rss>
