I have a column where part numbers differentiate themselves via the number of leading blanks they have.
12345
23567
34567
256755
67894
675967

I have found the function commands to determine the number of leading blanks.

12345 0
23567 1
34567 1
25675 2
67894 1
675967 2

I would like to utilize the leading blanks column to try and create a Work Breakdown structure as follows

PN Lead Blanks WBS
12345 0 1.0
23567 1 1.1
34567 1 1.2
25675 2 1.2.1
67894 1 1.3
675967 2 1.3.1

Looking for ideas to try?