numbered list ?

Dimitris254

Board Regular
Joined
Apr 25, 2016
Messages
139
is it possible to have numbered list in Excel, for each row, like in Word?

I don't want a numbered list in a single cell, but this:

[row1] 1.1 text
[row2] 1.1.1 text
[row3] 1.1.2 text

which will be updated automatically depending on the indent level ?
 
Last edited:

Excel Facts

Excel Can Read to You
Customize Quick Access Toolbar. From All Commands, add Speak Cells or Speak Cells on Enter to QAT. Select cells. Press Speak Cells.
I can suggest a VBA solution.

The following code looks at column B and writes the ID, based on the indents in column B, into column A.

Code:
Sub IndentToID()
    Dim r    As Range
    Dim str  As String
    Dim pil  As Long
    Dim arr  As Variant
    
    str = "0"
    For Each r In Range("B2", Cells(Rows.Count, "B").End(xlUp))
        Select Case r.IndentLevel
            Case Is > pil
                str = str & Replace(String(r.IndentLevel - pil, "X"), "X", ".1")
            Case Is = pil
                str = Left(str, InStrRev(str, ".")) & Right(str, Len(str) - InStrRev(str, ".")) + 1
            Case Is < pil
                arr = Split(str, ".")
                ReDim Preserve arr(0 To r.IndentLevel)
                arr(UBound(arr)) = arr(UBound(arr)) + 1
                str = Join(arr, ".")
        End Select
        pil = r.IndentLevel
        With r.Offset(, -1)
            .Value = str
            .NumberFormat = "@"
        End With
    Next
End Sub
The code above needs to be pasted in to a new standard code Module and be executed every time you need the IDs updated.
You could link it to a Quick Access Toolbar button for that workbook.
 
Upvote 0
thanks for the time put into this, but it doesn't seem to work :(

for example, i put:
A1: "test 1"
A2: "test 1.1"
A3: "test 1.1.1"
with respective indents

but after running the macro A1 and A2 are simply replaced by 1 and 2
 
Upvote 0
I assumed that the data would have the ID (e.g. 1.2.3) would be written into column A and the indented strings would be in column B.

If that is not acceptable then you will need to say exactly what you are expecting.


Excel 2013
AB
1IDAA
21asdf
31.1sdfg
41.2dfgj
51.3fk
61.4fk
71.5fk
81.6fk
91.7hgf
101.8sdfg
111.9dfgj
121.10fghk
131.11glh,jl
141.12gfhu
151.12.1 gfh
161.12.2 gfh
171.13gfh
181.14gfh
192gfh
Sheet1

Thanks,
 
Last edited:
Upvote 0
I see the misunderstanding.

The way the sheet looks is simpler. What mentioned in the OP is (i tried to copied your columns, but it turned out very messed up :laugh:).

Can i send a sample sheet?
 
Last edited:
Upvote 0
You can't send me a spreadsheet but you could post one on line somewhere e.g. DropBox, SkyDrive etc.

However, a description should be enough.

I can't work out how many columns your data is in. 1 or 2?
Are you using the Indent Formatting option or are you prefixing some blanks or something else?
 
Upvote 0
There's a workbook with a pair of UDFs at https://app.box.com/s/hr2nl2mzirq2qxtwlkcw5dmjd6bcqqxv that will do this:

