<?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: Unable to change text field to numeric field to show xy data in Data Management Questions</title>
    <link>https://community.esri.com/t5/data-management-questions/unable-to-change-text-field-to-numeric-field-to/m-p/608634#M34277</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Ah the advantages of using a spreadsheet for a database. You ruled out the obvious like spaces, characters, quotes, and nulls. Have you rules out the field names like longitude being shortened to long a reserved word? Field names with spaces also cause problems, if you ever plan to export as a shapefile the names have to be 10 characters or less without spaces or risk truncation. Check to make sure the cells also have values not formulas. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Next step if you have checked everything ans it still doesn't work, try to export excel as a CSV and bring that in. If the X,Y fields still don't come in as numbers, you have a character in there somewhere, maybe a comma? Or if you have an older version of excel export as a dbf. Another option use Access, as an mdb files, import the excel table, ArcMap should now be able to read it.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;One thing you can count on is excel always being a problem, and people using excel as a database.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 30 Aug 2016 13:18:11 GMT</pubDate>
    <dc:creator>BillChappell</dc:creator>
    <dc:date>2016-08-30T13:18:11Z</dc:date>
    <item>
      <title>Unable to change text field to numeric field to show xy data</title>
      <link>https://community.esri.com/t5/data-management-questions/unable-to-change-text-field-to-numeric-field-to/m-p/608633#M34276</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;I have a table, originally imported from excel, with two fields with coordinates that I cannot manage to convert to numeric fields. I want to display the content of the table's XY data, and that cannot be done when the fields are defined as text. I tried adding two new empty fields defined as double and using Field calculator to "copy" the content from the coordinate fields defined as text. I got the error message &lt;EM&gt;"The calculated value is invalid for the row with ObjectID = 1. For example, the calculated value may be too large for the field or you may be trying to add a string to a number field. This row will not be updated. Do you want to process the rest of the rows?"&lt;/EM&gt; I said yes and there was the same problem with the rest of the rows. There are no spaces, commas or Null values in the coordinate fields defined as text. An example of the coordinates in my table: X "274676.9" and Y "6633201.0"&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I also tried Table to table, but then I got error 001156 with description "text values cannot be added to numeric fields".&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Is there no other way to convert fields in a table from text to numeric?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I tried changing the definition to Number (instead of Standard) in excel and importing it again, but it is still defined as text. The table is a result of many joins, but exported to a new table&amp;nbsp;and the joins are gone now (right?)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I use arcgis 10.2.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks in advance.&lt;/P&gt;&lt;DIV class=""&gt;&lt;DIV class="" data-questionid="208740"&gt; &lt;/DIV&gt;&lt;/DIV&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 30 Aug 2016 12:59:09 GMT</pubDate>
      <guid>https://community.esri.com/t5/data-management-questions/unable-to-change-text-field-to-numeric-field-to/m-p/608633#M34276</guid>
      <dc:creator>SBreckan</dc:creator>
      <dc:date>2016-08-30T12:59:09Z</dc:date>
    </item>
    <item>
      <title>Re: Unable to change text field to numeric field to show xy data</title>
      <link>https://community.esri.com/t5/data-management-questions/unable-to-change-text-field-to-numeric-field-to/m-p/608634#M34277</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Ah the advantages of using a spreadsheet for a database. You ruled out the obvious like spaces, characters, quotes, and nulls. Have you rules out the field names like longitude being shortened to long a reserved word? Field names with spaces also cause problems, if you ever plan to export as a shapefile the names have to be 10 characters or less without spaces or risk truncation. Check to make sure the cells also have values not formulas. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Next step if you have checked everything ans it still doesn't work, try to export excel as a CSV and bring that in. If the X,Y fields still don't come in as numbers, you have a character in there somewhere, maybe a comma? Or if you have an older version of excel export as a dbf. Another option use Access, as an mdb files, import the excel table, ArcMap should now be able to read it.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;One thing you can count on is excel always being a problem, and people using excel as a database.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 30 Aug 2016 13:18:11 GMT</pubDate>
      <guid>https://community.esri.com/t5/data-management-questions/unable-to-change-text-field-to-numeric-field-to/m-p/608634#M34277</guid>
      <dc:creator>BillChappell</dc:creator>
      <dc:date>2016-08-30T13:18:11Z</dc:date>
    </item>
    <item>
      <title>Re: Unable to change text field to numeric field to show xy data</title>
      <link>https://community.esri.com/t5/data-management-questions/unable-to-change-text-field-to-numeric-field-to/m-p/608635#M34278</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi S,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Add two new fields of type 'Double' and then you can use the field calculator to convert the text fields with the following expression:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE class="language-python line-numbers"&gt;&lt;CODE&gt;float&lt;SPAN class="punctuation token"&gt;(&lt;/SPAN&gt;!Lat!&lt;SPAN class="punctuation token"&gt;)&lt;/SPAN&gt;&lt;SPAN class="line-numbers-rows"&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;You will want to replace 'Lat' with the field name, but keep the exclamation points.&amp;nbsp; Also, you will want to make sure 'Python' is checked at the top of the field calculator.&amp;nbsp; Ex:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;IMG alt="" class="image-1 jive-image j-img-original" src="https://community.esri.com/legacyfs/online/218595_Screen1.PNG" style="height: auto;" /&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 30 Aug 2016 13:22:35 GMT</pubDate>
      <guid>https://community.esri.com/t5/data-management-questions/unable-to-change-text-field-to-numeric-field-to/m-p/608635#M34278</guid>
      <dc:creator>JakeSkinner</dc:creator>
      <dc:date>2016-08-30T13:22:35Z</dc:date>
    </item>
    <item>
      <title>Re: Unable to change text field to numeric field to show xy data</title>
      <link>https://community.esri.com/t5/data-management-questions/unable-to-change-text-field-to-numeric-field-to/m-p/608636#M34279</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Bill,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have this problem all the time. I fully agree about converting it to a CSV. This is likely the best bet to rule out any errors. Though, there isn't much we (as GIS people) can do about people using excel in place of a database. I would say that most 'regular' people in any field would throw data into Excel versus going through the trouble of trying to populate a database. It is s problem but it's something that will always happen.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 30 Aug 2016 13:26:01 GMT</pubDate>
      <guid>https://community.esri.com/t5/data-management-questions/unable-to-change-text-field-to-numeric-field-to/m-p/608636#M34279</guid>
      <dc:creator>AdrianWelsh</dc:creator>
      <dc:date>2016-08-30T13:26:01Z</dc:date>
    </item>
    <item>
      <title>Re: Unable to change text field to numeric field to show xy data</title>
      <link>https://community.esri.com/t5/data-management-questions/unable-to-change-text-field-to-numeric-field-to/m-p/608637#M34280</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thank you! I&amp;nbsp;tried using Field calculator a number of times, but I used VB Script and just double clicked my old X field defined as text. But this worked! I am very grateful.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 30 Aug 2016 13:56:01 GMT</pubDate>
      <guid>https://community.esri.com/t5/data-management-questions/unable-to-change-text-field-to-numeric-field-to/m-p/608637#M34280</guid>
      <dc:creator>SBreckan</dc:creator>
      <dc:date>2016-08-30T13:56:01Z</dc:date>
    </item>
    <item>
      <title>Re: Unable to change text field to numeric field to show xy data</title>
      <link>https://community.esri.com/t5/data-management-questions/unable-to-change-text-field-to-numeric-field-to/m-p/608638#M34281</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thank you Bill. Converting to csv also worked, although Jake's solution was faster. I will make sure to convert to csv in the future, it also reduced the size of the table and made my slow computer easier to work with. Much appreciated!&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 30 Aug 2016 13:58:11 GMT</pubDate>
      <guid>https://community.esri.com/t5/data-management-questions/unable-to-change-text-field-to-numeric-field-to/m-p/608638#M34281</guid>
      <dc:creator>SBreckan</dc:creator>
      <dc:date>2016-08-30T13:58:11Z</dc:date>
    </item>
    <item>
      <title>Re: Unable to change text field to numeric field to show xy data</title>
      <link>https://community.esri.com/t5/data-management-questions/unable-to-change-text-field-to-numeric-field-to/m-p/608639#M34282</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&amp;nbsp;...... gotta love VB! &amp;nbsp; I just works! &amp;nbsp; &lt;IMG src="https://community.esri.com/legacyfs/online/emoticons/happy.png" /&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; BTW: &amp;nbsp;if you are using vbscript .... &amp;nbsp;Val([yourField]) will work stripping the spaces and non numeric text....&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 30 Aug 2016 14:05:43 GMT</pubDate>
      <guid>https://community.esri.com/t5/data-management-questions/unable-to-change-text-field-to-numeric-field-to/m-p/608639#M34282</guid>
      <dc:creator>TedKowal</dc:creator>
      <dc:date>2016-08-30T14:05:43Z</dc:date>
    </item>
    <item>
      <title>Re: Unable to change text field to numeric field to show xy data</title>
      <link>https://community.esri.com/t5/data-management-questions/unable-to-change-text-field-to-numeric-field-to/m-p/608640#M34283</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I ran into this when I taught GIS at a college. For one class, students would use excel and their smartphones or GPS units and have trouble bringing data into ArcMap. First it was because they captured points as DMS and then you would explain why they needed Decimal Degrees, and show them how to convert DMS to DD. Next they would struggle because their new converted fields were really just formulas. Even if they had it as DD it usually came in as a string field, or they had 0,0 points if they used number fields. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;It was always a frustration lesson that finally had them using CSV as a simple fix.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 30 Aug 2016 14:11:20 GMT</pubDate>
      <guid>https://community.esri.com/t5/data-management-questions/unable-to-change-text-field-to-numeric-field-to/m-p/608640#M34283</guid>
      <dc:creator>BillChappell</dc:creator>
      <dc:date>2016-08-30T14:11:20Z</dc:date>
    </item>
    <item>
      <title>Re: Unable to change text field to numeric field to show xy data</title>
      <link>https://community.esri.com/t5/data-management-questions/unable-to-change-text-field-to-numeric-field-to/m-p/1407702#M45082</link>
      <description>&lt;P&gt;Is there a solution for if the table is imported, but for some reason, is 'read-only'? I am signed into my organization page and there are no pending edits. I cannot find any specific guidance on this online, or how to make the table editable.&lt;/P&gt;</description>
      <pubDate>Tue, 09 Apr 2024 19:46:22 GMT</pubDate>
      <guid>https://community.esri.com/t5/data-management-questions/unable-to-change-text-field-to-numeric-field-to/m-p/1407702#M45082</guid>
      <dc:creator>AlisonWilliams1</dc:creator>
      <dc:date>2024-04-09T19:46:22Z</dc:date>
    </item>
  </channel>
</rss>

