<?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: How to rearrange one field into two fields, in Python Questions</title>
    <link>https://community.esri.com/t5/python-questions/how-to-rearrange-one-field-into-two-fields/m-p/41891#M3343</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;What is the length of "Facility_English"?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Mon, 22 Jun 2015 09:32:40 GMT</pubDate>
    <dc:creator>JayantaPoddar</dc:creator>
    <dc:date>2015-06-22T09:32:40Z</dc:date>
    <item>
      <title>How to rearrange one field into two fields,</title>
      <link>https://community.esri.com/t5/python-questions/how-to-rearrange-one-field-into-two-fields/m-p/41879#M3331</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&lt;SPAN style="font-size: 12.0pt; font-family: 'Times New Roman',serif;"&gt;I wonder if there is a way to rearrange one field into two fields instead of doing it manually, as shown in the attached,&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 12.0pt; font-family: 'Times New Roman',serif;"&gt;&lt;IMG alt="rearrange.jpg" class="image-1 jive-image" height="464" src="https://community.esri.com/legacyfs/online/112031_rearrange.jpg" style="width: 892px; height: 464.386px;" width="892" /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 12.0pt; font-family: 'Times New Roman',serif;"&gt;Any ideas,&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 12.0pt; font-family: 'Times New Roman',serif;"&gt;Best,&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 12.0pt; font-family: 'Times New Roman',serif;"&gt;Majdoleen&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 21 Jun 2015 09:15:43 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/how-to-rearrange-one-field-into-two-fields/m-p/41879#M3331</guid>
      <dc:creator>MajdoleenO_A__Awadallah</dc:creator>
      <dc:date>2015-06-21T09:15:43Z</dc:date>
    </item>
    <item>
      <title>Re: How to rearrange one field into two fields,</title>
      <link>https://community.esri.com/t5/python-questions/how-to-rearrange-one-field-into-two-fields/m-p/41880#M3332</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Open your table and add two fields and add 2 text (string) fields if you already haven't done so.&lt;/P&gt;&lt;P&gt;You python's 'split' function to cut the field into 2 based upon a common factor... that you have a ':' in the same place&lt;/P&gt;&lt;P&gt;We will denote your field as variable f.&lt;/P&gt;&lt;P&gt;Make the first field you want to add data to and we will get the 'Townhall' part of the string into it&lt;/P&gt;&lt;P&gt;Select the python parser, double click on your field name containing the original data and then append ' .split(":")[0] to the fields name so your expression should look like&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;"your original field".split(":")[0]&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;hit enter and the results should be there.&amp;nbsp; repeat on the 2nd field using&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;"your original field".split(":")[1]&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;and you should have the facility types.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;In pure python with a field named 'f' this would look like this&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;gt;&amp;gt;&amp;gt; f = "Townhall:Municipal Building"&lt;/P&gt;&lt;P&gt;&amp;gt;&amp;gt;&amp;gt; &lt;/P&gt;&lt;P&gt;&amp;gt;&amp;gt;&amp;gt; a = f.split(":")[0]&lt;/P&gt;&lt;P&gt;&amp;gt;&amp;gt;&amp;gt; b = f.split(":")[1]&lt;/P&gt;&lt;P&gt;&amp;gt;&amp;gt;&amp;gt; a&lt;/P&gt;&lt;P&gt;'Townhall'&lt;/P&gt;&lt;P&gt;&amp;gt;&amp;gt;&amp;gt; b&lt;/P&gt;&lt;P&gt;'Municipal Building'&lt;/P&gt;&lt;P&gt;&amp;gt;&amp;gt;&amp;gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 21 Jun 2015 09:38:24 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/how-to-rearrange-one-field-into-two-fields/m-p/41880#M3332</guid>
      <dc:creator>DanPatterson_Retired</dc:creator>
      <dc:date>2015-06-21T09:38:24Z</dc:date>
    </item>
    <item>
      <title>Re: How to rearrange one field into two fields,</title>
      <link>https://community.esri.com/t5/python-questions/how-to-rearrange-one-field-into-two-fields/m-p/41881#M3333</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thank you Dan, but do I have to do this for all the values, we are talking about more than 6000 values!!, if it is possible, could you please send me more details using screen shots ,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Best,&lt;/P&gt;&lt;P&gt;Majdoleen&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 21 Jun 2015 09:57:39 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/how-to-rearrange-one-field-into-two-fields/m-p/41881#M3333</guid>
      <dc:creator>MajdoleenO_A__Awadallah</dc:creator>
      <dc:date>2015-06-21T09:57:39Z</dc:date>
    </item>
    <item>
      <title>Re: How to rearrange one field into two fields,</title>
      <link>https://community.esri.com/t5/python-questions/how-to-rearrange-one-field-into-two-fields/m-p/41882#M3334</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;It does it for the whole field at once in the &lt;A href="http://resources.arcgis.com/en/help/main/10.2/index.html#/Fundamentals_of_field_calculations/005s00000025000000/"&gt;Field Calculator&lt;/A&gt;&amp;nbsp;&amp;nbsp; have a read through the section...it is much like a spreadsheet&lt;/P&gt;&lt;UL&gt;&lt;LI&gt;make the field active that you want the results to go into&lt;/LI&gt;&lt;LI&gt;specify your formula in the field calculator&lt;/LI&gt;&lt;LI&gt;hit enter and the results are copies down&lt;/LI&gt;&lt;LI&gt;repeat as needed&lt;/LI&gt;&lt;/UL&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 21 Jun 2015 10:19:17 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/how-to-rearrange-one-field-into-two-fields/m-p/41882#M3334</guid>
      <dc:creator>DanPatterson_Retired</dc:creator>
      <dc:date>2015-06-21T10:19:17Z</dc:date>
    </item>
    <item>
      <title>Re: How to rearrange one field into two fields,</title>
      <link>https://community.esri.com/t5/python-questions/how-to-rearrange-one-field-into-two-fields/m-p/41883#M3335</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thank you Dan, It is working but the challenge here that I have to type the field name 6000 times, each field has different value. &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 21 Jun 2015 10:36:52 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/how-to-rearrange-one-field-into-two-fields/m-p/41883#M3335</guid>
      <dc:creator>MajdoleenO_A__Awadallah</dc:creator>
      <dc:date>2015-06-21T10:36:52Z</dc:date>
    </item>
    <item>
      <title>Re: How to rearrange one field into two fields,</title>
      <link>https://community.esri.com/t5/python-questions/how-to-rearrange-one-field-into-two-fields/m-p/41884#M3336</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;you only have to do it once if the separator is a " : " ,&amp;nbsp; in the field calculator, read the link I sent&lt;/P&gt;&lt;P&gt;If you have thousands of different field names ... not different rows... then you need to script it... but you have not provided any information as to were these fields reside how one can generalize the field names etc etc.&amp;nbsp; In any event, what I sent is how you do it simply to calculate valeus for a field given the structure in the field that you provided.&amp;nbsp; You will have to provide more information or you will be left doing it 6000 times.&lt;/P&gt;&lt;P&gt;The principle would also appy to fields but you would need to examine the arcpy methods, ListFeatureClasses, ListFields, AddField and arcpy.da cursors section of the help files in the arcpy section&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 21 Jun 2015 12:16:46 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/how-to-rearrange-one-field-into-two-fields/m-p/41884#M3336</guid>
      <dc:creator>DanPatterson_Retired</dc:creator>
      <dc:date>2015-06-21T12:16:46Z</dc:date>
    </item>
    <item>
      <title>Re: How to rearrange one field into two fields,</title>
      <link>https://community.esri.com/t5/python-questions/how-to-rearrange-one-field-into-two-fields/m-p/41885#M3337</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Majdoleen,&lt;/P&gt;&lt;P&gt;As I can see from the snapshot, you have 6107 records (not fields). So the expressions given by &lt;A href="https://community.esri.com/migrated-users/3116"&gt;Dan Patterson&lt;/A&gt;​ should work for all the records at one go.&lt;/P&gt;&lt;P&gt;Taking your data into consideration, let me put down the expressions once again.&lt;/P&gt;&lt;P&gt;Make sure none of the records are selected.&lt;/P&gt;&lt;P&gt;My Assumption: You are spliting the text with ":" (colon) separator.&lt;/P&gt;&lt;P&gt;Use Field Calculator for &lt;SPAN style="text-decoration: underline;"&gt;&lt;EM&gt;FacilityDescription_English&lt;/EM&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;Parser: &lt;STRONG&gt;Python&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;Expression=&lt;/P&gt;&lt;P&gt;&lt;EM&gt;&lt;STRONG&gt;!Facility_English!.split(":")[0]&lt;/STRONG&gt;&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Use Field Calculator for &lt;SPAN style="text-decoration: underline;"&gt;&lt;EM&gt;FacilityName_English&lt;/EM&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;Parser: &lt;STRONG&gt;Python&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;Expression=&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&lt;EM&gt;&lt;STRONG&gt;!Facility_English!.split(":")[1]&lt;/STRONG&gt;&lt;/EM&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 21 Jun 2015 18:57:21 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/how-to-rearrange-one-field-into-two-fields/m-p/41885#M3337</guid>
      <dc:creator>JayantaPoddar</dc:creator>
      <dc:date>2015-06-21T18:57:21Z</dc:date>
    </item>
    <item>
      <title>Re: How to rearrange one field into two fields,</title>
      <link>https://community.esri.com/t5/python-questions/how-to-rearrange-one-field-into-two-fields/m-p/41886#M3338</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thank you &lt;A _jive_internal="true" data-containerid="-1" data-containertype="-1" data-objectid="3116" data-objecttype="3" href="https://community.esri.com/people/Dan_Patterson"&gt;Dan Patterson &lt;/A&gt;and &lt;A href="https://community.esri.com/migrated-users/62883"&gt;Jayanta Poddar&lt;/A&gt; ,really appreciate , it is working perfect with first expression but with the second one it fails, I couldn't figure out why it fails, and gave the error bellow.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Best,&lt;/P&gt;&lt;P&gt;Majdoleen&lt;IMG alt="Clip_5.jpg" class="image-1 jive-image" height="572" src="https://community.esri.com/legacyfs/online/112128_Clip_5.jpg" style="width: 900px; height: 571.951px;" width="900" /&gt;&lt;/P&gt;&lt;P&gt;&lt;IMG alt="Clip_4.jpg" class="image-2 jive-image" height="476" src="https://community.esri.com/legacyfs/online/112129_Clip_4.jpg" style="width: 912px; height: 475.631px;" width="912" /&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 22 Jun 2015 07:44:54 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/how-to-rearrange-one-field-into-two-fields/m-p/41886#M3338</guid>
      <dc:creator>MajdoleenO_A__Awadallah</dc:creator>
      <dc:date>2015-06-22T07:44:54Z</dc:date>
    </item>
    <item>
      <title>Re: How to rearrange one field into two fields,</title>
      <link>https://community.esri.com/t5/python-questions/how-to-rearrange-one-field-into-two-fields/m-p/41887#M3339</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;What is the length of the text field "FacilityName_English"? Add a text field with a length long enough to contain the longest split string.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 22 Jun 2015 08:31:09 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/how-to-rearrange-one-field-into-two-fields/m-p/41887#M3339</guid>
      <dc:creator>JayantaPoddar</dc:creator>
      <dc:date>2015-06-22T08:31:09Z</dc:date>
    </item>
    <item>
      <title>Re: How to rearrange one field into two fields,</title>
      <link>https://community.esri.com/t5/python-questions/how-to-rearrange-one-field-into-two-fields/m-p/41888#M3340</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Jayanta,&lt;/P&gt;&lt;P&gt;both have the same length= 50&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 22 Jun 2015 08:50:23 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/how-to-rearrange-one-field-into-two-fields/m-p/41888#M3340</guid>
      <dc:creator>MajdoleenO_A__Awadallah</dc:creator>
      <dc:date>2015-06-22T08:50:23Z</dc:date>
    </item>
    <item>
      <title>Re: How to rearrange one field into two fields,</title>
      <link>https://community.esri.com/t5/python-questions/how-to-rearrange-one-field-into-two-fields/m-p/41889#M3341</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Just add a field with a width wider than you need, the extra space is inconsequential in terms of file size.&amp;nbsp; So create the 2 text fields as I suggest and use the field calculation method I suggested earlier.&amp;nbsp; I would use Python particularly if you have no background in programming since it is the language that will be supported and VB is/will become a legacy language.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 22 Jun 2015 09:11:26 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/how-to-rearrange-one-field-into-two-fields/m-p/41889#M3341</guid>
      <dc:creator>DanPatterson_Retired</dc:creator>
      <dc:date>2015-06-22T09:11:26Z</dc:date>
    </item>
    <item>
      <title>Re: How to rearrange one field into two fields,</title>
      <link>https://community.esri.com/t5/python-questions/how-to-rearrange-one-field-into-two-fields/m-p/41890#M3342</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thank you Dan, I tried using 200 field length and didn't work, sorry but I don't have any experience in writing the codes, I tried yours but didn't work too&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 22 Jun 2015 09:29:05 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/how-to-rearrange-one-field-into-two-fields/m-p/41890#M3342</guid>
      <dc:creator>MajdoleenO_A__Awadallah</dc:creator>
      <dc:date>2015-06-22T09:29:05Z</dc:date>
    </item>
    <item>
      <title>Re: How to rearrange one field into two fields,</title>
      <link>https://community.esri.com/t5/python-questions/how-to-rearrange-one-field-into-two-fields/m-p/41891#M3343</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;What is the length of "Facility_English"?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 22 Jun 2015 09:32:40 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/how-to-rearrange-one-field-into-two-fields/m-p/41891#M3343</guid>
      <dc:creator>JayantaPoddar</dc:creator>
      <dc:date>2015-06-22T09:32:40Z</dc:date>
    </item>
    <item>
      <title>Re: How to rearrange one field into two fields,</title>
      <link>https://community.esri.com/t5/python-questions/how-to-rearrange-one-field-into-two-fields/m-p/41892#M3344</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;50 &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 22 Jun 2015 09:36:05 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/how-to-rearrange-one-field-into-two-fields/m-p/41892#M3344</guid>
      <dc:creator>MajdoleenO_A__Awadallah</dc:creator>
      <dc:date>2015-06-22T09:36:05Z</dc:date>
    </item>
    <item>
      <title>Re: How to rearrange one field into two fields,</title>
      <link>https://community.esri.com/t5/python-questions/how-to-rearrange-one-field-into-two-fields/m-p/41893#M3345</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;What version is the python? You can try installing the python that comes with your arcgis desktop.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 22 Jun 2015 09:38:15 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/how-to-rearrange-one-field-into-two-fields/m-p/41893#M3345</guid>
      <dc:creator>JayantaPoddar</dc:creator>
      <dc:date>2015-06-22T09:38:15Z</dc:date>
    </item>
    <item>
      <title>Re: How to rearrange one field into two fields,</title>
      <link>https://community.esri.com/t5/python-questions/how-to-rearrange-one-field-into-two-fields/m-p/41894#M3346</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;one thing, it is working good with facilityDescription_English ( &lt;EM&gt;&lt;STRONG&gt;!Facility_English!.split(":")[0]) &lt;/STRONG&gt;&lt;/EM&gt;but it fails to wirk with FacilityName_English&lt;EM&gt; (&lt;EM&gt;&lt;STRONG&gt;!Facility_English!.split(":")[1]) &lt;/STRONG&gt;&lt;/EM&gt;&lt;/EM&gt;so I am not sure that the problem with the version, &lt;/P&gt;&lt;P&gt;I am using ArcGis 10.2.2&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 22 Jun 2015 09:57:11 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/how-to-rearrange-one-field-into-two-fields/m-p/41894#M3346</guid>
      <dc:creator>MajdoleenO_A__Awadallah</dc:creator>
      <dc:date>2015-06-22T09:57:11Z</dc:date>
    </item>
    <item>
      <title>Re: How to rearrange one field into two fields,</title>
      <link>https://community.esri.com/t5/python-questions/how-to-rearrange-one-field-into-two-fields/m-p/41895#M3347</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Does all the values in field "Facility_English" contain a ":" (colon)?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 22 Jun 2015 10:12:15 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/how-to-rearrange-one-field-into-two-fields/m-p/41895#M3347</guid>
      <dc:creator>JayantaPoddar</dc:creator>
      <dc:date>2015-06-22T10:12:15Z</dc:date>
    </item>
    <item>
      <title>Re: How to rearrange one field into two fields,</title>
      <link>https://community.esri.com/t5/python-questions/how-to-rearrange-one-field-into-two-fields/m-p/41896#M3348</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Majdoleen,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I could reproduce the error by replacing ":" in few values with other characters.&lt;/P&gt;&lt;P&gt;&lt;EM&gt;&lt;STRONG&gt;!Facility_English!.split(":")[0]&lt;/STRONG&gt; works OK but &lt;STRONG&gt;!Facility_English!.split(":")[1]&lt;/STRONG&gt;&lt;EM&gt; is giving error.&lt;/EM&gt;&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;From the error snapshot, one can see a value (u"Parking") which doesn't have a colon sign, thus no value after a colon. Similar values will induce errors. Please use the split command with appropriate separator values for the selective records.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt; &lt;/EM&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 22 Jun 2015 10:56:27 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/how-to-rearrange-one-field-into-two-fields/m-p/41896#M3348</guid>
      <dc:creator>JayantaPoddar</dc:creator>
      <dc:date>2015-06-22T10:56:27Z</dc:date>
    </item>
    <item>
      <title>Re: How to rearrange one field into two fields,</title>
      <link>https://community.esri.com/t5/python-questions/how-to-rearrange-one-field-into-two-fields/m-p/41897#M3349</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;It is the separator as I indicated in my earlier response&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&lt;EM&gt;you only have to do it once if the separator is a " : " ,&amp;nbsp; in the field calculator, read the link I sent&lt;/EM&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;If the separator is different then replace the ":" with a suitable replacement.&amp;nbsp; If there is no separator, then you will have to come up with your own rule. &lt;/P&gt;&lt;P&gt;From the help on string.split&lt;/P&gt;&lt;P&gt;&lt;EM&gt;Help on function split in module string:&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;split(s, sep=None, maxsplit=-1)&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; split(s [,sep [,maxsplit]]) -&amp;gt; list of strings&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;Return a list of the words in the string s, using sep as the&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; delimiter string.&amp;nbsp; If maxsplit is given, splits at no more than&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; maxsplit places (resulting in at most maxsplit+1 words).&amp;nbsp; If sep&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; is not specified or is None, any whitespace string is a separator.&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If you have multiple delimiters then you will have to use the regular expression module ... re ..&lt;/P&gt;&lt;P&gt;as in&lt;/P&gt;&lt;P&gt;&lt;CODE&gt;&lt;SPAN class="kwd"&gt;import&lt;/SPAN&gt;&lt;SPAN class="pln"&gt; re&lt;BR /&gt;re&lt;/SPAN&gt;&lt;SPAN class="pun"&gt;.&lt;/SPAN&gt;&lt;SPAN class="pln"&gt;split&lt;/SPAN&gt;&lt;SPAN class="pun"&gt;(&lt;/SPAN&gt;&lt;SPAN class="str"&gt;'; |, '&lt;/SPAN&gt;&lt;SPAN class="pun"&gt;,&lt;/SPAN&gt;&lt;SPAN class="pln"&gt;str&lt;/SPAN&gt;&lt;SPAN class="pun"&gt;)&lt;/SPAN&gt;&lt;/CODE&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN class="pun"&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN class="pun"&gt;See this thread on Stack Overflow&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN class="pun"&gt;&lt;A href="http://stackoverflow.com/questions/4998629/python-split-string-with-multiple-delimiters" title="http://stackoverflow.com/questions/4998629/python-split-string-with-multiple-delimiters"&gt;Python: Split string with multiple delimiters - Stack Overflow&lt;/A&gt; &lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 22 Jun 2015 11:30:50 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/how-to-rearrange-one-field-into-two-fields/m-p/41897#M3349</guid>
      <dc:creator>DanPatterson_Retired</dc:creator>
      <dc:date>2015-06-22T11:30:50Z</dc:date>
    </item>
    <item>
      <title>Re: How to rearrange one field into two fields,</title>
      <link>https://community.esri.com/t5/python-questions/how-to-rearrange-one-field-into-two-fields/m-p/41898#M3350</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Yes, the problem is that there are some values that don't follow the same pattern. That is, as in the value "Parking", there is at least one values that doesn't contain a colon, and then a facility name. You could exclude these values by selecting by attributes, and then double clicking the original field name and inserting LIKE '%:%' after the field name in the expression window. This will select only the features that include the colon. Then go ahead and run the calculate field script. After that you can switch the selection, and calculate the remaining features, or edit them manually.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 22 Jun 2015 16:58:18 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/how-to-rearrange-one-field-into-two-fields/m-p/41898#M3350</guid>
      <dc:creator>SepheFox</dc:creator>
      <dc:date>2015-06-22T16:58:18Z</dc:date>
    </item>
  </channel>
</rss>

