Alphanumeric Sequence Autofill Options?

JenniferNorman

New Member
Joined
May 27, 2014
Messages
1
Hi, I'm attempting to autofill an alphanumeric sequence in which the first half of the sequence repeats, only causing the second half to advance in sequence once a certain number is reached.

The code is a two digit number followed by a two digit alphabetic code. The number portion of the code increases to 99, at which time the numbers reset to 01 and the first letter in the alphabetic portion advances by one letter (the second letter only advances once the first letter has cycled from A-Z). In other words, the first code would be 01AA, the second code would be 02AA, etc., until 99AA was reached, at which point the code would be come 01BA, then 02BA, etc.

Is there a way to phrase a command inside Excel that would allow me to quickly generate this sequence instead of manually inputting each code by hand?

I appreciate your time and help! Thanks :)
 

Excel Facts

Excel Joke
Why can't spreadsheets drive cars? They crash too often!
Try:
In cell A2, enter 01AA
In cell A3, enter this formula and then copy it down as far as row 66,925 (maximum combinations are 66,924):

Code:
=IF(A2>="99ZZ","---Out of Combinations---",(IF(LEFT(A2,2)="99","01",TEXT(LEFT(A2,2)+1,"00"))&IF(AND(LEFT(A2,2)="99",MID(A2,3,1)="Z"),"A",IF(LEFT(A2,2)="99",CHAR(CODE(MID(A2,3,1))+1),MID(A2,3,1)))&IF(LEFT(A2,3)="99Z",CHAR(CODE(RIGHT(A2,1))+1),RIGHT(A2,1))))
 
Upvote 0

Forum statistics

Threads
1,216,098
Messages
6,128,812
Members
449,468
Latest member
AGreen17

We've detected that you are using an adblocker.

We have a great community of people providing Excel help here, but the hosting costs are enormous. You can help keep this site running by allowing ads on MrExcel.com.
Allow Ads at MrExcel

Which adblocker are you using?

Disable AdBlock

Follow these easy steps to disable AdBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the icon in the browser’s toolbar.
2)Click on the "Pause on this site" option.
Go back

Disable AdBlock Plus

Follow these easy steps to disable AdBlock Plus

1)Click on the icon in the browser’s toolbar.
2)Click on the toggle to disable it for "mrexcel.com".
Go back

Disable uBlock Origin

Follow these easy steps to disable uBlock Origin

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back

Disable uBlock

Follow these easy steps to disable uBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back
Back
Top