<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic Re: Convert String to Double in Data Management Questions</title>
    <link>https://community.esri.com/t5/data-management-questions/convert-string-to-double/m-p/138079#M7975</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Golden.&lt;/P&gt;&lt;P&gt;There is nothing wrong with the code.&lt;/P&gt;&lt;P&gt;The issue here is not understanding data in general and/or the code....&lt;/P&gt;&lt;P&gt;In this case, let me try to provide a 'crash course' on some items.&lt;/P&gt;&lt;P&gt;Null means one thing and is handled differently for SQL and is different for data in a FileGeoDatabase and again different in a dbf standalone and yet again different for xlsx etc...&lt;/P&gt;&lt;P&gt;What does this all mean?&amp;nbsp; It means, an understanding of data and its storage media is needed.&amp;nbsp; Below I have made some case examples.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Follow:&lt;/P&gt;&lt;P&gt;Create a table in a FileGeoDatabase.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Catalog &amp;gt;&amp;gt; New .. &amp;gt;&amp;gt; Table&amp;nbsp; (in the file geodatabase)&lt;/P&gt;&lt;P&gt;Create two fields,&amp;nbsp; STRINGS - with a TEXT data type and DOUBLES using Double&lt;/P&gt;&lt;P&gt;Add a few sample Strings...&lt;/P&gt;&lt;P&gt;&lt;IMG __jive_id="166437" alt="111.png" class="image-1 jive-image" src="https://community.esri.com/legacyfs/online/166437_111.png" style="width: 620px; height: 199px;" /&gt;&lt;/P&gt;&lt;P&gt;Right click on FIELD&amp;nbsp; &amp;gt;&amp;gt; Calculate&lt;/P&gt;&lt;P&gt;(Show Codeblock) (VBScript)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Pre-Logic:&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&lt;EM&gt;Dim String, Check&lt;/EM&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&lt;EM&gt;String = [STRINGS]&lt;/EM&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&lt;EM&gt;Check = IsNumeric(String)&lt;/EM&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&lt;EM&gt;If Check = True then&lt;/EM&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&lt;EM&gt;Output = CDbl(String)&lt;/EM&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&lt;EM&gt;else&lt;/EM&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&lt;EM&gt;Output = null&lt;/EM&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&lt;EM&gt;End if&lt;/EM&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Doubles=&amp;nbsp; &lt;STRONG&gt;&lt;EM&gt;Output&lt;/EM&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;so should look like this:&lt;/P&gt;&lt;P&gt;&lt;IMG __jive_id="166438" alt="111.png" class="image-2 jive-image" height="347" src="https://community.esri.com/legacyfs/online/166438_111.png" style="height: 347px; width: 302.813px;" width="303" /&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Once you run it...&lt;/P&gt;&lt;P&gt;Anything NOT a numeric is now &amp;lt;Null&amp;gt;.&lt;/P&gt;&lt;P&gt;Looks great!&amp;nbsp; You could from here export to xlsx for example, without issue.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;IMG __jive_id="166691" alt="111.png" class="image-3 jive-image" height="185" src="https://community.esri.com/legacyfs/online/166691_111.png" style="height: 185px; width: 311.919px;" width="312" /&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Ok, lets try a Shapefile or dBASE standalone table.&lt;/P&gt;&lt;P&gt;Here it what happens if it runs on a Shapefile:&lt;/P&gt;&lt;P&gt;&lt;IMG __jive_id="166692" alt="111.png" class="image-4 jive-image" src="https://community.esri.com/legacyfs/online/166692_111.png" /&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;You can see the results as well, warning that there was an Empty value ( meaning &amp;lt;null&amp;gt;).&amp;nbsp; We know that this is on the Double field because we understand that &amp;lt;null&amp;gt; is not possible in a shapefile environment. (I wont get into details as to why) but you can look and you will see via any means (SQL manager or ArcCatalog or in .accdb that on a double field, there are options to&lt;EM&gt;&lt;STRONG&gt; Allow NULL Values.&lt;/STRONG&gt;&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;So the warning means, empty value was inserted with what is only possible with a double field in a shapefile... a Zero.&lt;/P&gt;&lt;P&gt;we could write more VBScript to alleviate the warning message when it runs (what is called error encapsulation / handling) if we wanted.&lt;/P&gt;&lt;P&gt;&lt;IMG alt="2015-10-20 11_21_48-Identify.png" class="image-6 jive-image" src="/legacyfs/online/166695_2015-10-20 11_21_48-Identify.png" style="height: auto;" /&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Now what I didn't notice when I quickly replied is that it appears that the featureclass is JOINED to an xlsx? (not entirely sure)&lt;/P&gt;&lt;P&gt;in which case,&lt;STRONG&gt; &amp;lt;null&amp;gt; is not supported. &lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If you are working directly off a xlsx in ArcMap.&lt;/P&gt;&lt;P&gt;Doubles should show &amp;lt;null&amp;gt;&lt;/P&gt;&lt;P&gt;&lt;IMG __jive_id="166693" alt="111.png" class="image-5 jive-image" src="https://community.esri.com/legacyfs/online/166693_111.png" style="height: auto;" /&gt;&lt;/P&gt;&lt;P&gt;Of course then there is no field calculations...&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;So then this becomes a question of 'what are you trying to accomplish'.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;if you want &amp;lt;null&amp;gt; for a featureclass, then the featureclass needs to be in an Enterprise Geodatabase or a FileGeodatabase (and a few other data container types).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;It doesn't end here either, I could keep assuming (which isn't good) (e.g are you calculating a Joined Featureclass to export to xlsx? ) ... so Ill stop here, hopefully this makes sense and works for whatever you are trying to accomplish.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Sat, 09 Jan 2016 19:54:40 GMT</pubDate>
    <dc:creator>MichaelRobb</dc:creator>
    <dc:date>2016-01-09T19:54:40Z</dc:date>
    <item>
      <title>Convert String to Double</title>
      <link>https://community.esri.com/t5/data-management-questions/convert-string-to-double/m-p/138070#M7966</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;In a Feature Class Attribute Table, I have data in a column that is of string data type and need to convert it to a double data type. I have already added an empty column with a double data type on which I can use the Field Calculator.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;What is the best way to go about this?&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 22 May 2012 18:22:59 GMT</pubDate>
      <guid>https://community.esri.com/t5/data-management-questions/convert-string-to-double/m-p/138070#M7966</guid>
      <dc:creator>TimHayes</dc:creator>
      <dc:date>2012-05-22T18:22:59Z</dc:date>
    </item>
    <item>
      <title>Re: Convert String to Double</title>
      <link>https://community.esri.com/t5/data-management-questions/convert-string-to-double/m-p/138071#M7967</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Timothy,&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;You've got the correct workflow.&amp;nbsp; As long as the current string field contains only numbers, you can create a new field (type double) and use the field calculator to populate it with the values from your string field.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Your only other option would be to create a new feature class with the proper field schema and load your data into it (using field mapping to make sure your data ends up in the proper fields).&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 22 May 2012 18:43:27 GMT</pubDate>
      <guid>https://community.esri.com/t5/data-management-questions/convert-string-to-double/m-p/138071#M7967</guid>
      <dc:creator>TimHopper</dc:creator>
      <dc:date>2012-05-22T18:43:27Z</dc:date>
    </item>
    <item>
      <title>Re: Convert String to Double</title>
      <link>https://community.esri.com/t5/data-management-questions/convert-string-to-double/m-p/138072#M7968</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;BLOCKQUOTE class="jive-quote"&gt;Timothy,&lt;BR /&gt;&lt;BR /&gt;You've got the correct workflow.&amp;nbsp; As long as the current string field contains only numbers, you can create a new field (type double) and use the field calculator to populate it with the values from your string field.&lt;BR /&gt;&lt;BR /&gt;Your only other option would be to create a new feature class with the proper field schema and load your data into it (using field mapping to make sure your data ends up in the proper fields).&lt;/BLOCKQUOTE&gt;&lt;BR /&gt;&lt;SPAN&gt; &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Yes, it worked. It has been a few years since I tried this. The problem was that my string column had one empty value/blank in it. I must have missed this when I checked the data before I ran the Field Calc. In order for this to work there can be no blanks in the string field.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 24 May 2012 02:02:41 GMT</pubDate>
      <guid>https://community.esri.com/t5/data-management-questions/convert-string-to-double/m-p/138072#M7968</guid>
      <dc:creator>TimHayes</dc:creator>
      <dc:date>2012-05-24T02:02:41Z</dc:date>
    </item>
    <item>
      <title>Re: Convert String to Double</title>
      <link>https://community.esri.com/t5/data-management-questions/convert-string-to-double/m-p/138073#M7969</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Tim, &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks for the answer. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;What if my string column contains no only numbers but also blanks (#DIV/0!)? &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Is there a way to convert the blanks (#DIV/0!) to 'Null's instead of '0's &lt;SPAN style="line-height: 1.5;"&gt;at the same time&lt;/SPAN&gt;&lt;SPAN style="line-height: 1.5;"&gt;? &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Cheers. &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 06 Jan 2016 03:55:14 GMT</pubDate>
      <guid>https://community.esri.com/t5/data-management-questions/convert-string-to-double/m-p/138073#M7969</guid>
      <dc:creator>GoldenJiang</dc:creator>
      <dc:date>2016-01-06T03:55:14Z</dc:date>
    </item>
    <item>
      <title>Re: Convert String to Double</title>
      <link>https://community.esri.com/t5/data-management-questions/convert-string-to-double/m-p/138074#M7970</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Alternatively, you can use the "Show Codeblock" in the field calculator and then use&lt;/P&gt;&lt;P&gt;Output = CDbl( [lFIELDNAME])&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;[Field] = Output&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;CDbl converts the string to double. &lt;/P&gt;&lt;P&gt;You can then add more items such as Replace as well to remove items such as periods or decimals if need be&lt;/P&gt;&lt;P&gt;e.g. &lt;/P&gt;&lt;P&gt;Output = CDbl( Replace([FIELDNAME],"."," "))&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 06 Jan 2016 19:08:34 GMT</pubDate>
      <guid>https://community.esri.com/t5/data-management-questions/convert-string-to-double/m-p/138074#M7970</guid>
      <dc:creator>MichaelRobb</dc:creator>
      <dc:date>2016-01-06T19:08:34Z</dc:date>
    </item>
    <item>
      <title>Re: Convert String to Double</title>
      <link>https://community.esri.com/t5/data-management-questions/convert-string-to-double/m-p/138075#M7971</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;If you want anything that is NOT a numeric number in the text field to show up as NULL in the double field, This works:&lt;/P&gt;&lt;P&gt;Id do a check to make sure ISNumeric, if not then output Null.&lt;/P&gt;&lt;P&gt;Dim String, Check&lt;/P&gt;&lt;P&gt;String = [STRINGFIELD]&lt;/P&gt;&lt;P&gt;Check = IsNumeric(String)&lt;/P&gt;&lt;P&gt;If Check = True then&lt;/P&gt;&lt;P&gt;Output = CDbl(String)&lt;/P&gt;&lt;P&gt;else&lt;/P&gt;&lt;P&gt;Output = null&lt;/P&gt;&lt;P&gt;End if&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;[FIELD] = Output&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;lt;null&amp;gt; will be what you see in the double field.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 06 Jan 2016 19:32:06 GMT</pubDate>
      <guid>https://community.esri.com/t5/data-management-questions/convert-string-to-double/m-p/138075#M7971</guid>
      <dc:creator>MichaelRobb</dc:creator>
      <dc:date>2016-01-06T19:32:06Z</dc:date>
    </item>
    <item>
      <title>Re: Convert String to Double</title>
      <link>https://community.esri.com/t5/data-management-questions/convert-string-to-double/m-p/138076#M7972</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks Michael, &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I am not really familiar with VB Script. I followed your method but it turns out 'failure during processing'. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Please tell me how to resolve this problem.&lt;/P&gt;&lt;P&gt;&lt;IMG class="image-1 jive-image" src="https://community.esri.com/legacyfs/online/165995_pastedImage_0.png" style="max-width: 1200px; max-height: 900px;" /&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 08 Jan 2016 00:51:08 GMT</pubDate>
      <guid>https://community.esri.com/t5/data-management-questions/convert-string-to-double/m-p/138076#M7972</guid>
      <dc:creator>GoldenJiang</dc:creator>
      <dc:date>2016-01-08T00:51:08Z</dc:date>
    </item>
    <item>
      <title>Re: Convert String to Double</title>
      <link>https://community.esri.com/t5/data-management-questions/convert-string-to-double/m-p/138077#M7973</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;hi Golden,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;First you need to Check "Show Codeblock"&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;IMG alt="111.png" class="image-1 jive-image" src="https://community.esri.com/legacyfs/online/166001_111.png" style="height: auto;" /&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;that entire block of code you have there you put in Block #1 as seen above&lt;/P&gt;&lt;P&gt;then you need to type &lt;STRONG style="font-family: arial, helvetica, 'helvetica neue', verdana, sans-serif;"&gt;Output &lt;/STRONG&gt;&lt;SPAN style="font-family: arial, helvetica, 'helvetica neue', verdana, sans-serif;"&gt;in Block #2.&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 08 Jan 2016 02:57:12 GMT</pubDate>
      <guid>https://community.esri.com/t5/data-management-questions/convert-string-to-double/m-p/138077#M7973</guid>
      <dc:creator>MichaelRobb</dc:creator>
      <dc:date>2016-01-08T02:57:12Z</dc:date>
    </item>
    <item>
      <title>Re: Convert String to Double</title>
      <link>https://community.esri.com/t5/data-management-questions/convert-string-to-double/m-p/138078#M7974</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks Michael, &lt;/P&gt;&lt;P&gt;It seems that there is something wrong with the code: &lt;/P&gt;&lt;P&gt;&lt;IMG class="image-1 jive-image" src="https://community.esri.com/legacyfs/online/166303_pastedImage_1.png" style="max-width: 1200px; max-height: 900px;" /&gt;&lt;/P&gt;&lt;P&gt;&lt;IMG class="image-2 jive-image" src="https://community.esri.com/legacyfs/online/166553_pastedImage_2.png" style="max-width: 1200px; max-height: 900px;" /&gt;&lt;/P&gt;&lt;P style="font-family: arial, helvetica, 'helvetica neue', verdana, sans-serif;"&gt;Please show me how to resolve this problem.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 09 Jan 2016 06:57:47 GMT</pubDate>
      <guid>https://community.esri.com/t5/data-management-questions/convert-string-to-double/m-p/138078#M7974</guid>
      <dc:creator>GoldenJiang</dc:creator>
      <dc:date>2016-01-09T06:57:47Z</dc:date>
    </item>
    <item>
      <title>Re: Convert String to Double</title>
      <link>https://community.esri.com/t5/data-management-questions/convert-string-to-double/m-p/138079#M7975</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Golden.&lt;/P&gt;&lt;P&gt;There is nothing wrong with the code.&lt;/P&gt;&lt;P&gt;The issue here is not understanding data in general and/or the code....&lt;/P&gt;&lt;P&gt;In this case, let me try to provide a 'crash course' on some items.&lt;/P&gt;&lt;P&gt;Null means one thing and is handled differently for SQL and is different for data in a FileGeoDatabase and again different in a dbf standalone and yet again different for xlsx etc...&lt;/P&gt;&lt;P&gt;What does this all mean?&amp;nbsp; It means, an understanding of data and its storage media is needed.&amp;nbsp; Below I have made some case examples.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Follow:&lt;/P&gt;&lt;P&gt;Create a table in a FileGeoDatabase.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Catalog &amp;gt;&amp;gt; New .. &amp;gt;&amp;gt; Table&amp;nbsp; (in the file geodatabase)&lt;/P&gt;&lt;P&gt;Create two fields,&amp;nbsp; STRINGS - with a TEXT data type and DOUBLES using Double&lt;/P&gt;&lt;P&gt;Add a few sample Strings...&lt;/P&gt;&lt;P&gt;&lt;IMG __jive_id="166437" alt="111.png" class="image-1 jive-image" src="https://community.esri.com/legacyfs/online/166437_111.png" style="width: 620px; height: 199px;" /&gt;&lt;/P&gt;&lt;P&gt;Right click on FIELD&amp;nbsp; &amp;gt;&amp;gt; Calculate&lt;/P&gt;&lt;P&gt;(Show Codeblock) (VBScript)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Pre-Logic:&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&lt;EM&gt;Dim String, Check&lt;/EM&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&lt;EM&gt;String = [STRINGS]&lt;/EM&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&lt;EM&gt;Check = IsNumeric(String)&lt;/EM&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&lt;EM&gt;If Check = True then&lt;/EM&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&lt;EM&gt;Output = CDbl(String)&lt;/EM&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&lt;EM&gt;else&lt;/EM&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&lt;EM&gt;Output = null&lt;/EM&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&lt;EM&gt;End if&lt;/EM&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Doubles=&amp;nbsp; &lt;STRONG&gt;&lt;EM&gt;Output&lt;/EM&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;so should look like this:&lt;/P&gt;&lt;P&gt;&lt;IMG __jive_id="166438" alt="111.png" class="image-2 jive-image" height="347" src="https://community.esri.com/legacyfs/online/166438_111.png" style="height: 347px; width: 302.813px;" width="303" /&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Once you run it...&lt;/P&gt;&lt;P&gt;Anything NOT a numeric is now &amp;lt;Null&amp;gt;.&lt;/P&gt;&lt;P&gt;Looks great!&amp;nbsp; You could from here export to xlsx for example, without issue.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;IMG __jive_id="166691" alt="111.png" class="image-3 jive-image" height="185" src="https://community.esri.com/legacyfs/online/166691_111.png" style="height: 185px; width: 311.919px;" width="312" /&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Ok, lets try a Shapefile or dBASE standalone table.&lt;/P&gt;&lt;P&gt;Here it what happens if it runs on a Shapefile:&lt;/P&gt;&lt;P&gt;&lt;IMG __jive_id="166692" alt="111.png" class="image-4 jive-image" src="https://community.esri.com/legacyfs/online/166692_111.png" /&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;You can see the results as well, warning that there was an Empty value ( meaning &amp;lt;null&amp;gt;).&amp;nbsp; We know that this is on the Double field because we understand that &amp;lt;null&amp;gt; is not possible in a shapefile environment. (I wont get into details as to why) but you can look and you will see via any means (SQL manager or ArcCatalog or in .accdb that on a double field, there are options to&lt;EM&gt;&lt;STRONG&gt; Allow NULL Values.&lt;/STRONG&gt;&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;So the warning means, empty value was inserted with what is only possible with a double field in a shapefile... a Zero.&lt;/P&gt;&lt;P&gt;we could write more VBScript to alleviate the warning message when it runs (what is called error encapsulation / handling) if we wanted.&lt;/P&gt;&lt;P&gt;&lt;IMG alt="2015-10-20 11_21_48-Identify.png" class="image-6 jive-image" src="/legacyfs/online/166695_2015-10-20 11_21_48-Identify.png" style="height: auto;" /&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Now what I didn't notice when I quickly replied is that it appears that the featureclass is JOINED to an xlsx? (not entirely sure)&lt;/P&gt;&lt;P&gt;in which case,&lt;STRONG&gt; &amp;lt;null&amp;gt; is not supported. &lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If you are working directly off a xlsx in ArcMap.&lt;/P&gt;&lt;P&gt;Doubles should show &amp;lt;null&amp;gt;&lt;/P&gt;&lt;P&gt;&lt;IMG __jive_id="166693" alt="111.png" class="image-5 jive-image" src="https://community.esri.com/legacyfs/online/166693_111.png" style="height: auto;" /&gt;&lt;/P&gt;&lt;P&gt;Of course then there is no field calculations...&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;So then this becomes a question of 'what are you trying to accomplish'.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;if you want &amp;lt;null&amp;gt; for a featureclass, then the featureclass needs to be in an Enterprise Geodatabase or a FileGeodatabase (and a few other data container types).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;It doesn't end here either, I could keep assuming (which isn't good) (e.g are you calculating a Joined Featureclass to export to xlsx? ) ... so Ill stop here, hopefully this makes sense and works for whatever you are trying to accomplish.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 09 Jan 2016 19:54:40 GMT</pubDate>
      <guid>https://community.esri.com/t5/data-management-questions/convert-string-to-double/m-p/138079#M7975</guid>
      <dc:creator>MichaelRobb</dc:creator>
      <dc:date>2016-01-09T19:54:40Z</dc:date>
    </item>
    <item>
      <title>Re: Convert String to Double</title>
      <link>https://community.esri.com/t5/data-management-questions/convert-string-to-double/m-p/138080#M7976</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Great thanks Michael,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I am processing spatial and temporal yield maps. I put the normalized yields (grids) of different years into a number of columns in Excel and calculate the average, coefficient of variance (average/STD) and performance classes. '#DIV/0!' shows up because some data are missing.&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Yes, I imported csv. files with the processed results into ArcGIS but the program won't let me add fields for the csv. files. Then I Joined this file to one of my existing shape files and added a field as the Double type. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have been modifying the original excel files and changing '#DIV/0!' to '-1' then using definition query to filter these values out. That works fine but I am still interested in coding to solve this problem because it might streamline things a bit.&amp;nbsp;&amp;nbsp; &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 10 Jan 2016 21:03:20 GMT</pubDate>
      <guid>https://community.esri.com/t5/data-management-questions/convert-string-to-double/m-p/138080#M7976</guid>
      <dc:creator>GoldenJiang</dc:creator>
      <dc:date>2016-01-10T21:03:20Z</dc:date>
    </item>
    <item>
      <title>Re: Convert String to Double</title>
      <link>https://community.esri.com/t5/data-management-questions/convert-string-to-double/m-p/138081#M7977</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;It should work fine if the featurelcass is in a FileGeodatabase. A Shapefile will not work for what you are looking for as I have mentioned. &lt;/P&gt;&lt;P&gt;Id Import the shapefile into a FileGeodatabase and then your desired &amp;lt;null&amp;gt; will work... and so would the script.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 10 Jan 2016 21:52:04 GMT</pubDate>
      <guid>https://community.esri.com/t5/data-management-questions/convert-string-to-double/m-p/138081#M7977</guid>
      <dc:creator>MichaelRobb</dc:creator>
      <dc:date>2016-01-10T21:52:04Z</dc:date>
    </item>
    <item>
      <title>Re: Convert String to Double</title>
      <link>https://community.esri.com/t5/data-management-questions/convert-string-to-double/m-p/138082#M7978</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;What's the difference if I save a featureclass in a folder or save it in a FileGeodatabase? &lt;/P&gt;&lt;P&gt;I have been saving data to folders all the time. Hope that doesn't affect my yield data.&amp;nbsp; &lt;/P&gt;&lt;P&gt;&lt;IMG class="image-1 jive-image" height="282" src="https://community.esri.com/legacyfs/online/167181_pastedImage_2.png" style="width: 457px; height: 281.594px;" width="457" /&gt;&lt;IMG class="image-2 jive-image" height="197" src="https://community.esri.com/legacyfs/online/167183_pastedImage_3.png" style="width: 480px; height: 197.419px;" width="480" /&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 11 Jan 2016 02:16:38 GMT</pubDate>
      <guid>https://community.esri.com/t5/data-management-questions/convert-string-to-double/m-p/138082#M7978</guid>
      <dc:creator>GoldenJiang</dc:creator>
      <dc:date>2016-01-11T02:16:38Z</dc:date>
    </item>
    <item>
      <title>Re: Convert String to Double</title>
      <link>https://community.esri.com/t5/data-management-questions/convert-string-to-double/m-p/138083#M7979</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;BLOCKQUOTE class="jive_macro_quote jive-quote jive_text_macro"&gt;&lt;P&gt;What's the difference if I save a featureclass in a folder or save it in a FileGeodatabase?&lt;/P&gt;&lt;P&gt;I have been saving data to folders all the time. Hope that doesn't affect my yield data.&lt;/P&gt;&lt;/BLOCKQUOTE&gt;&lt;P&gt;Datasets&amp;nbsp;saved to a folder from ArcGIS tool output are saved in shapefile (feature classes) and .dbf table format.&lt;/P&gt;&lt;P&gt;&lt;A class="link-titled" href="https://desktop.arcgis.com/en/arcmap/latest/manage-data/shapefiles/geoprocessing-considerations-for-shapefile-output.htm" title="https://desktop.arcgis.com/en/arcmap/latest/manage-data/shapefiles/geoprocessing-considerations-for-shapefile-output.htm"&gt;Geoprocessing considerations for shapefile output—Help | ArcGIS Desktop&lt;/A&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;A class="link-titled" href="https://pro.arcgis.com/en/pro-app/tool-reference/appendices/geoprocessing-considerations-for-shapefile-output.htm" title="https://pro.arcgis.com/en/pro-app/tool-reference/appendices/geoprocessing-considerations-for-shapefile-output.htm"&gt;Geoprocessing considerations for shapefile output—Appendices | ArcGIS Desktop&lt;/A&gt;&amp;nbsp; &amp;nbsp;(Pro)&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 29 Dec 2019 15:26:03 GMT</pubDate>
      <guid>https://community.esri.com/t5/data-management-questions/convert-string-to-double/m-p/138083#M7979</guid>
      <dc:creator>curtvprice</dc:creator>
      <dc:date>2019-12-29T15:26:03Z</dc:date>
    </item>
    <item>
      <title>Re: Convert String to Double</title>
      <link>https://community.esri.com/t5/data-management-questions/convert-string-to-double/m-p/1351887#M44795</link>
      <description>&lt;P&gt;Well this is weird.&amp;nbsp; For a minute I thought I had forgotten how to code in the last 7 years, but quickly realised that my name sake had just helped me out, thanks!!&lt;/P&gt;</description>
      <pubDate>Tue, 21 Nov 2023 11:32:33 GMT</pubDate>
      <guid>https://community.esri.com/t5/data-management-questions/convert-string-to-double/m-p/1351887#M44795</guid>
      <dc:creator>MichaelRobb2</dc:creator>
      <dc:date>2023-11-21T11:32:33Z</dc:date>
    </item>
  </channel>
</rss>

