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

Copy formula down without changing references
If you have =SUM(F2:F49) in F50; type Alt+' in F51 to copy =SUM(F2:F49) to F51, leaving the formula in edit mode. Change SUM to COUNT.
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
ABCDABCD0001
ABCDABCD0002
ABCDABCD0003
ABCDABCD0004
EFGHEFGH0001
IJKIJK0001
IJKIJK0002
IJKIJK0003
IJKIJK0004
XYZXYZ0001
XYZXYZ0002

<colgroup><col style="width: 25pxpx"><col><col></colgroup><thead>
</thead><tbody>
[TD="align: center"]1[/TD]

[TD="align: center"]2[/TD]

[TD="align: center"]3[/TD]

[TD="align: center"]4[/TD]

[TD="align: center"]5[/TD]

[TD="align: center"]6[/TD]

[TD="align: center"]7[/TD]

[TD="align: center"]8[/TD]

[TD="align: center"]9[/TD]

[TD="align: center"]10[/TD]

[TD="align: center"]11[/TD]

</tbody>
Sheet2

[TABLE="width: 85%"]
<tbody>[TR]
[TD]Worksheet Formulas[TABLE="width: 100%"]
<thead>[TR="bgcolor: [URL=https://www.mrexcel.com/forum/usertag.php?do=list&action=hash&hash=DAE7F5]#DAE7F5[/URL] "]
[TH="width: 10px"]Cell[/TH]
[TH="align: left"]Formula[/TH]
[/TR]
</thead><tbody>[TR]
[TH="width: 10px, bgcolor: [URL=https://www.mrexcel.com/forum/usertag.php?do=list&action=hash&hash=DAE7F5]#DAE7F5[/URL] "]B1[/TH]
[TD="align: left"]=A1&TEXT(COUNTIF(A$1:A1,A1),"0000")[/TD]
[/TR]
</tbody>[/TABLE]
[/TD]
[/TR]
</tbody>[/TABLE]

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

Forum statistics

Threads
1,223,888
Messages
6,175,207
Members
452,618
Latest member
Tam84

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