Deleting first character in field

26719
7
Jump to solution
08-25-2016 08:31 AM
steveubert
New Contributor II

Hello

I'm running arcmap 10.4. I have 5k entries of 'FEC_IDCODE' with 01234 and I need the first 0 deleted. I have tried to google search and edit various scripts to delete the first letter of a text field. I've tried the codes and advice from the listed websites. All I've gotten is error codes with each try. What am I doing wrong.

arcgis 10.0 - Delete first two letters from a string field - Geographic Information Systems Stack Ex... 

qgis - How to remove a certain number of digits from the front or end of an attribute field? - Geogr... 

Field Calculator- Delete last 3 text characters 

How to remove first character from every row of an attribute field 

https://community.esri.com/thread/21358 

1 Solution

Accepted Solutions
JoeBorgione
MVP Emeritus

I just tried this and it worked:

Where all my FEC_ID fields had a leading 0....

That should just about do it....

View solution in original post

7 Replies
JoeBorgione
MVP Emeritus

I just tried this and it worked:

Where all my FEC_ID fields had a leading 0....

That should just about do it....
steveubert
New Contributor II

thank you

0 Kudos
JoeBorgione
MVP Emeritus

Happy to help-  would you mind checking my response as answered?

That should just about do it....
0 Kudos
DanPatterson_Retired
MVP Emeritus

done... and a big python check mark too ... sometimes they forget

0 Kudos
by Anonymous User
Not applicable

Perfect and simple! Adjusted to remove the first and last characters using the character number count

0 Kudos
DominicMarchionna
New Contributor

Thank you! This worked perfect to remove leading two numbers in a field. 

0 Kudos
DavidCooper
New Contributor II

This was a great help to me, thank you so much!

0 Kudos