Process and Indentation

Pestomania

Active Member
Joined
May 30, 2018
Messages
332
Office Version
  1. 365
Platform
  1. Windows
I am working through a large excel sheet that I am hoping to get built into a Smartsheet at some point, but am working on a proof of concept in Excel first.

I have a document that has numerous tabs:
- Compiled
- Parent Processes
- Sub Processes
- Equipment
- Third Party

I cannot find a way to put the entire document on this through XL2bb so I have inputted through numerous different inserts below:

Book1
ABCD
1Parent Process 1: Open the door
2Sub-Process 1: Insert Key
3Equipment 1: House Keys
4Sub-Process 2: Turn Key
5Sub-Process 3: Turn Knob
6Sub-Process 4: Open Door
7Equipment 2: Front Doorway
8Sub-Process 5: Walk through door
9Sub-Process 6: Close door
10Sub-Process 7: Lock Door
11
12Parent Process 2: Do the laundry
13Sub-Process 8: Grab laundry hamper
14Equipment 4: Hamper
15Sub-Process 9: Walk hamper to washer
16Sub-Process 10: Open the washer lid
17Equipment 3: Washer
18Third Party 1
19Third Party 2
20Third Party 3
21Sub-Process 11: Input laundry into washer
22Sub-Process 12: Grab detergent
23Sub-Process 13: Measure detergent
24Sub-Process 14: Pour detergent
25Sub-Process 15: Return detergent
26Sub-Process 16: Close lid
27Sub-Process 17: Turn washer knob
28Sub-Process 18: Select mode
29Sub-Process 19: Click Start Button
30
31Parent Process 3: Load the dishwasher
32Sub-Process 20: Open Dishwasher
33Equipment 5: Dishwasher
34Third Party 1
35Third Party 2
36Third Party 3
37Sub-Process 21: Grab dishes
38Sub-Process 22: Place dishes in dishwasher
39Sub-Process 23: Grab dish detergent
40Sub-Process 23: Put dish detergent in dishwasher
41Sub-Process 23: Close detergent compartment
42Sub-Process 23: Close dishwasher load
43Sub-Process 23: Select Mode
44Sub-Process 23: Click Start Button
Compiled


Each of the tabs have a "parent process" field that allows you to connect a certain row to a parent process. I am hoping to find a way to copy the data from the background tables and place them into the compiled tab (preferably with indentation and grouping) so that you can see it all together.

Book1
ABC
1TitleDescriptionConcat
2Parent Process 1Open the doorParent Process 1: Open the door
3Parent Process 2Do the laundryParent Process 2: Do the laundry
4Parent Process 3Load the dishwasherParent Process 3: Load the dishwasher
Parent Processes
Cell Formulas
RangeFormula
C2:C4C2=CONCAT([@Title],": ",[@Description])


