Unique Number Formula Required

Status
Not open for further replies.

bristolrob

New Member
Joined
Apr 23, 2018
Messages
34
Good morning all
Here is what I am after,
I need a formula to create a unique number for each item on a list of engine parts
Below is what i currently undertake manually and consists of typing in each level and then concatenating the levels at the end of the process.
This can be in excess of 10k lines per platform, so you can see it takes a substantial amount of effort.
If i can get a formula to create the Unique Number from the INDENT column then i can break out the levels quite easily .
The INDENT column always has to start with a 0 (only once) to indicate the overarching platform, the INDENT numbers can go up to 10 on larger platforms and can ONLY go UP in sequence 1,2,3,4 etc BUT they can drop back to any point below i.e 4 to 1 or 8 to 3 etc.
I currently format INDENT to number, Unique number to general and the Lvls to text, so please let me know if your formula changes any of these.
I really appreciate the help and advice this board offers and I hope someone can help

[TABLE="width: 1079"]
<colgroup><col><col><col span="9"></colgroup><tbody>[TR]
[TD]INDENT[/TD]
[TD]UNIQUE NUMBER[/TD]
[TD]LVL1[/TD]
[TD]LVL2[/TD]
[TD]LVL3[/TD]
[TD]LVL4[/TD]
[TD]LVL5[/TD]
[TD]LVL6[/TD]
[TD]LVL7[/TD]
[TD]LVL8[/TD]
[TD]LVL9[/TD]
[/TR]
[TR]
[TD]0[/TD]
[TD]001[/TD]
[TD]001[/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[/TR]
[TR]
[TD]1[/TD]
[TD]001001[/TD]
[TD]001[/TD]
[TD]001[/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[/TR]
[TR]
[TD]1[/TD]
[TD]001002[/TD]
[TD]001[/TD]
[TD]002[/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[/TR]
[TR]
[TD]2[/TD]
[TD]001002001[/TD]
[TD]001[/TD]
[TD]002[/TD]
[TD]001[/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[/TR]
[TR]
[TD]3[/TD]
[TD]001002001001[/TD]
[TD]001[/TD]
[TD]002[/TD]
[TD]001[/TD]
[TD]001[/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[/TR]
[TR]
[TD]3[/TD]
[TD]001002001002[/TD]
[TD]001[/TD]
[TD]002[/TD]
[TD]001[/TD]
[TD]002[/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[/TR]
[TR]
[TD]3[/TD]
[TD]001002001003[/TD]
[TD]001[/TD]
[TD]002[/TD]
[TD]001[/TD]
[TD]003[/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[/TR]
[TR]
[TD]3[/TD]
[TD]001002001004[/TD]
[TD]001[/TD]
[TD]002[/TD]
[TD]001[/TD]
[TD]004[/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[/TR]
[TR]
[TD]3[/TD]
[TD]001002001005[/TD]
[TD]001[/TD]
[TD]002[/TD]
[TD]001[/TD]
[TD]005[/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[/TR]
[TR]
[TD]2[/TD]
[TD]001002002[/TD]
[TD]001[/TD]
[TD]002[/TD]
[TD]002[/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[/TR]
[TR]
[TD]3[/TD]
[TD]001002002001[/TD]
[TD]001[/TD]
[TD]002[/TD]
[TD]002[/TD]
[TD]001[/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[/TR]
[TR]
[TD]4[/TD]
[TD]001002002001001[/TD]
[TD]001[/TD]
[TD]002[/TD]
[TD]002[/TD]
[TD]001[/TD]
[TD]001[/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[/TR]
[TR]
[TD]4[/TD]
[TD]001002002001002[/TD]
[TD]001[/TD]
[TD]002[/TD]
[TD]002[/TD]
[TD]001[/TD]
[TD]002[/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[/TR]
[TR]
[TD]4[/TD]
[TD]001002002001003[/TD]
[TD]001[/TD]
[TD]002[/TD]
[TD]002[/TD]
[TD]001[/TD]
[TD]003[/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[/TR]
[TR]
[TD]4[/TD]
[TD]001002002001004[/TD]
[TD]001[/TD]
[TD]002[/TD]
[TD]002[/TD]
[TD]001[/TD]
[TD]004[/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[/TR]
[TR]
[TD]2[/TD]
[TD]001002003[/TD]
[TD]001[/TD]
[TD]002[/TD]
[TD]003[/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[/TR]
[TR]
[TD]2[/TD]
[TD]001002004[/TD]
[TD]001[/TD]
[TD]002[/TD]
[TD]004[/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[/TR]
[TR]
[TD]3[/TD]
[TD]001002004001[/TD]
[TD]001[/TD]
[TD]002[/TD]
[TD]004[/TD]
[TD]001[/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[/TR]
[TR]
[TD]4[/TD]
[TD]001002004001001[/TD]
[TD]001[/TD]
[TD]002[/TD]
[TD]004[/TD]
[TD]001[/TD]
[TD]001[/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[/TR]
[TR]
[TD]4[/TD]
[TD]001002004001002[/TD]
[TD]001[/TD]
[TD]002[/TD]
[TD]004[/TD]
[TD]001[/TD]
[TD]002[/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[/TR]
[TR]
[TD]4[/TD]
[TD]001002004001003[/TD]
[TD]001[/TD]
[TD]002[/TD]
[TD]004[/TD]
[TD]001[/TD]
[TD]003[/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[/TR]
[TR]
[TD]4[/TD]
[TD]001002004001004[/TD]
[TD]001[/TD]
[TD]002[/TD]
[TD]004[/TD]
[TD]001[/TD]
[TD]004[/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[/TR]
[TR]
[TD]4[/TD]
[TD]001002004001005[/TD]
[TD]001[/TD]
[TD]002[/TD]
[TD]004[/TD]
[TD]001[/TD]
[TD]005[/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[/TR]
[TR]
[TD]4[/TD]
[TD]001002004001006[/TD]
[TD]001[/TD]
[TD]002[/TD]
[TD]004[/TD]
[TD]001[/TD]
[TD]006[/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[/TR]
[TR]
[TD]4[/TD]
[TD]001002004001007[/TD]
[TD]001[/TD]
[TD]002[/TD]
[TD]004[/TD]
[TD]001[/TD]
[TD]007[/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[/TR]
[TR]
[TD]4[/TD]
[TD]001002004001008[/TD]
[TD]001[/TD]
[TD]002[/TD]
[TD]004[/TD]
[TD]001[/TD]
[TD]008[/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[/TR]
[TR]
[TD]4[/TD]
[TD]001002004001009[/TD]
[TD]001[/TD]
[TD]002[/TD]
[TD]004[/TD]
[TD]001[/TD]
[TD]009[/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[/TR]
[TR]
[TD]1[/TD]
[TD]001003[/TD]
[TD]001[/TD]
[TD]003[/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[/TR]
[TR]
[TD]1[/TD]
[TD]001004[/TD]
[TD]001[/TD]
[TD]004[/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[/TR]
[TR]
[TD]1[/TD]
[TD]001005[/TD]
[TD]001[/TD]
[TD]005[/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[/TR]
[TR]
[TD]1[/TD]
[TD]001006[/TD]
[TD]001[/TD]
[TD]006[/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[/TR]
[TR]
[TD]1[/TD]
[TD]001007[/TD]
[TD]001[/TD]
[TD]007[/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[/TR]
[TR]
[TD]1[/TD]
[TD]001008[/TD]
[TD]001[/TD]
[TD]008[/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[/TR]
[TR]
[TD]1[/TD]
[TD]001009[/TD]
[TD]001[/TD]
[TD]009[/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[/TR]
[TR]
[TD]1[/TD]
[TD]001010[/TD]
[TD]001[/TD]
[TD]010[/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[/TR]
[TR]
[TD]1[/TD]
[TD]001011[/TD]
[TD]001[/TD]
[TD]011[/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[/TR]
[TR]
[TD]1[/TD]
[TD]001012[/TD]
[TD]001[/TD]
[TD]012[/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[/TR]
[TR]
[TD]1[/TD]
[TD]001013[/TD]
[TD]001[/TD]
[TD]013[/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[/TR]
[TR]
[TD]1[/TD]
[TD]001014[/TD]
[TD]001[/TD]
[TD]014[/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[/TR]
[TR]
[TD]2[/TD]
[TD]001014001[/TD]
[TD]001[/TD]
[TD]014[/TD]
[TD]001[/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[/TR]
[TR]
[TD]3[/TD]
[TD]001014001001[/TD]
[TD]001[/TD]
[TD]014[/TD]
[TD]001[/TD]
[TD]001[/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[/TR]
[TR]
[TD]1[/TD]
[TD]001015[/TD]
[TD]001[/TD]
[TD]015[/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[/TR]
[TR]
[TD]2[/TD]
[TD]001015001[/TD]
[TD]001[/TD]
[TD]015[/TD]
[TD]001[/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[/TR]
[TR]
[TD]3[/TD]
[TD]001015001001[/TD]
[TD]001[/TD]
[TD]015[/TD]
[TD]001[/TD]
[TD]001[/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[/TR]
[TR]
[TD]3[/TD]
[TD]001015001002[/TD]
[TD]001[/TD]
[TD]015[/TD]
[TD]001[/TD]
[TD]002[/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[/TR]
[TR]
[TD]3[/TD]
[TD]001015001003[/TD]
[TD]001[/TD]
[TD]015[/TD]
[TD]001[/TD]
[TD]003[/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[/TR]
[TR]
[TD]1[/TD]
[TD]001016[/TD]
[TD]001[/TD]
[TD]016[/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[/TR]
[TR]
[TD]1[/TD]
[TD]001017[/TD]
[TD]001[/TD]
[TD]017[/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[/TR]
[TR]
[TD]1[/TD]
[TD]001018[/TD]
[TD]001[/TD]
[TD]018
[/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[/TR]
</tbody>[/TABLE]
 

Excel Facts

What is the fastest way to copy a formula?
If A2:A50000 contain data. Enter a formula in B2. Select B2. Double-click the Fill Handle and Excel will shoot the formula down to B50000.
Hi,

If I understand correctly.

Only Column B needs to be formatted as Text, I have Columns A, C onward formatted General.


Book1
ABCDEFG
1INDENTUNIQUE NUMBERLVL1LVL2LVL3LVL4LVL5
20001001
31001001001001
41001002001002
52001002001001002001
63001002001001001002001001
73001002001002001002001002
83001002001003001002001003
93001002001004001002001004
103001002001005001002001005
112001002002001002002
123001002002001001002002001
134001002002001001001002002001001
144001002002001002001002002001002
154001002002001003001002002001003
164001002002001004001002002001004
172001002003001002003
182001002004001002004
193001002004001001002004001
204001002004001001001002004001001
214001002004001002001002004001002
224001002004001003001002004001003
234001002004001004001002004001004
244001002004001005001002004001005
254001002004001006001002004001006
264001002004001007001002004001007
274001002004001008001002004001008
284001002004001009001002004001009
291001003001003
301001004001004
311001005001005
321001006001006
331001007001007
341001008001008
351001009001009
361001010001010
371001011001011
381001012001012
391001013001013
401001014001014
412001014001001014001
423001014001001001014001001
431001015001015
442001015001001015001
453001015001001001015001001
463001015001002001015001002
473001015001003001015001003
481001016001016
491001017001017
501001018001018
Sheet108
Cell Formulas
RangeFormula
A2=LEN(B2)/3-1
C2=MID($B2,COLUMNS($C2:C2)*3-2,3)


A2 formula copied Down.
C2 formula copied Down And Across as far as needed.
 
Last edited:
Upvote 0
Hi there and thanks for the reply... It is the B2 column formula that I am after using the indent column to create the unique number
 
Upvote 0
Hi there and thanks for the reply... It is the B2 column formula that I am after using the indent column to create the unique number

What exactly do you need? From what you show, column B is just a concatenation of the other columns, LVL1&LVL2...etc
 
Upvote 0
Hi there and yes currently I concatenate from the lvls which I input manually from the indent column.... If I could get the unique number using the indent column then I can easily extract the levels... So extract B from A then C from B... I hope that makes it a bit clearer what it is I am after and thanks again for helping out
 
Upvote 0
Duplicate to post #10 here

Please do not post the same question multiple times. Questions of a duplicate nature will be locked or deleted, per #12 of the Forum Rules and points 6 & 7 of the Forum Use Guidelines.

Any bumps, clarifications, or follow-ups should be posted to the linked thread.

Also refer to my suggested formula in post 13 of that thread.
 
Upvote 0
Status
Not open for further replies.

Forum statistics

Threads
1,224,823
Messages
6,181,175
Members
453,021
Latest member
Justyna P

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