alphanumeric sequence ranges

tealy1980

New Member
Joined
Apr 12, 2013
Messages
6
Hi all

thanks in advance for answering.

Is there a formula that will give a sequential code to a range of alphas and the sequence resets to 0001 when the alpha changes?

I.E a customer code file would generate the following:

ABCD0001
ABCD0002
ABCD0003
DEFG0001
HIJK0001
HIJK0002
HIJK0003
HIJK0004
LMNO0001
LMNO0002
 

Excel Facts

Format cells as time
Select range and press Ctrl+Shift+2 to format cells as time. (Shift 2 is the @ sign).
Something like


Excel 2013/2016
AB
1ABCDABCD0001
2ABCDABCD0002
3ABCDABCD0003
4ABCDABCD0004
5EFGHEFGH0001
6IJKIJK0001
7IJKIJK0002
8IJKIJK0003
9IJKIJK0004
10XYZXYZ0001
11XYZXYZ0002
Sheet2
Cell Formulas
RangeFormula
B1=A1&TEXT(COUNTIF(A$1:A1,A1),"0000")
 
Upvote 0
Something like

Excel 2013/2016
AB
1ABCDABCD0001
2ABCDABCD0002
3ABCDABCD0003
4ABCDABCD0004
5EFGHEFGH0001
6IJKIJK0001
7IJKIJK0002
8IJKIJK0003
9IJKIJK0004
10XYZXYZ0001
11XYZXYZ0002

<colgroup><col style="width: 25pxpx"><col><col></colgroup><thead>
</thead><tbody>
</tbody>
Sheet2

Worksheet Formulas
CellFormula
B1=A1&TEXT(COUNTIF(A$1:A1,A1),"0000")

<thead>
</thead><tbody>
</tbody>

<tbody>
</tbody>

works an absolute treat thank you very much :)
 
Upvote 0

Forum statistics

Threads
1,215,417
Messages
6,124,791
Members
449,188
Latest member
Hoffk036

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