[Table="width:, class:grid"][tr][td="bgcolor:#C0C0C0"][/td][td="bgcolor:#C0C0C0"]
B​
[/td][td="bgcolor:#C0C0C0"]
C​
[/td][td="bgcolor:#C0C0C0"]
D​
[/td][td="bgcolor:#C0C0C0"]
E​
[/td][/tr][tr][td="bgcolor:#C0C0C0"]
2​
[/td][td="bgcolor:#F3F3F3"]
Level
[/td][td="bgcolor:#F3F3F3"]
Ind
[/td][td="bgcolor:#F3F3F3"]
WBS
[/td][td="bgcolor:#F3F3F3"]
Description
[/td][/tr]
[tr][td="bgcolor:#C0C0C0"]
3​
[/td][td]
0​
[/td][td="bgcolor:#E5E5E5"]
0
[/td][td="bgcolor:#E5E5E5"]0[/td][td]USMC Combat Convoy Simulator[/td][/tr]
[tr][td="bgcolor:#C0C0C0"]
4​
[/td][td]
1​
[/td][td="bgcolor:#E5E5E5"]
1
[/td][td="bgcolor:#E5E5E5"]**1[/td][td]**Non-Recurring Engineering[/td][/tr]
[tr][td="bgcolor:#C0C0C0"]
5​
[/td][td]
2​
[/td][td="bgcolor:#E5E5E5"]
2
[/td][td="bgcolor:#E5E5E5"]****1.1[/td][td]****Hardware Design[/td][/tr]
[tr][td="bgcolor:#C0C0C0"]
6​
[/td][td]
3​
[/td][td="bgcolor:#E5E5E5"]
3
[/td][td="bgcolor:#E5E5E5"]******1.1.1[/td][td]******AAR Station[/td][/tr]
[tr][td="bgcolor:#C0C0C0"]
7​
[/td][td]
4​
[/td][td="bgcolor:#E5E5E5"]
4
[/td][td="bgcolor:#E5E5E5"]********1.1.1.1[/td][td]********Design[/td][/tr]
[tr][td="bgcolor:#C0C0C0"]
8​
[/td][td]
4​
[/td][td="bgcolor:#E5E5E5"]
4
[/td][td="bgcolor:#E5E5E5"]********1.1.1.2[/td][td]********Docs[/td][/tr]
[tr][td="bgcolor:#C0C0C0"]
9​
[/td][td]
3​
[/td][td="bgcolor:#E5E5E5"]
3
[/td][td="bgcolor:#E5E5E5"]******1.1.2[/td][td]******IOS[/td][/tr]
[tr][td="bgcolor:#C0C0C0"]
10​
[/td][td]
4​
[/td][td="bgcolor:#E5E5E5"]
4
[/td][td="bgcolor:#E5E5E5"]********1.1.2.1[/td][td]********Design[/td][/tr]
[tr][td="bgcolor:#C0C0C0"]
11​
[/td][td]
4​
[/td][td="bgcolor:#E5E5E5"]
4
[/td][td="bgcolor:#E5E5E5"]********1.1.2.2[/td][td]********Docs[/td][/tr]
[tr][td="bgcolor:#C0C0C0"]
12​
[/td][td]
3​
[/td][td="bgcolor:#E5E5E5"]
3
[/td][td="bgcolor:#E5E5E5"]******1.1.3[/td][td]******Display[/td][/tr]
[tr][td="bgcolor:#C0C0C0"]
13​
[/td][td]
4​
[/td][td="bgcolor:#E5E5E5"]
4
[/td][td="bgcolor:#E5E5E5"]********1.1.3.1[/td][td]********Projection Geometry & Projector Mount[/td][/tr]
[tr][td="bgcolor:#C0C0C0"]
14​
[/td][td]
4​
[/td][td="bgcolor:#E5E5E5"]
4
[/td][td="bgcolor:#E5E5E5"]********1.1.3.2[/td][td]********Weapon spot tracking[/td][/tr]
[tr][td="bgcolor:#C0C0C0"]
15​
[/td][td]
2​
[/td][td="bgcolor:#E5E5E5"]
2
[/td][td="bgcolor:#E5E5E5"]****1.2[/td][td]****Software Design[/td][/tr]
[tr][td="bgcolor:#C0C0C0"]
16​
[/td][td]
3​
[/td][td="bgcolor:#E5E5E5"]
3
[/td][td="bgcolor:#E5E5E5"]******1.2.1[/td][td]******Simulation Host[/td][/tr]
[tr][td="bgcolor:#C0C0C0"]
17​
[/td][td]
4​
[/td][td="bgcolor:#E5E5E5"]
4
[/td][td="bgcolor:#E5E5E5"]********1.2.1.1[/td][td]********Simulation framework[/td][/tr]
[tr][td="bgcolor:#C0C0C0"]
18​
[/td][td]
4​
[/td][td="bgcolor:#E5E5E5"]
4
[/td][td="bgcolor:#E5E5E5"]********1.2.1.2[/td][td]********IG Integration[/td][/tr]
[tr][td="bgcolor:#C0C0C0"]
19​
[/td][td]
4​
[/td][td="bgcolor:#E5E5E5"]
4
[/td][td="bgcolor:#E5E5E5"]********1.2.1.3[/td][td]********One SAF Integration[/td][/tr]
[tr][td="bgcolor:#C0C0C0"]
20​
[/td][td]
4​
[/td][td="bgcolor:#E5E5E5"]
4
[/td][td="bgcolor:#E5E5E5"]********1.2.1.4[/td][td]********SE Core Integration[/td][/tr]
[tr][td="bgcolor:#C0C0C0"]
21​
[/td][td]
4​
[/td][td="bgcolor:#E5E5E5"]
4
[/td][td="bgcolor:#E5E5E5"]********1.2.1.5[/td][td]********DIS/HLA (VR Link) Integration[/td][/tr]
[tr][td="bgcolor:#C0C0C0"]
22​
[/td][td]
4​
[/td][td="bgcolor:#E5E5E5"]
4
[/td][td="bgcolor:#E5E5E5"]********1.2.1.6[/td][td]********CREW-2 Simulation[/td][/tr]
[tr][td="bgcolor:#C0C0C0"]
23​
[/td][td]
4​
[/td][td="bgcolor:#E5E5E5"]
4
[/td][td="bgcolor:#E5E5E5"]********1.2.1.7[/td][td]********FBCB2 / JBC-P Integration[/td][/tr]
[tr][td="bgcolor:#C0C0C0"]
24​
[/td][td]
4​
[/td][td="bgcolor:#E5E5E5"]
4
[/td][td="bgcolor:#E5E5E5"]********1.2.1.8[/td][td]********SINCGARS Simulation[/td][/tr]
[tr][td="bgcolor:#C0C0C0"]
25​
[/td][td]
3​
[/td][td="bgcolor:#E5E5E5"]
3
[/td][td="bgcolor:#E5E5E5"]******1.2.2[/td][td]******IOS[/td][/tr]
[tr][td="bgcolor:#C0C0C0"]
26​
[/td][td]
4​
[/td][td="bgcolor:#E5E5E5"]
4
[/td][td="bgcolor:#E5E5E5"]********1.2.2.1[/td][td]********Scenario authoring & control[/td][/tr]
[tr][td="bgcolor:#C0C0C0"]
27​
[/td][td]
4​
[/td][td="bgcolor:#E5E5E5"]
4
[/td][td="bgcolor:#E5E5E5"]********1.2.2.2[/td][td]********Student monitoring & records[/td][/tr]
[tr][td="bgcolor:#C0C0C0"]
28​
[/td][td]
4​
[/td][td="bgcolor:#E5E5E5"]
4
[/td][td="bgcolor:#E5E5E5"]********1.2.2.3[/td][td]********Learning management[/td][/tr]
[tr][td="bgcolor:#C0C0C0"]
29​
[/td][td]
4​
[/td][td="bgcolor:#E5E5E5"]
4
[/td][td="bgcolor:#E5E5E5"]********1.2.2.4[/td][td]********Instructor Manual[/td][/tr]
[tr][td="bgcolor:#C0C0C0"]
30​
[/td][td]
3​
[/td][td="bgcolor:#E5E5E5"]
3
[/td][td="bgcolor:#E5E5E5"]******1.2.3[/td][td]******AAR Station[/td][/tr]
[tr][td="bgcolor:#C0C0C0"]
31​
[/td][td]
3​
[/td][td="bgcolor:#E5E5E5"]
3
[/td][td="bgcolor:#E5E5E5"]******1.2.4[/td][td]******MTVR & HMMWV Crew Stations[/td][/tr]
[tr][td="bgcolor:#C0C0C0"]
32​
[/td][td]
4​
[/td][td="bgcolor:#E5E5E5"]
4
[/td][td="bgcolor:#E5E5E5"]********1.2.4.1[/td][td]********Dev Software (CM Labs)[/td][/tr]
[tr][td="bgcolor:#C0C0C0"]
33​
[/td][td]
4​
[/td][td="bgcolor:#E5E5E5"]
4
[/td][td="bgcolor:#E5E5E5"]********1.2.4.2[/td][td]********Model Development (CM Labs)[/td][/tr]
[tr][td="bgcolor:#C0C0C0"]
34​
[/td][td]
4​
[/td][td="bgcolor:#E5E5E5"]
4
[/td][td="bgcolor:#E5E5E5"]********1.2.4.3[/td][td]********User Manuals[/td][/tr]
[tr][td="bgcolor:#C0C0C0"]
35​
[/td][td]
3​
[/td][td="bgcolor:#E5E5E5"]
3
[/td][td="bgcolor:#E5E5E5"]******1.2.5[/td][td]******Weapon Simulations[/td][/tr]
[tr][td="bgcolor:#C0C0C0"]
36​
[/td][td]
4​
[/td][td="bgcolor:#E5E5E5"]
4
[/td][td="bgcolor:#E5E5E5"]********1.2.5.1[/td][td]********.50 HMG[/td][/tr]
[tr][td="bgcolor:#C0C0C0"]
37​
[/td][td]
4​
[/td][td="bgcolor:#E5E5E5"]
4
[/td][td="bgcolor:#E5E5E5"]********1.2.5.2[/td][td]********M240G[/td][/tr]
[tr][td="bgcolor:#C0C0C0"]
38​
[/td][td]
4​
[/td][td="bgcolor:#E5E5E5"]
4
[/td][td="bgcolor:#E5E5E5"]********1.2.5.3[/td][td]********M4[/td][/tr]
[tr][td="bgcolor:#C0C0C0"]
39​
[/td][td]
4​
[/td][td="bgcolor:#E5E5E5"]
4
[/td][td="bgcolor:#E5E5E5"]********1.2.5.4[/td][td]********M16A4[/td][/tr]
[tr][td="bgcolor:#C0C0C0"]
40​
[/td][td]
2​
[/td][td="bgcolor:#E5E5E5"]
2
[/td][td="bgcolor:#E5E5E5"]****1.3[/td][td]****Databases[/td][/tr]
[tr][td="bgcolor:#C0C0C0"]
41​
[/td][td]
3​
[/td][td="bgcolor:#E5E5E5"]
3
[/td][td="bgcolor:#E5E5E5"]******1.3.1[/td][td]******Terrain[/td][/tr]
[tr][td="bgcolor:#C0C0C0"]
42​
[/td][td]
4​
[/td][td="bgcolor:#E5E5E5"]
4
[/td][td="bgcolor:#E5E5E5"]********1.3.1.1[/td][td]********Imagery[/td][/tr]
[tr][td="bgcolor:#C0C0C0"]
43​
[/td][td]
4​
[/td][td="bgcolor:#E5E5E5"]
4
[/td][td="bgcolor:#E5E5E5"]********1.3.1.2[/td][td]********DEM[/td][/tr]
[tr][td="bgcolor:#C0C0C0"]
44​
[/td][td]
3​
[/td][td="bgcolor:#E5E5E5"]
3
[/td][td="bgcolor:#E5E5E5"]******1.3.2[/td][td]******Models[/td][/tr]
[tr][td="bgcolor:#C0C0C0"]
45​
[/td][td]
2​
[/td][td="bgcolor:#E5E5E5"]
2
[/td][td="bgcolor:#E5E5E5"]****1.4[/td][td]****Data[/td][/tr]
[tr][td="bgcolor:#C0C0C0"]
46​
[/td][td]
3​
[/td][td="bgcolor:#E5E5E5"]
3
[/td][td="bgcolor:#E5E5E5"]******1.4.1[/td][td]******ATP/TTPRR, including Cold-Start Procedure[/td][/tr]
[tr][td="bgcolor:#C0C0C0"]
47​
[/td][td]
4​
[/td][td="bgcolor:#E5E5E5"]
4
[/td][td="bgcolor:#E5E5E5"]********1.4.1.1[/td][td]********PE[/td][/tr]
[tr][td="bgcolor:#C0C0C0"]
48​
[/td][td]
4​
[/td][td="bgcolor:#E5E5E5"]
4
[/td][td="bgcolor:#E5E5E5"]********1.4.1.2[/td][td]********Tech[/td][/tr]
[tr][td="bgcolor:#C0C0C0"]
49​
[/td][td]
3​
[/td][td="bgcolor:#E5E5E5"]
3
[/td][td="bgcolor:#E5E5E5"]******1.4.2[/td][td]******Information Assurance[/td][/tr]
[tr][td="bgcolor:#C0C0C0"]
50​
[/td][td]
3​
[/td][td="bgcolor:#E5E5E5"]
3
[/td][td="bgcolor:#E5E5E5"]******1.4.3[/td][td]******ILS[/td][/tr]
[tr][td="bgcolor:#C0C0C0"]
51​
[/td][td]
4​
[/td][td="bgcolor:#E5E5E5"]
4
[/td][td="bgcolor:#E5E5E5"]********1.4.3.1[/td][td]********LSA Plan[/td][/tr]
[tr][td="bgcolor:#C0C0C0"]
52​
[/td][td]
4​
[/td][td="bgcolor:#E5E5E5"]
4
[/td][td="bgcolor:#E5E5E5"]********1.4.3.2[/td][td]********Provisioning Plan[/td][/tr]
[tr][td="bgcolor:#C0C0C0"]
53​
[/td][td]
4​
[/td][td="bgcolor:#E5E5E5"]
4
[/td][td="bgcolor:#E5E5E5"]********1.4.3.3[/td][td]********Safety Plan[/td][/tr]
[tr][td="bgcolor:#C0C0C0"]
54​
[/td][td]
4​
[/td][td="bgcolor:#E5E5E5"]
4
[/td][td="bgcolor:#E5E5E5"]********1.4.3.4[/td][td]********R&M Analysis[/td][/tr]
[tr][td="bgcolor:#C0C0C0"]
55​
[/td][td]
4​
[/td][td="bgcolor:#E5E5E5"]
4
[/td][td="bgcolor:#E5E5E5"]********1.4.3.5[/td][td]********Life Cycle Cost Analysis[/td][/tr]
[tr][td="bgcolor:#C0C0C0"]
56​
[/td][td]
4​
[/td][td="bgcolor:#E5E5E5"]
4
[/td][td="bgcolor:#E5E5E5"]********1.4.3.6[/td][td]********Planned Maintenance & Repair Manuals[/td][/tr]
[tr][td="bgcolor:#C0C0C0"]
57​
[/td][td]
2​
[/td][td="bgcolor:#E5E5E5"]
2
[/td][td="bgcolor:#E5E5E5"]****1.5[/td][td]****Meetings and Reviews[/td][/tr]
[tr][td="bgcolor:#C0C0C0"]
58​
[/td][td]
3​
[/td][td="bgcolor:#E5E5E5"]
3
[/td][td="bgcolor:#E5E5E5"]******1.5.1[/td][td]******PM[/td][/tr]
[tr][td="bgcolor:#C0C0C0"]
59​
[/td][td]
3​
[/td][td="bgcolor:#E5E5E5"]
3
[/td][td="bgcolor:#E5E5E5"]******1.5.2[/td][td]******PE[/td][/tr]
[tr][td="bgcolor:#C0C0C0"]
60​
[/td][td]
3​
[/td][td="bgcolor:#E5E5E5"]
3
[/td][td="bgcolor:#E5E5E5"]******1.5.3[/td][td]******HW[/td][/tr]
[tr][td="bgcolor:#C0C0C0"]
61​
[/td][td]
3​
[/td][td="bgcolor:#E5E5E5"]
3
[/td][td="bgcolor:#E5E5E5"]******1.5.4[/td][td]******SW[/td][/tr]
[tr][td="bgcolor:#C0C0C0"]
62​
[/td][td]
3​
[/td][td="bgcolor:#E5E5E5"]
3
[/td][td="bgcolor:#E5E5E5"]******1.5.5[/td][td]******DB[/td][/tr]
[tr][td="bgcolor:#C0C0C0"]
63​
[/td][td]
2​
[/td][td="bgcolor:#E5E5E5"]
2
[/td][td="bgcolor:#E5E5E5"]****1.6[/td][td]****First Article Integration & Test[/td][/tr]
[tr][td="bgcolor:#C0C0C0"]
64​
[/td][td]
3​
[/td][td="bgcolor:#E5E5E5"]
3
[/td][td="bgcolor:#E5E5E5"]******1.6.1[/td][td]******PM[/td][/tr]
[tr][td="bgcolor:#C0C0C0"]
65​
[/td][td]
3​
[/td][td="bgcolor:#E5E5E5"]
3
[/td][td="bgcolor:#E5E5E5"]******1.6.2[/td][td]******PE[/td][/tr]
[tr][td="bgcolor:#C0C0C0"]
66​
[/td][td]
3​
[/td][td="bgcolor:#E5E5E5"]
3
[/td][td="bgcolor:#E5E5E5"]******1.6.3[/td][td]******HW[/td][/tr]
[tr][td="bgcolor:#C0C0C0"]
67​
[/td][td]
3​
[/td][td="bgcolor:#E5E5E5"]
3
[/td][td="bgcolor:#E5E5E5"]******1.6.4[/td][td]******SW[/td][/tr]
[tr][td="bgcolor:#C0C0C0"]
68​
[/td][td]
3​
[/td][td="bgcolor:#E5E5E5"]
3
[/td][td="bgcolor:#E5E5E5"]******1.6.5[/td][td]******Tech[/td][/tr]
[tr][td="bgcolor:#C0C0C0"]
69​
[/td][td][/td][td="bgcolor:#E5E5E5"]
0
[/td][td="bgcolor:#E5E5E5"][/td][td][/td][/tr]
[tr][td="bgcolor:#C0C0C0"]
70​
[/td][td]
1​
[/td][td="bgcolor:#E5E5E5"]
1
[/td][td="bgcolor:#E5E5E5"]**2[/td][td]**Recurring[/td][/tr]
[tr][td="bgcolor:#C0C0C0"]
71​
[/td][td]
2​
[/td][td="bgcolor:#E5E5E5"]
2
[/td][td="bgcolor:#E5E5E5"]****2.1[/td][td]****Hardware & Software[/td][/tr]
[tr][td="bgcolor:#C0C0C0"]
72​
[/td][td]
3​
[/td][td="bgcolor:#E5E5E5"]
3
[/td][td="bgcolor:#E5E5E5"]******2.1.1[/td][td]******Host Computer System[/td][/tr]
[tr][td="bgcolor:#C0C0C0"]
73​
[/td][td]
3​
[/td][td="bgcolor:#E5E5E5"]
3
[/td][td="bgcolor:#E5E5E5"]******2.1.2[/td][td]******VR Link License[/td][/tr]
[tr][td="bgcolor:#C0C0C0"]
74​
[/td][td]
3​
[/td][td="bgcolor:#E5E5E5"]
3
[/td][td="bgcolor:#E5E5E5"]******2.1.3[/td][td]******IOS[/td][/tr]
[tr][td="bgcolor:#C0C0C0"]
75​
[/td][td]
4​
[/td][td="bgcolor:#E5E5E5"]
4
[/td][td="bgcolor:#E5E5E5"]********2.1.3.1[/td][td]********Computer System[/td][/tr]
[tr][td="bgcolor:#C0C0C0"]
76​
[/td][td]
4​
[/td][td="bgcolor:#E5E5E5"]
4
[/td][td="bgcolor:#E5E5E5"]********2.1.3.2[/td][td]********FBCB2 / JBC-P (GFI)[/td][/tr]
[tr][td="bgcolor:#C0C0C0"]
77​
[/td][td]
4​
[/td][td="bgcolor:#E5E5E5"]
4
[/td][td="bgcolor:#E5E5E5"]********2.1.3.3[/td][td]********One SAF (GFI)[/td][/tr]
[tr][td="bgcolor:#C0C0C0"]
78​
[/td][td]
4​
[/td][td="bgcolor:#E5E5E5"]
4
[/td][td="bgcolor:#E5E5E5"]********2.1.3.4[/td][td]********Stealth IG (IDX-80, 3 OTW)[/td][/tr]
[tr][td="bgcolor:#C0C0C0"]
79​
[/td][td]
5​
[/td][td="bgcolor:#E5E5E5"]
5
[/td][td="bgcolor:#E5E5E5"]**********2.1.3.4.1[/td][td]**********IDX-80, 3 channel[/td][/tr]
[tr][td="bgcolor:#C0C0C0"]
80​
[/td][td]
5​
[/td][td="bgcolor:#E5E5E5"]
5
[/td][td="bgcolor:#E5E5E5"]**********2.1.3.4.2[/td][td]**********VBS IG Channel Licenses[/td][/tr]
[tr][td="bgcolor:#C0C0C0"]
81​
[/td][td]
3​
[/td][td="bgcolor:#E5E5E5"]
3
[/td][td="bgcolor:#E5E5E5"]******2.1.4[/td][td]******AAR Station[/td][/tr]
[tr][td="bgcolor:#C0C0C0"]
82​
[/td][td]
4​
[/td][td="bgcolor:#E5E5E5"]
4
[/td][td="bgcolor:#E5E5E5"]********2.1.4.1[/td][td]********Computer System[/td][/tr]
[tr][td="bgcolor:#C0C0C0"]
83​
[/td][td]
4​
[/td][td="bgcolor:#E5E5E5"]
4
[/td][td="bgcolor:#E5E5E5"]********2.1.4.2[/td][td]********Aural Cue / Radio Replay[/td][/tr]
[tr][td="bgcolor:#C0C0C0"]
84​
[/td][td]
4​
[/td][td="bgcolor:#E5E5E5"]
4
[/td][td="bgcolor:#E5E5E5"]********2.1.4.3[/td][td]********Stealth IG (IDX-80, 3 OTW)[/td][/tr]
[tr][td="bgcolor:#C0C0C0"]
85​
[/td][td]
5​
[/td][td="bgcolor:#E5E5E5"]
5
[/td][td="bgcolor:#E5E5E5"]**********2.1.4.3.1[/td][td]**********IDX-80, 3 channel[/td][/tr]
[tr][td="bgcolor:#C0C0C0"]
86​
[/td][td]
5​
[/td][td="bgcolor:#E5E5E5"]
5
[/td][td="bgcolor:#E5E5E5"]**********2.1.4.3.2[/td][td]**********VBS IG Channel Licenses[/td][/tr]
[tr][td="bgcolor:#C0C0C0"]
87​
[/td][td]
3​
[/td][td="bgcolor:#E5E5E5"]
3
[/td][td="bgcolor:#E5E5E5"]******2.1.5[/td][td]******Crew Stations (set)[/td][/tr]
[tr][td="bgcolor:#C0C0C0"]
88​
[/td][td]
4​
[/td][td="bgcolor:#E5E5E5"]
4
[/td][td="bgcolor:#E5E5E5"]********2.1.5.1[/td][td]********Computer (vehicle model)[/td][/tr]
[tr][td="bgcolor:#C0C0C0"]
89​
[/td][td]
4​
[/td][td="bgcolor:#E5E5E5"]
4
[/td][td="bgcolor:#E5E5E5"]********2.1.5.2[/td][td]********Vehicle Model SW License[/td][/tr]
[tr][td="bgcolor:#C0C0C0"]
90​
[/td][td]
4​
[/td][td="bgcolor:#E5E5E5"]
4
[/td][td="bgcolor:#E5E5E5"]********2.1.5.3[/td][td]********Aural Cue / Radio System[/td][/tr]
[tr][td="bgcolor:#C0C0C0"]
91​
[/td][td]
4​
[/td][td="bgcolor:#E5E5E5"]
4
[/td][td="bgcolor:#E5E5E5"]********2.1.5.4[/td][td]********MTVR chassis & I/O (GFI)[/td][/tr]
[tr][td="bgcolor:#C0C0C0"]
92​
[/td][td]
4​
[/td][td="bgcolor:#E5E5E5"]
4
[/td][td="bgcolor:#E5E5E5"]********2.1.5.5[/td][td]********HMMWV chassis & I/O (GFI)[/td][/tr]
[tr][td="bgcolor:#C0C0C0"]
93​
[/td][td]
4​
[/td][td="bgcolor:#E5E5E5"]
4
[/td][td="bgcolor:#E5E5E5"]********2.1.5.6[/td][td]********Untethered weapons & trackers (GFI)[/td][/tr]
[tr][td="bgcolor:#C0C0C0"]
94​
[/td][td]
4​
[/td][td="bgcolor:#E5E5E5"]
4
[/td][td="bgcolor:#E5E5E5"]********2.1.5.7[/td][td]********Crew Station IG[/td][/tr]
[tr][td="bgcolor:#C0C0C0"]
95​
[/td][td]
5​
[/td][td="bgcolor:#E5E5E5"]
5
[/td][td="bgcolor:#E5E5E5"]**********2.1.5.7.1[/td][td]**********IDX 8000 HW & 3PSW[/td][/tr]
[tr][td="bgcolor:#C0C0C0"]
96​
[/td][td]
5​
[/td][td="bgcolor:#E5E5E5"]
5
[/td][td="bgcolor:#E5E5E5"]**********2.1.5.7.2[/td][td]**********VBS IG Channel Licenses[/td][/tr]
[tr][td="bgcolor:#C0C0C0"]
97​
[/td][td]
4​
[/td][td="bgcolor:#E5E5E5"]
4
[/td][td="bgcolor:#E5E5E5"]********2.1.5.8[/td][td]********CCTV[/td][/tr]
[tr][td="bgcolor:#C0C0C0"]
98​
[/td][td]
3​
[/td][td="bgcolor:#E5E5E5"]
3
[/td][td="bgcolor:#E5E5E5"]******2.1.6[/td][td]******Display[/td][/tr]
[tr][td="bgcolor:#C0C0C0"]
99​
[/td][td]
4​
[/td][td="bgcolor:#E5E5E5"]
4
[/td][td="bgcolor:#E5E5E5"]********2.1.6.1[/td][td]********Screens (Drywall, use as is)[/td][/tr]
[tr][td="bgcolor:#C0C0C0"]
100​
[/td][td]
4​
[/td][td="bgcolor:#E5E5E5"]
4
[/td][td="bgcolor:#E5E5E5"]********2.1.6.2[/td][td]********Projectors[/td][/tr]
[tr][td="bgcolor:#C0C0C0"]
101​
[/td][td]
3​
[/td][td="bgcolor:#E5E5E5"]
3
[/td][td="bgcolor:#E5E5E5"]******2.1.7[/td][td]******Weapon Spot Trackers[/td][/tr]
[tr][td="bgcolor:#C0C0C0"]
102​
[/td][td]
2​
[/td][td="bgcolor:#E5E5E5"]
2
[/td][td="bgcolor:#E5E5E5"]****2.2[/td][td]****Installation, Cold Start & Acceptance Testing[/td][/tr]
[/table]


