Copying/replacing first letter in column of attribute table in ArcMap with field calculator and Python Parser? [closed] The 2019 Stack Overflow Developer Survey Results Are InRounding column in attribute table using ArcGIS Field Calculator?Replacing attribute table entries using Python scriptFinding and copying text with Field Calculator in ArcGIS for Desktop?ArcGIS field calculator Python generate random point names from attribute tableReplacing multiple values in attribute table field using ArcGIS field calculator and python parser?Replacing values with non-English characters in attribute table field using ArcGIS field calculator and python parser?Make ArcMap label using the first letter from each word in an attributeReclassifying Vector Field using python parser in field calculatorSplitting second word of attribute using Python Parser of ArcMap Field Calculator?Extracting numbers from string field but omit some unnecessary cells using Python Parser of ArcMap Field Calculator?

Access elements in std::string where positon of string is greater than its size

Falsification in Math vs Science

How long do I have to send payment?

How are circuits which use complex ICs normally simulated?

Can the Protection from Evil and Good spell be used on the caster?

Does a dangling wire really electrocute me if I'm standing in water?

I see my dog run

Why is it "Tumoren" and not "Tumore"?

Time travel alters history but people keep saying nothing's changed

Is "plugging out" electronic devices an American expression?

Why did Howard Stark use all the Vibranium they had on a prototype shield?

Protecting Dualbooting Windows from dangerous code (like rm -rf)

Are there any other methods to apply to solving simultaneous equations?

Does light intensity oscillate really fast since it is a wave?

Limit the amount of RAM Mathematica may access?

Inversion Puzzle

Is bread bad for ducks?

What is the meaning of Triage in Cybersec world?

Monty Hall variation

How do you say "canon" as in "official for a story universe"?

Are USB sockets on wall outlets live all the time, even when the switch is off?

What is the best strategy for white in this position?

Understanding the implication of what "well-defined" means for the operation in quotient group

Spanish for "widget"



Copying/replacing first letter in column of attribute table in ArcMap with field calculator and Python Parser? [closed]



The 2019 Stack Overflow Developer Survey Results Are InRounding column in attribute table using ArcGIS Field Calculator?Replacing attribute table entries using Python scriptFinding and copying text with Field Calculator in ArcGIS for Desktop?ArcGIS field calculator Python generate random point names from attribute tableReplacing multiple values in attribute table field using ArcGIS field calculator and python parser?Replacing values with non-English characters in attribute table field using ArcGIS field calculator and python parser?Make ArcMap label using the first letter from each word in an attributeReclassifying Vector Field using python parser in field calculatorSplitting second word of attribute using Python Parser of ArcMap Field Calculator?Extracting numbers from string field but omit some unnecessary cells using Python Parser of ArcMap Field Calculator?



.everyoneloves__top-leaderboard:empty,.everyoneloves__mid-leaderboard:empty,.everyoneloves__bot-mid-leaderboard:empty margin-bottom:0;








0















How to copy / replace the first letter in a column if that letter is "N" and replace with "C" in the field name "DISTRICT" inside the attribute table in ArcMap using Python inside the field calculator?










share|improve this question















closed as off-topic by Dan C, Kadir Şahbaz, csk, BERA, ahmadhanb Apr 5 at 1:08


This question appears to be off-topic. The users who voted to close gave this specific reason:


  • "When seeking help to debug/write/improve code always provide the desired behavior, a specific problem/error and the shortest code (as formatted text, not pictures) needed to reproduce it in the question body. Providing a clear problem statement and a code attempt helps others to help you." – Dan C, Kadir Şahbaz, csk, BERA, ahmadhanb
