Convert Index numbering to level number

ketul shah

New Member
Joined
Aug 18, 2023
Messages
6
Office Version
  1. 2021
Platform
  1. Windows
Can anyone tell me how yo convert Index numbering to level format in excel ?
I have one column of bill of materials which consists Index numbering like 1,1.1,1.2....1.1.1,1.1.2

And i need to segregate index numbering level wise like level 1 , 2... Ect.
 

Excel Facts

Which lookup functions find a value equal or greater than the lookup value?
MATCH uses -1 to find larger value (lookup table must be sorted ZA). XLOOKUP uses 1 to find values greater and does not need to be sorted.
Can anyone tell me how yo convert Index numbering to level format in excel ?
I have one column of bill of materials which consists Index numbering like 1,1.1,1.2....1.1.1,1.1.2

And i need to segregate index numbering level wise like level 1 , 2... Ect.
Please provide some sample data that you want to split or segregate.
Give before and after split examples.
 
Upvote 0
Please provide some sample data that you want to split or segregate.
Give before and after split examples.
Thanks for reply
I have uploaded image for your reference.
Here I've received data as shown in column B and i want to formulate data for assigning level and position as shown in column C and D respectively.I have thousands of entries like this.
 

Attachments

  • Screenshot_20230819-210311.png
    Screenshot_20230819-210311.png
    130.3 KB · Views: 16
Upvote 0
Try:

Book1
ABCD
1
2IndexlevelPost#
3111
41.121
51.1.131
61.1.1.141
71.1.1.242
8212
92.121
Sheet2
Cell Formulas
RangeFormula
C3:C9C3=LEN(SUBSTITUTE(B3,".",""))
D3:D9D3=RIGHT(B3,1)
 
Upvote 0
Try:

Book1
ABCD
1
2IndexlevelPost#
3111
41.121
51.1.131
61.1.1.141
71.1.1.242
8212
92.121
Sheet2
Cell Formulas
RangeFormula
C3:C9C3=LEN(SUBSTITUTE(B3,".",""))
D3:D9D3=RIGHT(B3,1)
Thanks for reply Ahoy....but this formula for column D will not work when i have Index like 100.1 or 100.1.10
I want conditional formula to count position upto 4 decimals index numbering system
Example :
Index 100.1.1.100
Level : 4
Postion: 10
 
Upvote 0
Thanks for reply Ahoy....but this formula for column D will not work when i have Index like 100.1 or 100.1.10
I want conditional formula to count position upto 4 decimals index numbering system
Example :
Index 100.1.1.100
Level : 4
Postion: 10
Correction
Postion: 100
 
Upvote 0
Try this
Column with INDEXES must be formatted as Text as well as column for POST #
Book3
ABC
1INDEXLEVELPOST #
2111
31.121
41.1.131
51.1.1.141
61.1.1.242
7212
82.121
Sheet7
Cell Formulas
RangeFormula
B2:B8B2=LEN(A2)-LEN(SUBSTITUTE(A2,".",""))+1
C2:C8C2=IF(ISERROR(FIND(".",A2)),A2,MID(A2,FIND("~",SUBSTITUTE(A2,".","~",LEN(A2)-LEN(SUBSTITUTE(A2,".",""))))+1,LEN(A2)))


Book3
ABC
9100.121
10100.1.10310
11100.1.1.1004100
Sheet7
Cell Formulas
RangeFormula
B9:B11B9=LEN(A9)-LEN(SUBSTITUTE(A9,".",""))+1
C9:C11C9=IF(ISERROR(FIND(".",A9)),A9,MID(A9,FIND("~",SUBSTITUTE(A9,".","~",LEN(A9)-LEN(SUBSTITUTE(A9,".",""))))+1,LEN(A9)))
 
Last edited:
Upvote 0
Same suggestion as post #7 for Level, but a simpler one for Post

23 08 20.xlsm
ABC
1INDEXLEVELPOST #
2111
31.121
41.1.131
51.1.1.141
61.1.1.242
7212
82.121
9100.121
10100.1.10310
11100.1.1.1004100
Index to level & post
Cell Formulas
RangeFormula
B2:B11B2=LEN(A2)-LEN(SUBSTITUTE(A2,".",""))+1
C2:C11C2=--RIGHT(SUBSTITUTE(A2,".",REPT(" ",20)),20)
 
Upvote 0
Same suggestion as post #7 for Level, but a simpler one for Post

23 08 20.xlsm
ABC
1INDEXLEVELPOST #
2111
31.121
41.1.131
51.1.1.141
61.1.1.242
7212
82.121
9100.121
10100.1.10310
11100.1.1.1004100
Index to level & post
Cell Formulas
RangeFormula
B2:B11B2=LEN(A2)-LEN(SUBSTITUTE(A2,".",""))+1
C2:C11C2=--RIGHT(SUBSTITUTE(A2,".",REPT(" ",20)),20)
Wow! Awesome trick with the double "--"! I never knew this about Excel. Thanks!
 
Upvote 0

Forum statistics

Threads
1,223,956
Messages
6,175,619
Members
452,661
Latest member
Nonhle

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