<?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: Table Join to Shapefile issue [picture] in Geoprocessing Questions</title>
    <link>https://community.esri.com/t5/geoprocessing-questions/table-join-to-shapefile-issue-picture/m-p/444006#M14961</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Original User: SamanthaM&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BLOCKQUOTE class="jive-quote"&gt;If you are going to convert the values from a string to a number, you probably want to use double since you have decimals.&lt;BR /&gt;To convert from a string to a number using the python option on the field calculator: float(!MYFIELDNAME!)&lt;BR /&gt;Did you try changing the field format in excel from a number to a string then perform a join?&lt;/BLOCKQUOTE&gt;&lt;BR /&gt;&lt;SPAN&gt; &lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Yes I can quickly format the data in excel from number to string, and the join will work; however, I want to figure out how to make it work with field calculator to learn new things. Also you are correct on needing a double, that was user oversight error. &lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Did I do something incorrectly? It gave me an error message. &lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;[ATTACH=CONFIG]13301[/ATTACH]&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Also would it be possible to see the same solution to this problem, converting a text field to numbers with field calculator, with VB script? For VB script I thought it would simply be [name] in the code field with number as the type and making sure you have a double field.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Fri, 06 Apr 2012 12:48:44 GMT</pubDate>
    <dc:creator>Anonymous User</dc:creator>
    <dc:date>2012-04-06T12:48:44Z</dc:date>
    <item>
      <title>Table Join to Shapefile issue [picture]</title>
      <link>https://community.esri.com/t5/geoprocessing-questions/table-join-to-shapefile-issue-picture/m-p/444004#M14959</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;I downloaded median house hold value by census tract from American Fact Finder 2. I converted it from data retrieved from csv to a standard excel workbook. Even though the shapefile and the data table share a common trait in which to do a join, it will not let me. In the shapefile the common attribute is stored as a string, and in the excel workbook I believe it is stored as number if that makes a difference. If it does please see image 3 attached where I try making a new column with field calculator. &lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Image 1: Shows a picture of ARCgis attribute window and the excel table side by side to see that the two share a common field, the census tract number which is termed "name" in the attribute table for the shape file, and "geography" in the excel data table (marked in red)&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;[ATTACH=CONFIG]13288[/ATTACH]&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Image 2: When I select the shapefile to perform the join, nothing comes up in the combo box. &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;[ATTACH=CONFIG]13289[/ATTACH]&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Image 3: If the reason for not being able to join is because the name field in the shape file is being stored as a string, while in the excel file its a number. To try and fix this, assuming this is the problem, I made a new field and tried using field calculator to copy over the string as text&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;[ATTACH=CONFIG]13290[/ATTACH]&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Thanks&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 06 Apr 2012 03:33:05 GMT</pubDate>
      <guid>https://community.esri.com/t5/geoprocessing-questions/table-join-to-shapefile-issue-picture/m-p/444004#M14959</guid>
      <dc:creator>SamanthaM</dc:creator>
      <dc:date>2012-04-06T03:33:05Z</dc:date>
    </item>
    <item>
      <title>Re: Table Join to Shapefile issue [picture]</title>
      <link>https://community.esri.com/t5/geoprocessing-questions/table-join-to-shapefile-issue-picture/m-p/444005#M14960</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;If you are going to convert the values from a string to a number, you probably want to use double since you have decimals.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;To convert from a string to a number using the python option on the field calculator: float(!MYFIELDNAME!)&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Did you try changing the field format in excel from a number to a string then perform a join?&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 06 Apr 2012 08:51:57 GMT</pubDate>
      <guid>https://community.esri.com/t5/geoprocessing-questions/table-join-to-shapefile-issue-picture/m-p/444005#M14960</guid>
      <dc:creator>AndrewChapkowski</dc:creator>
      <dc:date>2012-04-06T08:51:57Z</dc:date>
    </item>
    <item>
      <title>Re: Table Join to Shapefile issue [picture]</title>
      <link>https://community.esri.com/t5/geoprocessing-questions/table-join-to-shapefile-issue-picture/m-p/444006#M14961</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Original User: SamanthaM&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BLOCKQUOTE class="jive-quote"&gt;If you are going to convert the values from a string to a number, you probably want to use double since you have decimals.&lt;BR /&gt;To convert from a string to a number using the python option on the field calculator: float(!MYFIELDNAME!)&lt;BR /&gt;Did you try changing the field format in excel from a number to a string then perform a join?&lt;/BLOCKQUOTE&gt;&lt;BR /&gt;&lt;SPAN&gt; &lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Yes I can quickly format the data in excel from number to string, and the join will work; however, I want to figure out how to make it work with field calculator to learn new things. Also you are correct on needing a double, that was user oversight error. &lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Did I do something incorrectly? It gave me an error message. &lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;[ATTACH=CONFIG]13301[/ATTACH]&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Also would it be possible to see the same solution to this problem, converting a text field to numbers with field calculator, with VB script? For VB script I thought it would simply be [name] in the code field with number as the type and making sure you have a double field.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 06 Apr 2012 12:48:44 GMT</pubDate>
      <guid>https://community.esri.com/t5/geoprocessing-questions/table-join-to-shapefile-issue-picture/m-p/444006#M14961</guid>
      <dc:creator>Anonymous User</dc:creator>
      <dc:date>2012-04-06T12:48:44Z</dc:date>
    </item>
    <item>
      <title>Re: Table Join to Shapefile issue [picture]</title>
      <link>https://community.esri.com/t5/geoprocessing-questions/table-join-to-shapefile-issue-picture/m-p/444007#M14962</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Try float(fieldName) not Float(fieldname).&amp;nbsp; It's case sensative.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 06 Apr 2012 13:08:02 GMT</pubDate>
      <guid>https://community.esri.com/t5/geoprocessing-questions/table-join-to-shapefile-issue-picture/m-p/444007#M14962</guid>
      <dc:creator>AndrewChapkowski</dc:creator>
      <dc:date>2012-04-06T13:08:02Z</dc:date>
    </item>
    <item>
      <title>Re: Table Join to Shapefile issue [picture]</title>
      <link>https://community.esri.com/t5/geoprocessing-questions/table-join-to-shapefile-issue-picture/m-p/444008#M14963</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Original User: SamanthaM&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BLOCKQUOTE class="jive-quote"&gt;Try float(fieldName) not Float(fieldname).&amp;nbsp; It's case sensative.&lt;/BLOCKQUOTE&gt;&lt;BR /&gt;&lt;SPAN&gt; &lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Thanks! I was able to get it to work with python float&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;[ATTACH=CONFIG]13302[/ATTACH]&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Also was able to get it to work with VB script&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;[ATTACH=CONFIG]13303[/ATTACH]&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Thanks a great deal. Is there a reputation system on this forum, because there doesn't appear to be. I would love to ad to yours if there is.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 06 Apr 2012 13:19:14 GMT</pubDate>
      <guid>https://community.esri.com/t5/geoprocessing-questions/table-join-to-shapefile-issue-picture/m-p/444008#M14963</guid>
      <dc:creator>Anonymous User</dc:creator>
      <dc:date>2012-04-06T13:19:14Z</dc:date>
    </item>
  </channel>
</rss>

