<?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 Parse out a word from a field in field calculator in Data Management Questions</title>
    <link>https://community.esri.com/t5/data-management-questions/parse-out-a-word-from-a-field-in-field-calculator/m-p/444414#M25372</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I have a field called Address.&amp;nbsp; And example of a record in that field is 900 Main St.&amp;nbsp; I need to get "Main" into a field called Street Name.&amp;nbsp; I already parsed out the street number(900) and the street type (St), but can't figure out how to do the name.&amp;nbsp; I'm working in ArcMap, so I would like to do it right in the table field calculator.&amp;nbsp; I have over 7,000 records I need to do this to.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 11 Sep 2014 19:28:10 GMT</pubDate>
    <dc:creator>StevenHeadley</dc:creator>
    <dc:date>2014-09-11T19:28:10Z</dc:date>
    <item>
      <title>Parse out a word from a field in field calculator</title>
      <link>https://community.esri.com/t5/data-management-questions/parse-out-a-word-from-a-field-in-field-calculator/m-p/444414#M25372</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I have a field called Address.&amp;nbsp; And example of a record in that field is 900 Main St.&amp;nbsp; I need to get "Main" into a field called Street Name.&amp;nbsp; I already parsed out the street number(900) and the street type (St), but can't figure out how to do the name.&amp;nbsp; I'm working in ArcMap, so I would like to do it right in the table field calculator.&amp;nbsp; I have over 7,000 records I need to do this to.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 11 Sep 2014 19:28:10 GMT</pubDate>
      <guid>https://community.esri.com/t5/data-management-questions/parse-out-a-word-from-a-field-in-field-calculator/m-p/444414#M25372</guid>
      <dc:creator>StevenHeadley</dc:creator>
      <dc:date>2014-09-11T19:28:10Z</dc:date>
    </item>
    <item>
      <title>Re: Parse out a word from a field in field calculator</title>
      <link>https://community.esri.com/t5/data-management-questions/parse-out-a-word-from-a-field-in-field-calculator/m-p/444415#M25373</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;If you are using the field calculator, switch the parser to python and use the following:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="background-color: rgba(255, 255, 255, 0);"&gt;!address!.&lt;EM class="jive-hilite" style="font-weight: bold;"&gt;split&lt;/EM&gt;(" ")[1]&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="background-color: rgba(255, 255, 255, 0);"&gt;what this does is split the address field each time there is a space then uses the second item in the array (the array is zero based), it will only work if your address are all in the format of number streetname streettype.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="background-color: rgba(255, 255, 255, 0);"&gt;if you have street names with more spaces in then you will need to do some combination of if statements on the length of the array to handle the results, let me know if you need more advice&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 11 Sep 2014 19:41:31 GMT</pubDate>
      <guid>https://community.esri.com/t5/data-management-questions/parse-out-a-word-from-a-field-in-field-calculator/m-p/444415#M25373</guid>
      <dc:creator>AnthonyGiles</dc:creator>
      <dc:date>2014-09-11T19:41:31Z</dc:date>
    </item>
    <item>
      <title>Re: Parse out a word from a field in field calculator</title>
      <link>https://community.esri.com/t5/data-management-questions/parse-out-a-word-from-a-field-in-field-calculator/m-p/444416#M25374</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Steven,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I had more of a thought about this and to make it more robust it would be better to use the following python snippet:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;def convertName(address):&lt;/P&gt;&lt;P&gt;&amp;nbsp; newname = ""&lt;/P&gt;&lt;P&gt;&amp;nbsp; newaddress = address.split(" ")&lt;/P&gt;&lt;P&gt;&amp;nbsp; for word in range(1,len(newaddress) -1):&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; newname = newname + newaddress[word] + " "&lt;/P&gt;&lt;P&gt;&amp;nbsp; return newname[:-1]&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;to use in the field calculator follow the screenshot:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;IMG __jive_id="9652" class="jive-image image-1" src="https://community.esri.com/legacyfs/online/9652_pastedImage_1.png" style="max-height: 900px; max-width: 1200px;" /&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 11 Sep 2014 20:27:35 GMT</pubDate>
      <guid>https://community.esri.com/t5/data-management-questions/parse-out-a-word-from-a-field-in-field-calculator/m-p/444416#M25374</guid>
      <dc:creator>AnthonyGiles</dc:creator>
      <dc:date>2014-09-11T20:27:35Z</dc:date>
    </item>
    <item>
      <title>Re: Parse out a word from a field in field calculator</title>
      <link>https://community.esri.com/t5/data-management-questions/parse-out-a-word-from-a-field-in-field-calculator/m-p/444417#M25375</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks Anthony!  I know very little about scripting, but this was great.  Just saved me tons of time.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 11 Sep 2014 20:55:44 GMT</pubDate>
      <guid>https://community.esri.com/t5/data-management-questions/parse-out-a-word-from-a-field-in-field-calculator/m-p/444417#M25375</guid>
      <dc:creator>StevenHeadley</dc:creator>
      <dc:date>2014-09-11T20:55:44Z</dc:date>
    </item>
    <item>
      <title>Re: Parse out a word from a field in field calculator</title>
      <link>https://community.esri.com/t5/data-management-questions/parse-out-a-word-from-a-field-in-field-calculator/m-p/444418#M25376</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;No problem Steven, please return the favour by marking my post as the correct answer and helpful&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 11 Sep 2014 21:00:42 GMT</pubDate>
      <guid>https://community.esri.com/t5/data-management-questions/parse-out-a-word-from-a-field-in-field-calculator/m-p/444418#M25376</guid>
      <dc:creator>AnthonyGiles</dc:creator>
      <dc:date>2014-09-11T21:00:42Z</dc:date>
    </item>
  </channel>
</rss>

