This question already has an answer here:

as a second part of a problem i am trying to solve. I need help to figure out how to fill in serial letters.. Starting at A.. going to Z and starting over at A again.. I have a tabel with numbers 1-600 and i want 1 to be A, 2 = B, .... 26= Z, 27 = A 28 = B and repeating like that....

I am useing field calculator in ArcGIS

Alternativley... how to create the numbers 1-26 over and over.. so.. 1, 2, 3, ...25, 26, 1, 2, 3.. and so on..


marked as duplicate by whuber May 10 '13 at 13:18

This question has been asked before and already has an answer. If those answers do not fully address your question, please ask a new question.


Regarding altternatively:

Code block:

def autoIncrement():
 global rec
 pStart = 1 #adjust start value, if req'd 
 pInterval = 1 #adjust interval value, if req'd
 if (rec == 0): 
  rec = pStart 
 elif (rec==26):
  rec = 1 
  rec = rec + pInterval 
 return rec



Not the answer you're looking for? Browse other questions tagged or ask your own question.