Serial Number increase with letters and numbers

poorexceller

New Member
Joined
Aug 7, 2012
Messages
3
Hi Ladies and Gents,

I have been reading through some of the older questions and couldn't put together my answer without asking for help.

Basically what I am looking to do is take a serial number and have it increase by one. The problem however is that the number ends with a letter not a number.

I.e

aba00001a is the first. I need it to go to:
aba00002a
aba00003a
....
aba02001a

Then once I complete that it would restart at
aba00001b etc etc.

I am assuming if I can figure out the first part with the A ending I would just reapply it with a B at the end.

Can anyone help me get a formula in place to complete this task? Or perhaps guide me on where to find it, I may be over thinking this...

Thanks everyone
 

Excel Facts

Formula for Yesterday
Name Manager, New Name. Yesterday =TODAY()-1. OK. Then, use =YESTERDAY in any cell. Tomorrow could be =TODAY()+1.
Welcome to the board.

Assuming your formatting is constant (i.e 3 letters, 5 numbers, 1 letter), try this:

=LEFT(A1,3)&TEXT(MID(A1,4,5)+1,"00000")&RIGHT(A1)
 
Upvote 0
Welcome to the board.

Assuming your formatting is constant (i.e 3 letters, 5 numbers, 1 letter), try this:

=LEFT(A1,3)&TEXT(MID(A1,4,5)+1,"00000")&RIGHT(A1)
Hey njimack,

I actually messed up there are 6 numbers so it would be...aba000001a, would that change the formula?
 
Last edited:
Upvote 0
I'm not sure why you're reading data from A1 here, but if you put this anywhere and drag it down, it will cycle through all the number with a at the end, then when it reaches the end of the numbers - 999999 - it will start the numbers over and the letter will advance to b:

="aba"&TEXT(MOD(ROW(A1)-1,999999)+1,"000000")&CHAR(INT((ROW(A1)-1)/999999+97))
 
Upvote 0

Forum statistics

Threads
1,215,049
Messages
6,122,864
Members
449,097
Latest member
dbomb1414

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