Book1
ABCD
1TitleDescriptionParent ProcessConcat
2Sub-Process 1Insert KeyParent Process 1: Open the doorSub-Process 1: Insert Key
3Sub-Process 2Turn KeyParent Process 1: Open the doorSub-Process 2: Turn Key
4Sub-Process 3Turn KnobParent Process 1: Open the doorSub-Process 3: Turn Knob
5Sub-Process 4Open DoorParent Process 1: Open the doorSub-Process 4: Open Door
6Sub-Process 5Walk through doorParent Process 1: Open the doorSub-Process 5: Walk through door
7Sub-Process 6Close doorParent Process 1: Open the doorSub-Process 6: Close door
8Sub-Process 7Lock DoorParent Process 1: Open the doorSub-Process 7: Lock Door
9Sub-Process 8Grab laundry hamperParent Process 2: Do the laundrySub-Process 8: Grab laundry hamper
10Sub-Process 9Walk hamper to washerParent Process 2: Do the laundrySub-Process 9: Walk hamper to washer
11Sub-Process 10Open the washer lidParent Process 2: Do the laundrySub-Process 10: Open the washer lid
12Sub-Process 11Input laundry into washerParent Process 2: Do the laundrySub-Process 11: Input laundry into washer
13Sub-Process 12Grab detergentParent Process 2: Do the laundrySub-Process 12: Grab detergent
14Sub-Process 13Measure detergentParent Process 2: Do the laundrySub-Process 13: Measure detergent
15Sub-Process 14Pour detergentParent Process 2: Do the laundrySub-Process 14: Pour detergent
16Sub-Process 15Return detergentParent Process 2: Do the laundrySub-Process 15: Return detergent
17Sub-Process 16Close lidParent Process 2: Do the laundrySub-Process 16: Close lid
18Sub-Process 17Turn washer knobParent Process 2: Do the laundrySub-Process 17: Turn washer knob
19Sub-Process 18Select modeParent Process 2: Do the laundrySub-Process 18: Select mode
20Sub-Process 19Click Start ButtonParent Process 2: Do the laundrySub-Process 19: Click Start Button
21Sub-Process 20Open DishwasherParent Process 3: Load the dishwasherSub-Process 20: Open Dishwasher
22Sub-Process 21Grab dishesParent Process 3: Load the dishwasherSub-Process 21: Grab dishes
23Sub-Process 22Place dishes in dishwasherParent Process 3: Load the dishwasherSub-Process 22: Place dishes in dishwasher
24Sub-Process 23Grab dish detergentParent Process 3: Load the dishwasherSub-Process 23: Grab dish detergent
25Sub-Process 23Put dish detergent in dishwasherParent Process 3: Load the dishwasherSub-Process 23: Put dish detergent in dishwasher
26Sub-Process 23Close detergent compartmentParent Process 3: Load the dishwasherSub-Process 23: Close detergent compartment
27Sub-Process 23Close dishwasher loadParent Process 3: Load the dishwasherSub-Process 23: Close dishwasher load
28Sub-Process 23Select ModeParent Process 3: Load the dishwasherSub-Process 23: Select Mode
29Sub-Process 23Click Start ButtonParent Process 3: Load the dishwasherSub-Process 23: Click Start Button
Sub-Processes
Cell Formulas
RangeFormula
D2:D29D2=CONCAT(@[Title],": ",[@Description])
Cells with Data Validation
CellAllowCriteria
C2:C29List=Parent_Processes


Book1
ABCD
2Equipment 1House KeysSub-Process 1: Insert KeyEquipment 1: House Keys
3Equipment 2Front DoorwaySub-Process 4: Open DoorEquipment 2: Front Doorway
4Equipment 3WasherSub-Process 10: Open the washer lidEquipment 3: Washer
5Equipment 4HamperSub-Process 8: Grab laundry hamperEquipment 4: Hamper
6Equipment 5DishwasherSub-Process 20: Open DishwasherEquipment 5: Dishwasher
Equipment
Cell Formulas
RangeFormula
D2:D6D2=CONCAT([@Title],": ",[@Description])
Cells with Data Validation
CellAllowCriteria
C2:C6List=SubProcesses


Book1
ABC
1TitleDescriptionParent Process
2Third Party 1Electrical CompanyEquipment 3: Washer & Equipment 5: Dishwasher
3Third Party 2Water CompanyEquipment 3: Washer & Equipment 5: Dishwasher
4Third Party 3CostcoEquipment 3: Washer & Equipment 5: Dishwasher
Third Party
Cells with Data Validation
CellAllowCriteria
C2:C4List=Equipment



Here is an image of what I would really like to see in the end:

1721405344981.png




I really hope this will be possible.
 

Excel Facts

Remove leading & trailing spaces
Save as CSV to remove all leading and trailing spaces. It is faster than using TRIM().
This will change the data format in Compiled sheet, so better make a back up first.
Code:
Sub test()
    Dim i&
    With Sheets("compiled")
        With .Range("a1", .Cells.SpecialCells(11))
            For i = 2 To .Columns.Count
                .Columns(i).IndentLevel = (i - 1) * 2
            Next
            On Error Resume Next
            .SpecialCells(4).Delete xlShiftToLeft
            On Error GoTo 0
        End With
    End With
End Sub
/code]
 
Upvote 0

Forum statistics

Threads
1,223,885
Messages
6,175,187
Members
452,616
Latest member
intern444

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