I need some help with a field calculator scenario. I have a field called Township and many of the attributes in the field are formatted differently. Here is an example of the differences in the data.
| Current Format | Desired Format |
|---|
| 007 | 7N |
| 0070N | 7N |
| 0170N | 17N |
| 017N | 17N |
| 17n | 17N |
| 170N | 17N |
| 017N | 17N |
| 17 | 17N |
10N | 10N |
| 10 N | 10N |
| 0100N | 10N |
There are over 50,000 records and it appears most of these are in the 0070N and 0170N format, but I need to be able to convert these to all be in the same format. I've tried a few different scripts, but did not find success. My Python and VB scripting is limited so its been a bit difficult to figure out a possible modification to some of the scripts I did find. The Townships in the list range from 4N-23N and 25N-27N. As you can see, I can't just get rid of the zeros due to the fact that I have 10's and 20's. Anyone with some scripting abilities have some ideas on how I can get these converted using the field calculator without too much trouble?
Thanks in advance!
Zach