Auto numbering with letters - re-posting question from above

  • Thread starter Thread starter rayybay
  • Start date Start date
R

rayybay

Could that formula be modifed so after 26 characters, it started with A1,
B1... instead of AA, AB...?
 
rayybay said:
Could that formula be modifed so after 26 characters, it started with A1,
B1... instead of AA, AB...?

Try this in any starting cell, say in B2:
=IF(ROWS($1:1)>26,CHAR(MOD(ROWS($1:1)-1,26)+65)&INT((ROWS($1:1)-1)/26),CHAR(MOD(ROWS($1:1)-1,26)+65))
Copy down as far as required.

The expression will return the series:
A,B, ... Z,A1,B1, ... Z1,A2,B2, ... Z2,A3,B3 ... and so on, all the way

---
 
PERFECT!!! Thank you!

Max said:
Try this in any starting cell, say in B2:
=IF(ROWS($1:1)>26,CHAR(MOD(ROWS($1:1)-1,26)+65)&INT((ROWS($1:1)-1)/26),CHAR(MOD(ROWS($1:1)-1,26)+65))
Copy down as far as required.

The expression will return the series:
A,B, ... Z,A1,B1, ... Z1,A2,B2, ... Z2,A3,B3 ... and so on, all the way

---
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Back
Top