# Numbering new products in sequence

#### bigsi1984

##### New Member
Hello,

I am producing a list of patterns references and each pattern needs to have a unique reference.

Example pattern 1 is 100-1525/1525/8-001 and is made from a sheet of material 1525 x 1525 x 8 thick
100 = Denotes type of material
1525 = dimension 1
1525 = dimension 2
8 = thickness
001 = the specific pattern I can create from the above sized material.

The type of material and dimensions have individual columns and so I can concatenante them into the first part of my code; 100-1525/1525/8

My problem is that I have a lot of codes to produce and the sheet size 1525 x 1525 x 8 could produce 50 - 60 different patterns, but currently sits at producing around 12. I would like a way to automate the last part of the code so that excel can look at the list and know that the next pattern reference is, for example 100-1525/1525/8-002 without me having to double check that, 'oh yes, 002 is the next one in the sequence'.

This is compounded by the fact the the material size can change. For example it may become 2440 x 1220 x 15. So I would want this to begin at 001 and work the same way.

I hope this makes sense.

Last edited:

#### Peter_SSs

##### MrExcel MVP, Moderator
Is this, copied down, what you mean?

If not, can you give us a bit more sample data, the expected results and any further clarification?

Excel Workbook
ABCDE
1
2100152515258100-1525/1525/8-001
32002000120010200-2000/1200/10-001
4100152515258100-1525/1525/8-002
5100152515258100-1525/1525/8-003
62002000120010200-2000/1200/10-002
71001525152510100-1525/1525/10-001
8100152515258100-1525/1525/8-004
Pattern numbers

#### bigsi1984

##### New Member
Is this, copied down, what you mean?

If not, can you give us a bit more sample data, the expected results and any further clarification?

Pattern numbers

 A B C D E 1 2 100 1525 1525 8 100-1525/1525/8-001 3 200 2000 1200 10 200-2000/1200/10-001 4 100 1525 1525 8 100-1525/1525/8-002 5 100 1525 1525 8 100-1525/1525/8-003 6 200 2000 1200 10 200-2000/1200/10-002 7 100 1525 1525 10 100-1525/1525/10-001 8 100 1525 1525 8 100-1525/1525/8-004

<colgroup><col style="font-weight:bold; width:30px; "><col style="width:56px;"><col style="width:56px;"><col style="width:56px;"><col style="width:56px;"><col style="width:168px;"></colgroup><tbody>
</tbody>

 Cell Formula E2 =A2&"-"&B2&"/"&C2&"/"&D2&TEXT(COUNTIFS(A\$2:A2,A2,B\$2:B2,B2,C\$2:C2,C2,D\$2:D2,D2),"-000")

<tbody>
</tbody>

<tbody>
</tbody>

Excel tables to the web >> Excel Jeanie HTML 4
This is absolutely perfect. Thank you!

#### Peter_SSs

##### MrExcel MVP, Moderator
This is absolutely perfect. Thank you!
Cheers. Lucky guess to some extent! Thanks for the follow-up.