Take the 2-minute tour ×
Geographic Information Systems Stack Exchange is a question and answer site for cartographers, geographers and GIS professionals. It's 100% free, no registration required.

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..

THX

share|improve this question
add comment

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.

1 Answer

Regarding altternatively:

Code block:

rec=0
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 
 else: 
  rec = rec + pInterval 
 return rec

Field_Name:

autoIncrement()
share|improve this answer
add comment

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