<?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 a text field to a numeric field in ArcMap Questions</title>
    <link>https://community.esri.com/t5/arcmap-questions/convert-a-text-field-to-a-numeric-field/m-p/1137446#M3377</link>
    <description>&lt;P&gt;As mentioned by Sean, you need to &lt;A href="https://desktop.arcgis.com/en/arcmap/latest/manage-data/tables/adding-fields.htm" target="_self"&gt;add a field&lt;/A&gt; "DIA" with Type LONG INTEGER or FLOAT, depending on whether the desired value is an integer or Decimal Point value respectively.&lt;/P&gt;&lt;P&gt;Then Right-click "DIA" field &amp;gt; &lt;EM&gt;Field Calculator&lt;/EM&gt;.&lt;/P&gt;&lt;P&gt;Expression:&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;[LAYER]&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="JayantaPoddar_0-1643214044756.png" style="width: 400px;"&gt;&lt;img src="https://community.esri.com/t5/image/serverpage/image-id/32374i9D95F80DDCA29864/image-size/medium?v=v2&amp;amp;px=400" role="button" title="JayantaPoddar_0-1643214044756.png" alt="JayantaPoddar_0-1643214044756.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Wed, 26 Jan 2022 16:24:25 GMT</pubDate>
    <dc:creator>JayantaPoddar</dc:creator>
    <dc:date>2022-01-26T16:24:25Z</dc:date>
    <item>
      <title>Convert a text field to a numeric field</title>
      <link>https://community.esri.com/t5/arcmap-questions/convert-a-text-field-to-a-numeric-field/m-p/1137411#M3374</link>
      <description>&lt;P&gt;I have a shape file that was exported from Autocad Map.&amp;nbsp; It represents pipes in a network.&amp;nbsp; I have a field representing the pipe dia, but it is a text field and would like to convert it to numeric.&amp;nbsp; Can someone walk me thru those steps?&amp;nbsp; Name of the text field is "LAYER" and I need the new numeric one to be "DIA"&amp;nbsp; Thanks for any help you can give.&lt;/P&gt;&lt;P&gt;MKH&lt;/P&gt;</description>
      <pubDate>Wed, 26 Jan 2022 15:25:54 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcmap-questions/convert-a-text-field-to-a-numeric-field/m-p/1137411#M3374</guid>
      <dc:creator>mkhenson</dc:creator>
      <dc:date>2022-01-26T15:25:54Z</dc:date>
    </item>
    <item>
      <title>Re: Convert a text field to a numeric field</title>
      <link>https://community.esri.com/t5/arcmap-questions/convert-a-text-field-to-a-numeric-field/m-p/1137428#M3375</link>
      <description>&lt;P&gt;You can use the add field tool and then use the field calculator to calculate what goes in it.&lt;/P&gt;&lt;P&gt;&lt;A href="https://desktop.arcgis.com/en/arcmap/10.3/tools/data-management-toolbox/add-field.htm" target="_blank"&gt;https://desktop.arcgis.com/en/arcmap/10.3/tools/data-management-toolbox/add-field.htm&lt;/A&gt;&lt;/P&gt;</description>
      <pubDate>Wed, 26 Jan 2022 15:45:50 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcmap-questions/convert-a-text-field-to-a-numeric-field/m-p/1137428#M3375</guid>
      <dc:creator>Sean_Wray</dc:creator>
      <dc:date>2022-01-26T15:45:50Z</dc:date>
    </item>
    <item>
      <title>Re: Convert a text field to a numeric field</title>
      <link>https://community.esri.com/t5/arcmap-questions/convert-a-text-field-to-a-numeric-field/m-p/1137437#M3376</link>
      <description>&lt;P&gt;yeah, I've seen the help, but it reads like a programming language, which confuses me entirely!&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 26 Jan 2022 16:13:52 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcmap-questions/convert-a-text-field-to-a-numeric-field/m-p/1137437#M3376</guid>
      <dc:creator>mkhenson</dc:creator>
      <dc:date>2022-01-26T16:13:52Z</dc:date>
    </item>
    <item>
      <title>Re: Convert a text field to a numeric field</title>
      <link>https://community.esri.com/t5/arcmap-questions/convert-a-text-field-to-a-numeric-field/m-p/1137446#M3377</link>
      <description>&lt;P&gt;As mentioned by Sean, you need to &lt;A href="https://desktop.arcgis.com/en/arcmap/latest/manage-data/tables/adding-fields.htm" target="_self"&gt;add a field&lt;/A&gt; "DIA" with Type LONG INTEGER or FLOAT, depending on whether the desired value is an integer or Decimal Point value respectively.&lt;/P&gt;&lt;P&gt;Then Right-click "DIA" field &amp;gt; &lt;EM&gt;Field Calculator&lt;/EM&gt;.&lt;/P&gt;&lt;P&gt;Expression:&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;[LAYER]&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="JayantaPoddar_0-1643214044756.png" style="width: 400px;"&gt;&lt;img src="https://community.esri.com/t5/image/serverpage/image-id/32374i9D95F80DDCA29864/image-size/medium?v=v2&amp;amp;px=400" role="button" title="JayantaPoddar_0-1643214044756.png" alt="JayantaPoddar_0-1643214044756.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 26 Jan 2022 16:24:25 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcmap-questions/convert-a-text-field-to-a-numeric-field/m-p/1137446#M3377</guid>
      <dc:creator>JayantaPoddar</dc:creator>
      <dc:date>2022-01-26T16:24:25Z</dc:date>
    </item>
    <item>
      <title>Re: Convert a text field to a numeric field</title>
      <link>https://community.esri.com/t5/arcmap-questions/convert-a-text-field-to-a-numeric-field/m-p/1137452#M3378</link>
      <description>&lt;P&gt;The first thing you need to do is &lt;A href="https://pro.arcgis.com/en/pro-app/latest/tool-reference/data-management/add-field.htm" target="_self"&gt;Add a Field&lt;/A&gt; and make sure you make it numeric. If you just need integers (whole numbers), choose Long as the data type. If you need a floating point decimal, choose Double as the data type:&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="AdrianWelsh_0-1643214155187.png" style="width: 400px;"&gt;&lt;img src="https://community.esri.com/t5/image/serverpage/image-id/32375i71EBCA102221FE6B/image-size/medium?v=v2&amp;amp;px=400" role="button" title="AdrianWelsh_0-1643214155187.png" alt="AdrianWelsh_0-1643214155187.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Now that you have this new field, DIA, right click on it and choose "&lt;A href="https://pro.arcgis.com/en/pro-app/latest/tool-reference/data-management/calculate-field.htm" target="_self"&gt;Calculate Field&lt;/A&gt;":&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="AdrianWelsh_1-1643214236709.png" style="width: 400px;"&gt;&lt;img src="https://community.esri.com/t5/image/serverpage/image-id/32376i94E269A9E950EE47/image-size/medium?v=v2&amp;amp;px=400" role="button" title="AdrianWelsh_1-1643214236709.png" alt="AdrianWelsh_1-1643214236709.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;If you need to convert to an integer, in the field calculation box type this:&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="python"&gt;int(!LAYER!)&lt;/LI-CODE&gt;&lt;P&gt;If it's a floating point, type this:&lt;/P&gt;&lt;LI-CODE lang="python"&gt;float(!LAYER!)&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;Make sure Python 3 is chosen as your Expression Type:&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="AdrianWelsh_2-1643214387304.png" style="width: 400px;"&gt;&lt;img src="https://community.esri.com/t5/image/serverpage/image-id/32377i1A3CA9A373B3C64C/image-size/medium?v=v2&amp;amp;px=400" role="button" title="AdrianWelsh_2-1643214387304.png" alt="AdrianWelsh_2-1643214387304.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 26 Jan 2022 16:27:29 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcmap-questions/convert-a-text-field-to-a-numeric-field/m-p/1137452#M3378</guid>
      <dc:creator>AdrianWelsh</dc:creator>
      <dc:date>2022-01-26T16:27:29Z</dc:date>
    </item>
    <item>
      <title>Re: Convert a text field to a numeric field</title>
      <link>https://community.esri.com/t5/arcmap-questions/convert-a-text-field-to-a-numeric-field/m-p/1137458#M3379</link>
      <description>&lt;P&gt;Thanks very much.&amp;nbsp; I appreciate the replies!&amp;nbsp;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 26 Jan 2022 16:35:39 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcmap-questions/convert-a-text-field-to-a-numeric-field/m-p/1137458#M3379</guid>
      <dc:creator>mkhenson</dc:creator>
      <dc:date>2022-01-26T16:35:39Z</dc:date>
    </item>
    <item>
      <title>Re: Convert a text field to a numeric field</title>
      <link>https://community.esri.com/t5/arcmap-questions/convert-a-text-field-to-a-numeric-field/m-p/1137523#M3383</link>
      <description>&lt;P&gt;Yes - my apologies for the rushed answer...&lt;/P&gt;&lt;P&gt;In ArcMap open your table. On the drop down choose Add Field.&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Sean_Wray_1-1643220989344.png" style="width: 400px;"&gt;&lt;img src="https://community.esri.com/t5/image/serverpage/image-id/32392i55E0A9D39EA9F8F2/image-size/medium?v=v2&amp;amp;px=400" role="button" title="Sean_Wray_1-1643220989344.png" alt="Sean_Wray_1-1643220989344.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;Name it - define it as double&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Sean_Wray_2-1643221204029.png" style="width: 400px;"&gt;&lt;img src="https://community.esri.com/t5/image/serverpage/image-id/32393i97C9E9B5D97F20A3/image-size/medium?v=v2&amp;amp;px=400" role="button" title="Sean_Wray_2-1643221204029.png" alt="Sean_Wray_2-1643221204029.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;The right click the new field name in the table and choose Field Calculator&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Sean_Wray_3-1643221327344.png" style="width: 400px;"&gt;&lt;img src="https://community.esri.com/t5/image/serverpage/image-id/32394i684F33093FA84665/image-size/medium?v=v2&amp;amp;px=400" role="button" title="Sean_Wray_3-1643221327344.png" alt="Sean_Wray_3-1643221327344.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;A box will popup. The field you are calculating will be populated. See in the screenshot where it says TEST=. Then in the fields box, double click the field name you want to copy the data from. In the example I choose X and click OK&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Sean_Wray_4-1643221511801.png" style="width: 400px;"&gt;&lt;img src="https://community.esri.com/t5/image/serverpage/image-id/32395i183ED3F2A3FDA98B/image-size/medium?v=v2&amp;amp;px=400" role="button" title="Sean_Wray_4-1643221511801.png" alt="Sean_Wray_4-1643221511801.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 26 Jan 2022 18:25:41 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcmap-questions/convert-a-text-field-to-a-numeric-field/m-p/1137523#M3383</guid>
      <dc:creator>Sean_Wray</dc:creator>
      <dc:date>2022-01-26T18:25:41Z</dc:date>
    </item>
    <item>
      <title>Re: Convert a text field to a numeric field</title>
      <link>https://community.esri.com/t5/arcmap-questions/convert-a-text-field-to-a-numeric-field/m-p/1137544#M3384</link>
      <description>&lt;P&gt;Thanks Sean...that's perfect!&amp;nbsp; I appreciate it very much&lt;/P&gt;</description>
      <pubDate>Wed, 26 Jan 2022 18:55:11 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcmap-questions/convert-a-text-field-to-a-numeric-field/m-p/1137544#M3384</guid>
      <dc:creator>mkhenson</dc:creator>
      <dc:date>2022-01-26T18:55:11Z</dc:date>
    </item>
  </channel>
</rss>