What appears as asterisks above are indents in the workbook.
 
Upvote 0
here's a screenshot: http://i.imgur.com/yGsMpE6.jpg

as you see there is no specific pattern, task have different number of subtasks, which in turn don't have a pre-determined number of subsub tasks.

The only pattern is that there is an empty row between each task. And the indents.

a VBA solution would be something like (dummy code):
With selected cell
check indents until you find empty row
for no indent level > start numbering 1.,2.,3. etc.
for 1 indent level, check numbering of task and start 1.1, 1.2 etc.
for 2 indent levels, check numbering of subtask and start 1.1.1, 1.1.2 etc.
one important thing is that if there is text already in the cell, the numbering should not overwrite it but go infront of the pre-existing text.

PS: i take it that Excel has no automated function for lists like Word :(

[edit] @shg: this is exactly what i'm talking about, except that i don't have as you see in the image, i don't have separate A, B, C, columns.
But maybe it is a good idea to separate the task numbering from the actual name.
 
Last edited:
Upvote 0
[edit] @shg: this is exactly what i'm talking about, except that i don't have as you see in the image, i don't have separate A, B, C, columns.

But maybe it is a good idea to separate the task numbering from the actual name.

I do, because the task number is synthesized independent of the task description.
 
Upvote 0
Thanks shg for another take ...

I did not write my code with any blank rows in mind. So that will make a difference.
Also, when compared to shg's data, I assumed that indents would increase by one and not two per level.

However, if I use shg's data (with the indents halved) and add a change to my code that indents the WBS as well as the description I get a similar answer.


Excel 2013
AB
1WBSDescription
21USMC Combat Convoy Simulator
31.1Non-Recurring Engineering
41.1.1Hardware Design
51.1.1.1AAR Station
61.1.1.1.1Design
71.1.1.1.2Docs
81.1.1.2IOS
91.1.1.2.1Design
101.1.1.2.2Docs
111.1.1.3Display
121.1.1.3.1Projection Geometry & Projector Mount
131.1.1.3.2Weapon spot tracking
141.1.2Software Design
151.1.2.1Simulation Host
161.1.2.1.1Simulation framework
171.1.2.1.2IG Integration
181.1.2.1.3One SAF Integration
191.1.2.1.4SE Core Integration
201.1.2.1.5DIS/HLA (VR Link) Integration
211.1.2.1.6CREW-2 Simulation
221.1.2.1.7FBCB2 / JBC-P Integration
231.1.2.1.8SINCGARS Simulation
241.1.2.2IOS
251.1.2.2.1Scenario authoring & control
261.1.2.2.2Student monitoring & records
271.1.2.2.3Learning management
281.1.2.2.4Instructor Manual
291.1.2.3AAR Station
301.1.2.4MTVR & HMMWV Crew Stations
311.1.2.4.1Dev Software (CM Labs)
321.1.2.4.2Model Development (CM Labs)
331.1.2.4.3User Manuals
341.1.2.5Weapon Simulations
351.1.2.5.1.50 HMG
361.1.2.5.2M240G
371.1.2.5.3M4
381.1.2.5.4M16A4
391.1.3Databases
401.1.3.1Terrain
411.1.3.1.1Imagery
421.1.3.1.2DEM
431.1.3.2Models
441.1.4Data
451.1.4.1ATP/TTPRR, including Cold-Start Procedure
461.1.4.1.1PE
471.1.4.1.2Tech
481.1.4.2Information Assurance
491.1.4.3ILS
501.1.4.3.1LSA Plan
511.1.4.3.2Provisioning Plan
521.1.4.3.3Safety Plan
531.1.4.3.4R&M Analysis
541.1.4.3.5Life Cycle Cost Analysis
551.1.4.3.6Planned Maintenance & Repair Manuals
561.1.5Meetings and Reviews
571.1.5.1PM
581.1.5.2PE
591.1.5.3HW
601.1.5.4SW
611.1.5.5DB
621.1.6First Article Integration & Test
631.1.6.1PM
641.1.6.2PE
651.1.6.3HW
661.1.6.4SW
671.1.6.5Tech
681.2Recurring
691.2.1Hardware & Software
701.2.1.1Host Computer System
711.2.1.2VR Link License
721.2.1.3IOS
731.2.1.3.1Computer System
741.2.1.3.2FBCB2 / JBC-P (GFI)
751.2.1.3.3One SAF (GFI)
761.2.1.3.4Stealth IG (IDX-80, 3 OTW)
771.2.1.3.4.1IDX-80, 3 channel
781.2.1.3.4.2VBS IG Channel Licenses
791.2.1.4AAR Station
801.2.1.4.1Computer System
811.2.1.4.2Aural Cue / Radio Replay
821.2.1.4.3Stealth IG (IDX-80, 3 OTW)
831.2.1.4.3.1IDX-80, 3 channel
841.2.1.4.3.2VBS IG Channel Licenses
851.2.1.5Crew Stations (set)
861.2.1.5.1Computer (vehicle model)
871.2.1.5.2Vehicle Model SW License
881.2.1.5.3Aural Cue / Radio System
891.2.1.5.4MTVR chassis & I/O (GFI)
901.2.1.5.5HMMWV chassis & I/O (GFI)
911.2.1.5.6Untethered weapons & trackers (GFI)
921.2.1.5.7Crew Station IG
931.2.1.5.7.1IDX 8000 HW & 3PSW
941.2.1.5.7.2VBS IG Channel Licenses
951.2.1.5.8CCTV
961.2.1.6Display
971.2.1.6.1Screens (Drywall, use as is)
981.2.1.6.2Projectors
991.2.1.7Weapon Spot Trackers
1001.2.2Installation, Cold Start & Acceptance Testing
Sheet2
 
Upvote 0

Forum statistics

Threads
1,223,268
Messages
6,171,099
Members
452,379
Latest member
IainTru

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