If this question can be reworded to fit the rules in the help center, please edit the question.






















    0















    How to copy / replace the first letter in a column if that letter is "N" and replace with "C" in the field name "DISTRICT" inside the attribute table in ArcMap using Python inside the field calculator?










    share|improve this question















    closed as off-topic by Dan C, Kadir Şahbaz, csk, BERA, ahmadhanb Apr 5 at 1:08


    This question appears to be off-topic. The users who voted to close gave this specific reason:


    • "When seeking help to debug/write/improve code always provide the desired behavior, a specific problem/error and the shortest code (as formatted text, not pictures) needed to reproduce it in the question body. Providing a clear problem statement and a code attempt helps others to help you." – Dan C, Kadir Şahbaz, csk, BERA, ahmadhanb
    If this question can be reworded to fit the rules in the help center, please edit the question.


















      0












      0








      0








      How to copy / replace the first letter in a column if that letter is "N" and replace with "C" in the field name "DISTRICT" inside the attribute table in ArcMap using Python inside the field calculator?










      share|improve this question
















      How to copy / replace the first letter in a column if that letter is "N" and replace with "C" in the field name "DISTRICT" inside the attribute table in ArcMap using Python inside the field calculator?







      arcgis-desktop arcmap field-calculator python-parser






      share|improve this question















      share|improve this question













      share|improve this question




      share|improve this question








      edited Apr 4 at 19:46









      PolyGeo

      53.9k1781246




      53.9k1781246










      asked Apr 4 at 15:38









      Anthony StokesAnthony Stokes

      947




      947




      closed as off-topic by Dan C, Kadir Şahbaz, csk, BERA, ahmadhanb Apr 5 at 1:08


      This question appears to be off-topic. The users who voted to close gave this specific reason:


      • "When seeking help to debug/write/improve code always provide the desired behavior, a specific problem/error and the shortest code (as formatted text, not pictures) needed to reproduce it in the question body. Providing a clear problem statement and a code attempt helps others to help you." – Dan C, Kadir Şahbaz, csk, BERA, ahmadhanb
      If this question can be reworded to fit the rules in the help center, please edit the question.







      closed as off-topic by Dan C, Kadir Şahbaz, csk, BERA, ahmadhanb Apr 5 at 1:08


      This question appears to be off-topic. The users who voted to close gave this specific reason:


      • "When seeking help to debug/write/improve code always provide the desired behavior, a specific problem/error and the shortest code (as formatted text, not pictures) needed to reproduce it in the question body. Providing a clear problem statement and a code attempt helps others to help you." – Dan C, Kadir Şahbaz, csk, BERA, ahmadhanb
      If this question can be reworded to fit the rules in the help center, please edit the question.




















          4 Answers
          4






          active

          oldest

          votes


















          4














          The general format for overall string replace in Python in the Field Calculator is



          = !stringvar!.replace("substring to find", "new substring")


          If you want to only change the first initial for all records, you could build this based on a slice of the string.



          = "C" + !stringvar![1:]


          If you only want to change the first initial if it starts with a "N", then you're getting into conditional statements (if/then) and should wrap this in a function for use within the Field Calculator. Build this in the codebook/pre-Logic script code.



          def replaceIfN(fieldtochange):
          if fieldtochange.lower().startswith("n"): # handles both n and N
          return "C" + fieldtochange[1:]
          else: # no change made
          return fieldtochange


          Run this with



           = replaceIfN(!DISTRICT!) 


          See http://desktop.arcgis.com/en/arcmap/10.3/manage-data/tables/calculate-field-examples.htm






          share|improve this answer























          • The conditional statement is the solution I was looking for.

            – Anthony Stokes
            Apr 4 at 16:32


















          7














          You don't even have to write any code!



          Simply edit the table and do a find and replace on the selected field.



          Find and replace



          Example of replacing B with XXX.



          Replaced



          Result of replacement






          share|improve this answer























          • I need to know how to copy / replace the first letter in a column if that letter is "N" and replace with "C" using python inside the field calculator. I don't want to replace every instance of "N". This would require some code.

            – Anthony Stokes
            Apr 4 at 16:38






          • 1





            Well... if you look at the image, what does Text match say... You can use @Jackson_Dunn's approach if you intend to wrap the field calculate in say modelbuilder. If you just want to replace the first N with C then my approach is less painful and quicker.

            – Hornbydd
            Apr 4 at 16:45







          • 1





            I see what you mean. This is the fastest way without code but I like to always know the python equivalent.

            – Anthony Stokes
            Apr 4 at 17:12












          • Are imgur images always going to be on the site, or is there a risk of them not loading at some distant point in the future? If the latter, please elaborate on your answer (e.g. Select "Start of Field" for Text match)

            – smiller
            Apr 4 at 18:01






          • 2





            I didnt know of find and replace, nice!

            – BERA
            Apr 4 at 18:53


















          2














          You can add a number to the python replace code to determine how many instances to change (in your case just one):



          !District!.replace("C", "N", 1)





          share|improve this answer










          New contributor




          Jackson Dunn is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
          Check out our Code of Conduct.




















          • Thanks @Jackson Dunn. I'd be curious as to performance between the string replace number of instances vs. string slicing. I suspect in this case it's minimal but may be worth testing on larger fields or more complex replacements.

            – smiller
            Apr 4 at 19:52


















          0














          Using vbscript instead if you're working in ArcGIS Desktop, The code is:



          REPLACE ([DISTRICT],"C","N",1,1)


          Where :



          • the first 1 equals the line position (first character)

          • and the second 1 is amount of characters to change (only need to change one letter per row, not all C's and N's).





          share|improve this answer










          New contributor




          Jackson Dunn is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
          Check out our Code of Conduct.




















          • This is the VB script solution so thank you for that but I was wondering how to solve it using python in the field calculator.

            – Anthony Stokes
            Apr 4 at 16:12

















          4 Answers
          4






          active

          oldest

          votes








          4 Answers
          4






          active

          oldest

          votes









          active

          oldest

          votes






          active

          oldest

          votes









          4














          The general format for overall string replace in Python in the Field Calculator is



          = !stringvar!.replace("substring to find", "new substring")


          If you want to only change the first initial for all records, you could build this based on a slice of the string.



          = "C" + !stringvar![1:]


          If you only want to change the first initial if it starts with a "N", then you're getting into conditional statements (if/then) and should wrap this in a function for use within the Field Calculator. Build this in the codebook/pre-Logic script code.



          def replaceIfN(fieldtochange):
          if fieldtochange.lower().startswith("n"): # handles both n and N
          return "C" + fieldtochange[1:]
          else: # no change made
          return fieldtochange


          Run this with



           = replaceIfN(!DISTRICT!) 


          See http://desktop.arcgis.com/en/arcmap/10.3/manage-data/tables/calculate-field-examples.htm






          share|improve this answer























          • The conditional statement is the solution I was looking for.

            – Anthony Stokes
            Apr 4 at 16:32















          4














          The general format for overall string replace in Python in the Field Calculator is



          = !stringvar!.replace("substring to find", "new substring")


          If you want to only change the first initial for all records, you could build this based on a slice of the string.



          = "C" + !stringvar![1:]


          If you only want to change the first initial if it starts with a "N", then you're getting into conditional statements (if/then) and should wrap this in a function for use within the Field Calculator. Build this in the codebook/pre-Logic script code.



          def replaceIfN(fieldtochange):
          if fieldtochange.lower().startswith("n"): # handles both n and N
          return "C" + fieldtochange[1:]
          else: # no change made
          return fieldtochange


          Run this with



           = replaceIfN(!DISTRICT!) 


          See http://desktop.arcgis.com/en/arcmap/10.3/manage-data/tables/calculate-field-examples.htm






          share|improve this answer























          • The conditional statement is the solution I was looking for.

            – Anthony Stokes
            Apr 4 at 16:32













          4












          4








          4







          The general format for overall string replace in Python in the Field Calculator is



          = !stringvar!.replace("substring to find", "new substring")


          If you want to only change the first initial for all records, you could build this based on a slice of the string.



          = "C" + !stringvar![1:]


          If you only want to change the first initial if it starts with a "N", then you're getting into conditional statements (if/then) and should wrap this in a function for use within the Field Calculator. Build this in the codebook/pre-Logic script code.



          def replaceIfN(fieldtochange):
          if fieldtochange.lower().startswith("n"): # handles both n and N
          return "C" + fieldtochange[1:]
          else: # no change made
          return fieldtochange


          Run this with



           = replaceIfN(!DISTRICT!) 


          See http://desktop.arcgis.com/en/arcmap/10.3/manage-data/tables/calculate-field-examples.htm






          share|improve this answer













          The general format for overall string replace in Python in the Field Calculator is



          = !stringvar!.replace("substring to find", "new substring")


          If you want to only change the first initial for all records, you could build this based on a slice of the string.



          = "C" + !stringvar![1:]


          If you only want to change the first initial if it starts with a "N", then you're getting into conditional statements (if/then) and should wrap this in a function for use within the Field Calculator. Build this in the codebook/pre-Logic script code.



          def replaceIfN(fieldtochange):
          if fieldtochange.lower().startswith("n"): # handles both n and N
          return "C" + fieldtochange[1:]
          else: # no change made
          return fieldtochange


          Run this with



           = replaceIfN(!DISTRICT!) 


          See http://desktop.arcgis.com/en/arcmap/10.3/manage-data/tables/calculate-field-examples.htm







          share|improve this answer












          share|improve this answer



          share|improve this answer










          answered Apr 4 at 16:23









          smillersmiller

          2,284217




          2,284217












          • The conditional statement is the solution I was looking for.

            – Anthony Stokes
            Apr 4 at 16:32

















          • The conditional statement is the solution I was looking for.

            – Anthony Stokes
            Apr 4 at 16:32
















          The conditional statement is the solution I was looking for.

          – Anthony Stokes
          Apr 4 at 16:32





          The conditional statement is the solution I was looking for.

          – Anthony Stokes
          Apr 4 at 16:32













          7














          You don't even have to write any code!



          Simply edit the table and do a find and replace on the selected field.



          Find and replace



          Example of replacing B with XXX.



          Replaced



          Result of replacement






          share|improve this answer























          • I need to know how to copy / replace the first letter in a column if that letter is "N" and replace with "C" using python inside the field calculator. I don't want to replace every instance of "N". This would require some code.

            – Anthony Stokes
            Apr 4 at 16:38






          • 1





            Well... if you look at the image, what does Text match say... You can use @Jackson_Dunn's approach if you intend to wrap the field calculate in say modelbuilder. If you just want to replace the first N with C then my approach is less painful and quicker.

            – Hornbydd
            Apr 4 at 16:45







          • 1





            I see what you mean. This is the fastest way without code but I like to always know the python equivalent.

            – Anthony Stokes
            Apr 4 at 17:12












          • Are imgur images always going to be on the site, or is there a risk of them not loading at some distant point in the future? If the latter, please elaborate on your answer (e.g. Select "Start of Field" for Text match)

            – smiller
            Apr 4 at 18:01






          • 2





            I didnt know of find and replace, nice!

            – BERA
            Apr 4 at 18:53















          7














          You don't even have to write any code!



          Simply edit the table and do a find and replace on the selected field.



          Find and replace



          Example of replacing B with XXX.



          Replaced



          Result of replacement






          share|improve this answer























          • I need to know how to copy / replace the first letter in a column if that letter is "N" and replace with "C" using python inside the field calculator. I don't want to replace every instance of "N". This would require some code.

            – Anthony Stokes
            Apr 4 at 16:38






          • 1





            Well... if you look at the image, what does Text match say... You can use @Jackson_Dunn's approach if you intend to wrap the field calculate in say modelbuilder. If you just want to replace the first N with C then my approach is less painful and quicker.

            – Hornbydd
            Apr 4 at 16:45







          • 1





            I see what you mean. This is the fastest way without code but I like to always know the python equivalent.

            – Anthony Stokes
            Apr 4 at 17:12












          • Are imgur images always going to be on the site, or is there a risk of them not loading at some distant point in the future? If the latter, please elaborate on your answer (e.g. Select "Start of Field" for Text match)

            – smiller
            Apr 4 at 18:01






          • 2





            I didnt know of find and replace, nice!

            – BERA
            Apr 4 at 18:53













          7












          7








          7







          You don't even have to write any code!



          Simply edit the table and do a find and replace on the selected field.



          Find and replace



          Example of replacing B with XXX.



          Replaced



          Result of replacement






          share|improve this answer













          You don't even have to write any code!



          Simply edit the table and do a find and replace on the selected field.



          Find and replace



          Example of replacing B with XXX.



          Replaced



          Result of replacement







          share|improve this answer












          share|improve this answer



          share|improve this answer










          answered Apr 4 at 16:19









          HornbyddHornbydd

          27.1k32958




          27.1k32958












          • I need to know how to copy / replace the first letter in a column if that letter is "N" and replace with "C" using python inside the field calculator. I don't want to replace every instance of "N". This would require some code.

            – Anthony Stokes
            Apr 4 at 16:38






          • 1





            Well... if you look at the image, what does Text match say... You can use @Jackson_Dunn's approach if you intend to wrap the field calculate in say modelbuilder. If you just want to replace the first N with C then my approach is less painful and quicker.

            – Hornbydd
            Apr 4 at 16:45







          • 1





            I see what you mean. This is the fastest way without code but I like to always know the python equivalent.

            – Anthony Stokes
            Apr 4 at 17:12












          • Are imgur images always going to be on the site, or is there a risk of them not loading at some distant point in the future? If the latter, please elaborate on your answer (e.g. Select "Start of Field" for Text match)

            – smiller
            Apr 4 at 18:01






          • 2





            I didnt know of find and replace, nice!

            – BERA
            Apr 4 at 18:53

















          • I need to know how to copy / replace the first letter in a column if that letter is "N" and replace with "C" using python inside the field calculator. I don't want to replace every instance of "N". This would require some code.

            – Anthony Stokes
            Apr 4 at 16:38






          • 1





            Well... if you look at the image, what does Text match say... You can use @Jackson_Dunn's approach if you intend to wrap the field calculate in say modelbuilder. If you just want to replace the first N with C then my approach is less painful and quicker.

            – Hornbydd
            Apr 4 at 16:45







          • 1





            I see what you mean. This is the fastest way without code but I like to always know the python equivalent.

            – Anthony Stokes
            Apr 4 at 17:12












          • Are imgur images always going to be on the site, or is there a risk of them not loading at some distant point in the future? If the latter, please elaborate on your answer (e.g. Select "Start of Field" for Text match)

            – smiller
            Apr 4 at 18:01






          • 2





            I didnt know of find and replace, nice!

            – BERA
            Apr 4 at 18:53
















          I need to know how to copy / replace the first letter in a column if that letter is "N" and replace with "C" using python inside the field calculator. I don't want to replace every instance of "N". This would require some code.

          – Anthony Stokes
          Apr 4 at 16:38





          I need to know how to copy / replace the first letter in a column if that letter is "N" and replace with "C" using python inside the field calculator. I don't want to replace every instance of "N". This would require some code.

          – Anthony Stokes
          Apr 4 at 16:38




          1




          1





          Well... if you look at the image, what does Text match say... You can use @Jackson_Dunn's approach if you intend to wrap the field calculate in say modelbuilder. If you just want to replace the first N with C then my approach is less painful and quicker.

          – Hornbydd
          Apr 4 at 16:45






          Well... if you look at the image, what does Text match say... You can use @Jackson_Dunn's approach if you intend to wrap the field calculate in say modelbuilder. If you just want to replace the first N with C then my approach is less painful and quicker.

          – Hornbydd
          Apr 4 at 16:45





          1




          1





          I see what you mean. This is the fastest way without code but I like to always know the python equivalent.

          – Anthony Stokes
          Apr 4 at 17:12






          I see what you mean. This is the fastest way without code but I like to always know the python equivalent.

          – Anthony Stokes
          Apr 4 at 17:12














          Are imgur images always going to be on the site, or is there a risk of them not loading at some distant point in the future? If the latter, please elaborate on your answer (e.g. Select "Start of Field" for Text match)

          – smiller
          Apr 4 at 18:01





          Are imgur images always going to be on the site, or is there a risk of them not loading at some distant point in the future? If the latter, please elaborate on your answer (e.g. Select "Start of Field" for Text match)

          – smiller
          Apr 4 at 18:01




          2




          2





          I didnt know of find and replace, nice!

          – BERA
          Apr 4 at 18:53





          I didnt know of find and replace, nice!

          – BERA
          Apr 4 at 18:53











          2














          You can add a number to the python replace code to determine how many instances to change (in your case just one):



          !District!.replace("C", "N", 1)





          share|improve this answer










          New contributor




          Jackson Dunn is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
          Check out our Code of Conduct.




















          • Thanks @Jackson Dunn. I'd be curious as to performance between the string replace number of instances vs. string slicing. I suspect in this case it's minimal but may be worth testing on larger fields or more complex replacements.

            – smiller
            Apr 4 at 19:52















          2














          You can add a number to the python replace code to determine how many instances to change (in your case just one):



          !District!.replace("C", "N", 1)





          share|improve this answer










          New contributor




          Jackson Dunn is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
          Check out our Code of Conduct.




















          • Thanks @Jackson Dunn. I'd be curious as to performance between the string replace number of instances vs. string slicing. I suspect in this case it's minimal but may be worth testing on larger fields or more complex replacements.

            – smiller
            Apr 4 at 19:52













          2












          2








          2







          You can add a number to the python replace code to determine how many instances to change (in your case just one):



          !District!.replace("C", "N", 1)





          share|improve this answer










          New contributor




          Jackson Dunn is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
          Check out our Code of Conduct.










          You can add a number to the python replace code to determine how many instances to change (in your case just one):



          !District!.replace("C", "N", 1)






          share|improve this answer










          New contributor




          Jackson Dunn is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
          Check out our Code of Conduct.









          share|improve this answer



          share|improve this answer








          edited Apr 4 at 19:54









          PolyGeo

          53.9k1781246




          53.9k1781246






          New contributor




          Jackson Dunn is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
          Check out our Code of Conduct.









          answered Apr 4 at 18:31









          Jackson DunnJackson Dunn

          292




          292




          New contributor




          Jackson Dunn is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
          Check out our Code of Conduct.





          New contributor





          Jackson Dunn is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
          Check out our Code of Conduct.






          Jackson Dunn is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
          Check out our Code of Conduct.












          • Thanks @Jackson Dunn. I'd be curious as to performance between the string replace number of instances vs. string slicing. I suspect in this case it's minimal but may be worth testing on larger fields or more complex replacements.

            – smiller
            Apr 4 at 19:52

















          • Thanks @Jackson Dunn. I'd be curious as to performance between the string replace number of instances vs. string slicing. I suspect in this case it's minimal but may be worth testing on larger fields or more complex replacements.

            – smiller
            Apr 4 at 19:52
















          Thanks @Jackson Dunn. I'd be curious as to performance between the string replace number of instances vs. string slicing. I suspect in this case it's minimal but may be worth testing on larger fields or more complex replacements.

          – smiller
          Apr 4 at 19:52





          Thanks @Jackson Dunn. I'd be curious as to performance between the string replace number of instances vs. string slicing. I suspect in this case it's minimal but may be worth testing on larger fields or more complex replacements.

          – smiller
          Apr 4 at 19:52











          0














          Using vbscript instead if you're working in ArcGIS Desktop, The code is:



          REPLACE ([DISTRICT],"C","N",1,1)


          Where :



          • the first 1 equals the line position (first character)

          • and the second 1 is amount of characters to change (only need to change one letter per row, not all C's and N's).





          share|improve this answer










          New contributor




          Jackson Dunn is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
          Check out our Code of Conduct.




















          • This is the VB script solution so thank you for that but I was wondering how to solve it using python in the field calculator.

            – Anthony Stokes
            Apr 4 at 16:12















          0














          Using vbscript instead if you're working in ArcGIS Desktop, The code is:



          REPLACE ([DISTRICT],"C","N",1,1)


          Where :



          • the first 1 equals the line position (first character)

          • and the second 1 is amount of characters to change (only need to change one letter per row, not all C's and N's).





          share|improve this answer










          New contributor




          Jackson Dunn is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
          Check out our Code of Conduct.




















          • This is the VB script solution so thank you for that but I was wondering how to solve it using python in the field calculator.

            – Anthony Stokes
            Apr 4 at 16:12













          0












          0








          0







          Using vbscript instead if you're working in ArcGIS Desktop, The code is:



          REPLACE ([DISTRICT],"C","N",1,1)


          Where :



          • the first 1 equals the line position (first character)

          • and the second 1 is amount of characters to change (only need to change one letter per row, not all C's and N's).





          share|improve this answer










          New contributor




          Jackson Dunn is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
          Check out our Code of Conduct.










          Using vbscript instead if you're working in ArcGIS Desktop, The code is:



          REPLACE ([DISTRICT],"C","N",1,1)


          Where :



          • the first 1 equals the line position (first character)

          • and the second 1 is amount of characters to change (only need to change one letter per row, not all C's and N's).






          share|improve this answer










          New contributor




          Jackson Dunn is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
          Check out our Code of Conduct.









          share|improve this answer



          share|improve this answer








          edited Apr 4 at 19:49









          PolyGeo

          53.9k1781246




          53.9k1781246






          New contributor




          Jackson Dunn is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
          Check out our Code of Conduct.









          answered Apr 4 at 15:54









          Jackson DunnJackson Dunn

          292




          292




          New contributor




          Jackson Dunn is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
          Check out our Code of Conduct.





          New contributor





          Jackson Dunn is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
          Check out our Code of Conduct.






          Jackson Dunn is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
          Check out our Code of Conduct.












          • This is the VB script solution so thank you for that but I was wondering how to solve it using python in the field calculator.

            – Anthony Stokes
            Apr 4 at 16:12

















          • This is the VB script solution so thank you for that but I was wondering how to solve it using python in the field calculator.

            – Anthony Stokes
            Apr 4 at 16:12
















          This is the VB script solution so thank you for that but I was wondering how to solve it using python in the field calculator.

          – Anthony Stokes
          Apr 4 at 16:12





          This is the VB script solution so thank you for that but I was wondering how to solve it using python in the field calculator.

          – Anthony Stokes
          Apr 4 at 16:12



          Popular posts from this blog

          រឿង រ៉ូមេអូ និង ហ្ស៊ុយលីយេ សង្ខេបរឿង តួអង្គ បញ្ជីណែនាំ

          Crop image to path created in TikZ? Announcing the arrival of Valued Associate #679: Cesar Manara Planned maintenance scheduled April 17/18, 2019 at 00:00UTC (8:00pm US/Eastern)Crop an inserted image?TikZ pictures does not appear in posterImage behind and beyond crop marks?Tikz picture as large as possible on A4 PageTransparency vs image compression dilemmaHow to crop background from image automatically?Image does not cropTikzexternal capturing crop marks when externalizing pgfplots?How to include image path that contains a dollar signCrop image with left size given

          Romeo and Juliet ContentsCharactersSynopsisSourcesDate and textThemes and motifsCriticism and interpretationLegacyScene by sceneSee alsoNotes and referencesSourcesExternal linksNavigation menu"Consumer Price Index (estimate) 1800–"10.2307/28710160037-3222287101610.1093/res/II.5.31910.2307/45967845967810.2307/2869925286992510.1525/jams.1982.35.3.03a00050"Dada Masilo: South African dancer who breaks the rules"10.1093/res/os-XV.57.1610.2307/28680942868094"Sweet Sorrow: Mann-Korman's Romeo and Juliet Closes Sept. 5 at MN's Ordway"the original10.2307/45957745957710.1017/CCOL0521570476.009"Ram Leela box office collections hit massive Rs 100 crore, pulverises prediction"Archived"Broadway Revival of Romeo and Juliet, Starring Orlando Bloom and Condola Rashad, Will Close Dec. 8"Archived10.1075/jhp.7.1.04hon"Wherefore art thou, Romeo? To make us laugh at Navy Pier"the original10.1093/gmo/9781561592630.article.O006772"Ram-leela Review Roundup: Critics Hail Film as Best Adaptation of Romeo and Juliet"Archived10.2307/31946310047-77293194631"Romeo and Juliet get Twitter treatment""Juliet's Nurse by Lois Leveen""Romeo and Juliet: Orlando Bloom's Broadway Debut Released in Theaters for Valentine's Day"Archived"Romeo and Juliet Has No Balcony"10.1093/gmo/9781561592630.article.O00778110.2307/2867423286742310.1076/enst.82.2.115.959510.1080/00138380601042675"A plague o' both your houses: error in GCSE exam paper forces apology""Juliet of the Five O'Clock Shadow, and Other Wonders"10.2307/33912430027-4321339124310.2307/28487440038-7134284874410.2307/29123140149-661129123144728341M"Weekender Guide: Shakespeare on The Drive""balcony"UK public library membership"romeo"UK public library membership10.1017/CCOL9780521844291"Post-Zionist Critique on Israel and the Palestinians Part III: Popular Culture"10.2307/25379071533-86140377-919X2537907"Capulets and Montagues: UK exam board admit mixing names up in Romeo and Juliet paper"Istoria Novellamente Ritrovata di Due Nobili Amanti2027/mdp.390150822329610820-750X"GCSE exam error: Board accidentally rewrites Shakespeare"10.2307/29176390149-66112917639"Exam board apologises after error in English GCSE paper which confused characters in Shakespeare's Romeo and Juliet""From Mariotto and Ganozza to Romeo and Guilietta: Metamorphoses of a Renaissance Tale"10.2307/37323537323510.2307/2867455286745510.2307/28678912867891"10 Questions for Taylor Swift"10.2307/28680922868092"Haymarket Theatre""The Zeffirelli Way: Revealing Talk by Florentine Director""Michael Smuin: 1938-2007 / Prolific dance director had showy career"The Life and Art of Edwin BoothRomeo and JulietRomeo and JulietRomeo and JulietRomeo and JulietEasy Read Romeo and JulietRomeo and Julieteeecb12003684p(data)4099369-3n8211610759dbe00d-a9e2-41a3-b2c1-977dd692899302814385X313670221313670221