<?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 Trying to calculate values from a text field to a double field in Data Management Questions</title>
    <link>https://community.esri.com/t5/data-management-questions/trying-to-calculate-values-from-a-text-field-to-a/m-p/629665#M35555</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Hi,&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;I need help, I'm trying to do an "Field Calculator", to get values from a "text" field to a new field with data type "Double"? Seems to be working but the thing is that I have some numeric values with letters in it! Example : P4593. So the thing is that when my values are calculate, those one are represent by 0. &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Is there a Script that can help me to calculate my values correctly?&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Thx for helping me and sorry for my English!&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Pierre-Luc&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 20 Jul 2011 17:19:14 GMT</pubDate>
    <dc:creator>Pierre-LucFaucher</dc:creator>
    <dc:date>2011-07-20T17:19:14Z</dc:date>
    <item>
      <title>Trying to calculate values from a text field to a double field</title>
      <link>https://community.esri.com/t5/data-management-questions/trying-to-calculate-values-from-a-text-field-to-a/m-p/629665#M35555</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Hi,&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;I need help, I'm trying to do an "Field Calculator", to get values from a "text" field to a new field with data type "Double"? Seems to be working but the thing is that I have some numeric values with letters in it! Example : P4593. So the thing is that when my values are calculate, those one are represent by 0. &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Is there a Script that can help me to calculate my values correctly?&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Thx for helping me and sorry for my English!&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Pierre-Luc&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 20 Jul 2011 17:19:14 GMT</pubDate>
      <guid>https://community.esri.com/t5/data-management-questions/trying-to-calculate-values-from-a-text-field-to-a/m-p/629665#M35555</guid>
      <dc:creator>Pierre-LucFaucher</dc:creator>
      <dc:date>2011-07-20T17:19:14Z</dc:date>
    </item>
    <item>
      <title>Re: Trying to calculate values from a text field to a double field</title>
      <link>https://community.esri.com/t5/data-management-questions/trying-to-calculate-values-from-a-text-field-to-a/m-p/629666#M35556</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Pierre-Luc, &lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;If all your text/string fields have the same format, P4593, for example.&amp;nbsp; Then you could use the Right VB syntax to extract the 4 right most characters.&amp;nbsp; In this case my formula would be:&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;NewField = Right ( [StringField], 4)&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;This would extract the right 4 "characters" --- 4593 --- and put it into the Double field.&amp;nbsp; If the [StringField] is like P45931, then you would update the formula to be:&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;NewField = Right ( [StringField], 5)&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Then 45931 is calculated into the NewField field.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Hope this helps!&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Robert LeClair&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Esri-Denver&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 20 Jul 2011 18:45:07 GMT</pubDate>
      <guid>https://community.esri.com/t5/data-management-questions/trying-to-calculate-values-from-a-text-field-to-a/m-p/629666#M35556</guid>
      <dc:creator>Robert_LeClair</dc:creator>
      <dc:date>2011-07-20T18:45:07Z</dc:date>
    </item>
    <item>
      <title>Re: Trying to calculate values from a text field to a double field</title>
      <link>https://community.esri.com/t5/data-management-questions/trying-to-calculate-values-from-a-text-field-to-a/m-p/629667#M35557</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Double is a data type that does not support non-numeric characters (other than a decimal point). Would striping the alphabet characters and just having the number in the field meet your needs?&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 20 Jul 2011 18:48:31 GMT</pubDate>
      <guid>https://community.esri.com/t5/data-management-questions/trying-to-calculate-values-from-a-text-field-to-a/m-p/629667#M35557</guid>
      <dc:creator>RuthEmerick</dc:creator>
      <dc:date>2011-07-20T18:48:31Z</dc:date>
    </item>
  </channel>
</rss>

