I need the formula for WBS No. of my tasks

suri7891

New Member
Joined
Dec 24, 2020
Messages
24
Office Version
  1. 2016
Hi there,

I have all my main task and subtasks in the same row. I need the formula to generate the WBS No. of each task according to the main task, sub task and also the sub task's of sub task.

Please find the sample below. All main task, sub tasks and sub task's of sub tasks are separated by "|" symbol. Please help with the formula to generated the Task Outline number.

Task NameTaskOutlineNumber
8124 ING Matching SWIFT 2020 Upgrade (REC Upgrade Implementation)0
8124 ING Matching SWIFT 2020 Upgrade (REC Upgrade Implementation)|Implementation Services1
8124 ING Matching SWIFT 2020 Upgrade (REC Upgrade Implementation)|Implementation Services|Client Training1.1
8124 ING Matching SWIFT 2020 Upgrade (REC Upgrade Implementation)|Implementation Services|Dev Ops1.2
8124 ING Matching SWIFT 2020 Upgrade (REC Upgrade Implementation)|Implementation Services|Environment Management1.3
8124 ING Matching SWIFT 2020 Upgrade (REC Upgrade Implementation)|Implementation Services|Non-Chargeable Activities1.4
8124 ING Matching SWIFT 2020 Upgrade (REC Upgrade Implementation)|Implementation Services|Non-Chargeable Activities|Core Bug Fixing1.4.1
8124 ING Matching SWIFT 2020 Upgrade (REC Upgrade Implementation)|Implementation Services|Non-Chargeable Activities|Environment Management (non-chargeable)1.4.2
8124 ING Matching SWIFT 2020 Upgrade (REC Upgrade Implementation)|Implementation Services|Non-Chargeable Activities|Internal Training1.4.3
8124 ING Matching SWIFT 2020 Upgrade (REC Upgrade Implementation)|Implementation Services|Non-Chargeable Activities|System Testing1.4.4
8124 ING Matching SWIFT 2020 Upgrade (REC Upgrade Implementation)|Implementation Services|Non-Chargeable Activities|Travel1.4.5
8124 ING Matching SWIFT 2020 Upgrade (REC Upgrade Implementation)|Project Services2
8124 ING Matching SWIFT 2020 Upgrade (REC Upgrade Implementation)|Project Services|Conversion Delivery Management2.1
8124 ING Matching SWIFT 2020 Upgrade (REC Upgrade Implementation)|Project Services|PMO2.2
8124 ING Matching SWIFT 2020 Upgrade (REC Upgrade Implementation)|Project Services|Project Management2.3
 
Hi Peter,

Your Power query is working fine for a single project. can you please provide the formula if the Task Name.1 changes also, level one should be 1?
I hope you understood my requirement. Please advise
Hi Peter,

Thanks for your effort. Your formulas and steps are helping me. But I have bunch of projects, tasks and sub tasks. So, it is taking a lot of time to apply for all the tasks in my bucket. Do you have any generalized formula to the cell? I mean - The formula should consider "|" as the subtasks and give us the outline numbers as 1.1.1, 1.1.2, 1.2.1, etc.
 
Upvote 0

Excel Facts

Pivot Table Drill Down
Double-click any number in a pivot table to create a new report showing all detail rows that make up that number
Example of the projects

AUCN - 4054364 HSBC Upgrade Reconciliations (Implementation)|Project Services
AUCN - 4054364 HSBC Upgrade Reconciliations (Implementation)|Project Services|Project Management
AUCN - 4054364 HSBC Upgrade Reconciliations (Implementation)|Project Services|PMO
AUCN - 4054364 HSBC Upgrade Reconciliations (Implementation)|Project Services|Conversion Delivery Management
AUCN - 4054364 HSBC Upgrade Reconciliations (Implementation)|Implementation Services
AUCN - 4054364 HSBC Upgrade Reconciliations (Implementation)|Implementation Services|Environment Management
AUCN - 4054364 HSBC Upgrade Reconciliations (Implementation)|Implementation Services|Dev Ops
AUCN - 4054364 HSBC Upgrade Reconciliations (Implementation)|Implementation Services|Client Training
AUCN - 4054364 HSBC Upgrade Reconciliations (Implementation)|Implementation Services|Non-Chargeable Activities
AUCN - 4054364 HSBC Upgrade Reconciliations (Implementation)|Implementation Services|Non-Chargeable Activities|Environment Management (non-chargeable)
AUCN - 4054364 HSBC Upgrade Reconciliations (Implementation)|Implementation Services|Non-Chargeable Activities|Internal Training
AUCN - 4054364 HSBC Upgrade Reconciliations (Implementation)|Implementation Services|Non-Chargeable Activities|Travel
AUCN - 4054364 HSBC Upgrade Reconciliations (Implementation)|Implementation Services|Non-Chargeable Activities|Core Bug Fixing
AUCN - 4054364 HSBC Upgrade Reconciliations (Implementation)|Implementation Services|Non-Chargeable Activities|System Testing
AUCN - 4054364 HSBC Upgrade Reconciliations (REC Upgrade)|Build and Test
AUCN - 4054364 HSBC Upgrade Reconciliations (REC Upgrade)|UAT Execution
AUCN - 4054364 HSBC Upgrade Reconciliations (REC Upgrade)|Go-Live Migration
AUCN - 4054364 HSBC Upgrade Reconciliations (REC Upgrade)|Out of Hours Activity
AUCN - 4054364 HSBC Upgrade Reconciliations (REC Upgrade)|Non-Chargeable Activities
AUCN - 4054364 HSBC Upgrade Reconciliations (REC Upgrade)|Non-Chargeable Activities|Defect Triaging
AUCN - 4659661 ANZ DC Matching - WinSvr 2016 migration (Implementation)|Project Services
AUCN - 4659661 ANZ DC Matching - WinSvr 2016 migration (Implementation)|Project Services|Project Management
AUCN - 4659661 ANZ DC Matching - WinSvr 2016 migration (Implementation)|Project Services|PMO
AUCN - 4659661 ANZ DC Matching - WinSvr 2016 migration (Implementation)|Project Services|Conversion Delivery Management
AUCN - 4659661 ANZ DC Matching - WinSvr 2016 migration (Implementation)|Implementation Services
AUCN - 4659661 ANZ DC Matching - WinSvr 2016 migration (Implementation)|Implementation Services|Environment Management
AUCN - 4659661 ANZ DC Matching - WinSvr 2016 migration (Implementation)|Implementation Services|Dev Ops
AUCN - 4659661 ANZ DC Matching - WinSvr 2016 migration (Implementation)|Implementation Services|Client Training
AUCN - 4659661 ANZ DC Matching - WinSvr 2016 migration (Implementation)|Implementation Services|Non-Chargeable Activities
AUCN - 4659661 ANZ DC Matching - WinSvr 2016 migration (Implementation)|Implementation Services|Non-Chargeable Activities|Environment Management (non-chargeable)
AUCN - 4659661 ANZ DC Matching - WinSvr 2016 migration (Implementation)|Implementation Services|Non-Chargeable Activities|Internal Training
AUCN - 4659661 ANZ DC Matching - WinSvr 2016 migration (Implementation)|Implementation Services|Non-Chargeable Activities|Travel
AUCN - 4659661 ANZ DC Matching - WinSvr 2016 migration (Implementation)|Implementation Services|Non-Chargeable Activities|Core Bug Fixing
AUCN - 4659661 ANZ DC Matching - WinSvr 2016 migration (Implementation)|Implementation Services|Non-Chargeable Activities|System Testing
AUCN - 4659661 ANZ DC Matching - WinSvr 2016 migration (REC Upgrade)|Build and Test
AUCN - 4659661 ANZ DC Matching - WinSvr 2016 migration (REC Upgrade)|UAT Execution
AUCN - 4659661 ANZ DC Matching - WinSvr 2016 migration (REC Upgrade)|Go-Live Migration
AUCN - 4659661 ANZ DC Matching - WinSvr 2016 migration (REC Upgrade)|Out of Hours Activity
AUCN - 4659661 ANZ DC Matching - WinSvr 2016 migration (REC Upgrade)|Non-Chargeable Activities
AUCN - 4659661 ANZ DC Matching - WinSvr 2016 migration (REC Upgrade)|Non-Chargeable Activities|Defect Triaging
Hi Peter,

Your Power query is working fine for a single project. can you please provide the formula if the Task Name.1 changes also, level one should be 1?
I hope you understood my requirement. Please advise
 
Upvote 0
Hi Peter,

Please check the below screenshot. I got 2 projects here. I want the formula to consider my project name change in column 1.1 Then, I need to get the WBS no. accordingly. Do you know the formula? Please advise

Column1.1Column1.2Column1.3Column1.8Column1.9Column1.10
AUCN - 4054364 HSBC Upgrade Reconciliations (Implementation)Project Services
1​
1​
AUCN - 4054364 HSBC Upgrade Reconciliations (Implementation)Project ServicesProject Management
1​
1​
1​
AUCN - 4054364 HSBC Upgrade Reconciliations (Implementation)Project ServicesPMO
1​
1​
2​
AUCN - 4054364 HSBC Upgrade Reconciliations (Implementation)Project ServicesConversion Delivery Management
1​
1​
3​
AUCN - 4054364 HSBC Upgrade Reconciliations (Implementation)Implementation Services
1​
2​
AUCN - 4054364 HSBC Upgrade Reconciliations (Implementation)Implementation ServicesEnvironment Management
1​
2​
1​
AUCN - 4054364 HSBC Upgrade Reconciliations (Implementation)Implementation ServicesDev Ops
1​
2​
2​
AUCN - 4054364 HSBC Upgrade Reconciliations (Implementation)Implementation ServicesClient Training
1​
2​
3​
AUCN - 4054364 HSBC Upgrade Reconciliations (Implementation)Implementation ServicesNon-Chargeable Activities
1​
2​
4​
AUCN - 4054364 HSBC Upgrade Reconciliations (Implementation)Implementation ServicesNon-Chargeable Activities
1​
2​
4​
AUCN - 4054364 HSBC Upgrade Reconciliations (Implementation)Implementation ServicesNon-Chargeable Activities
1​
2​
4​
AUCN - 4054364 HSBC Upgrade Reconciliations (Implementation)Implementation ServicesNon-Chargeable Activities
1​
2​
4​
AUCN - 4054364 HSBC Upgrade Reconciliations (Implementation)Implementation ServicesNon-Chargeable Activities
1​
2​
4​
AUCN - 4054364 HSBC Upgrade Reconciliations (Implementation)Implementation ServicesNon-Chargeable Activities
1​
2​
4​
AUCN - 4054364 HSBC Upgrade Reconciliations (REC Upgrade)Build and Test
2​
3​
AUCN - 4054364 HSBC Upgrade Reconciliations (REC Upgrade)UAT Execution
2​
4​
AUCN - 4054364 HSBC Upgrade Reconciliations (REC Upgrade)Go-Live Migration
2​
5​
AUCN - 4054364 HSBC Upgrade Reconciliations (REC Upgrade)Out of Hours Activity
2​
6​
AUCN - 4054364 HSBC Upgrade Reconciliations (REC Upgrade)Non-Chargeable Activities
2​
7
AUCN - 4054364 HSBC Upgrade Reconciliations (REC Upgrade)Non-Chargeable ActivitiesDefect Triaging
2​
7​
1​


Hi Peter,

Thanks for your effort. Your formulas and steps are helping me. But I have bunch of projects, tasks and sub tasks. So, it is taking a lot of time to apply for all the tasks in my bucket. Do you have any generalized formula to the cell? I mean - The formula should consider "|" as the subtasks and give us the outline numbers as 1.1.1, 1.1.2, 1.2.1, etc.
 
Upvote 0
" Hi Dave, Thanks for your effort. I am unable to take the formula which is in the table. Please advise."

I said in post #5 that there was a solution on the www. That solution generates the WBS numbers based on the indent position.
I posted a tiny example to show that it works. The post did not include a formula.

You can refer to that article or just ignore that alternative.
 
Upvote 0
Hi,

I've reviewed the above posts and believe I understand the problem. The attached below shows amended formula's which should help. If not please highlight which WBS entries are incorrect and what value you would like them to have.

HTH

Book1
ABCDEFGHI
1Task Name.1Task Name.2Task Name.3Task Name.4Level 1Level 2Level 3Level 4WBS
2AUCN - 4054364 HSBC Upgrade Reconciliations (Implementation)Project Services11  1.1
3AUCN - 4054364 HSBC Upgrade Reconciliations (Implementation)Project ServicesProject Management111 1.1.1
4AUCN - 4054364 HSBC Upgrade Reconciliations (Implementation)Project ServicesPMO112 1.1.2
5AUCN - 4054364 HSBC Upgrade Reconciliations (Implementation)Project ServicesConversion Delivery Management113 1.1.3
6AUCN - 4054364 HSBC Upgrade Reconciliations (Implementation)Implementation Services12  1.2
7AUCN - 4054364 HSBC Upgrade Reconciliations (Implementation)Implementation ServicesEnvironment Management121 1.2.1
8AUCN - 4054364 HSBC Upgrade Reconciliations (Implementation)Implementation ServicesDev Ops122 1.2.2
9AUCN - 4054364 HSBC Upgrade Reconciliations (Implementation)Implementation ServicesClient Training123 1.2.3
10AUCN - 4054364 HSBC Upgrade Reconciliations (Implementation)Implementation ServicesNon-Chargeable Activities124 1.2.4
11AUCN - 4054364 HSBC Upgrade Reconciliations (Implementation)Implementation ServicesNon-Chargeable ActivitiesEnvironment Management (non-chargeable)12411.2.4.1
12AUCN - 4054364 HSBC Upgrade Reconciliations (Implementation)Implementation ServicesNon-Chargeable ActivitiesInternal Training12421.2.4.2
13AUCN - 4054364 HSBC Upgrade Reconciliations (Implementation)Implementation ServicesNon-Chargeable ActivitiesTravel12431.2.4.3
14AUCN - 4054364 HSBC Upgrade Reconciliations (Implementation)Implementation ServicesNon-Chargeable ActivitiesCore Bug Fixing12441.2.4.4
15AUCN - 4054364 HSBC Upgrade Reconciliations (Implementation)Implementation ServicesNon-Chargeable ActivitiesSystem Testing12451.2.4.5
16AUCN - 4054364 HSBC Upgrade Reconciliations (REC Upgrade)Build and Test21  2.1
17AUCN - 4054364 HSBC Upgrade Reconciliations (REC Upgrade)UAT Execution22  2.2
18AUCN - 4054364 HSBC Upgrade Reconciliations (REC Upgrade)Go-Live Migration23  2.3
19AUCN - 4054364 HSBC Upgrade Reconciliations (REC Upgrade)Out of Hours Activity24  2.4
20AUCN - 4054364 HSBC Upgrade Reconciliations (REC Upgrade)Non-Chargeable Activities25  2.5
21AUCN - 4054364 HSBC Upgrade Reconciliations (REC Upgrade)Non-Chargeable ActivitiesDefect Triaging251 2.5.1
22AUCN - 4659661 ANZ DC Matching - WinSvr 2016 migration (Implementation)Project Services31  3.1
23AUCN - 4659661 ANZ DC Matching - WinSvr 2016 migration (Implementation)Project ServicesProject Management311 3.1.1
24AUCN - 4659661 ANZ DC Matching - WinSvr 2016 migration (Implementation)Project ServicesPMO312 3.1.2
25AUCN - 4659661 ANZ DC Matching - WinSvr 2016 migration (Implementation)Project ServicesConversion Delivery Management313 3.1.3
26AUCN - 4659661 ANZ DC Matching - WinSvr 2016 migration (Implementation)Implementation Services32  3.2
27AUCN - 4659661 ANZ DC Matching - WinSvr 2016 migration (Implementation)Implementation ServicesEnvironment Management321 3.2.1
28AUCN - 4659661 ANZ DC Matching - WinSvr 2016 migration (Implementation)Implementation ServicesDev Ops322 3.2.2
29AUCN - 4659661 ANZ DC Matching - WinSvr 2016 migration (Implementation)Implementation ServicesClient Training323 3.2.3
30AUCN - 4659661 ANZ DC Matching - WinSvr 2016 migration (Implementation)Implementation ServicesNon-Chargeable Activities324 3.2.4
31AUCN - 4659661 ANZ DC Matching - WinSvr 2016 migration (Implementation)Implementation ServicesNon-Chargeable ActivitiesEnvironment Management (non-chargeable)32413.2.4.1
32AUCN - 4659661 ANZ DC Matching - WinSvr 2016 migration (Implementation)Implementation ServicesNon-Chargeable ActivitiesInternal Training32423.2.4.2
33AUCN - 4659661 ANZ DC Matching - WinSvr 2016 migration (Implementation)Implementation ServicesNon-Chargeable ActivitiesTravel32433.2.4.3
34AUCN - 4659661 ANZ DC Matching - WinSvr 2016 migration (Implementation)Implementation ServicesNon-Chargeable ActivitiesCore Bug Fixing32443.2.4.4
35AUCN - 4659661 ANZ DC Matching - WinSvr 2016 migration (Implementation)Implementation ServicesNon-Chargeable ActivitiesSystem Testing32453.2.4.5
36AUCN - 4659661 ANZ DC Matching - WinSvr 2016 migration (REC Upgrade)Build and Test41  4.1
37AUCN - 4659661 ANZ DC Matching - WinSvr 2016 migration (REC Upgrade)UAT Execution42  4.2
38AUCN - 4659661 ANZ DC Matching - WinSvr 2016 migration (REC Upgrade)Go-Live Migration43  4.3
39AUCN - 4659661 ANZ DC Matching - WinSvr 2016 migration (REC Upgrade)Out of Hours Activity44  4.4
40AUCN - 4659661 ANZ DC Matching - WinSvr 2016 migration (REC Upgrade)Non-Chargeable Activities45  4.5
41AUCN - 4659661 ANZ DC Matching - WinSvr 2016 migration (REC Upgrade)Non-Chargeable ActivitiesDefect Triaging451 4.5.1
Sheet3
Cell Formulas
RangeFormula
E2:E41E2=IF([@[Task Name.1]]<>"",IF(A2<>A1,IFERROR(E1+1,1),E1),"")
F2:F41F2=IF([@[Task Name.2]]<>"",IF(B2<>B1,IFERROR(IF(E1=[@[Level 1]],F1+1,1),1),F1),"")
G2:G41G2=IF([@[Task Name.3]]<>"",IF(C2<>C1,IFERROR(IF(F1=[@[Level 2]],G1+1,1),1),G1),"")
H2:H41H2=IF([@[Task Name.4]]<>"",IF(D2<>D1,IFERROR(IF(G1=[@[Level 3]],H1+1,1),1),H1),"")
I2:I41I2=[@[Level 1]] & IF([@[Level 2]]<>"","."&[@[Level 2]] & IF([@[Level 3]]<>"","."&[@[Level 3]] & IF([@[Level 4]]<>"","."&[@[Level 4]],""),""),"")
Named Ranges
NameRefers ToCells
ExternalData_1=Sheet3!$A$1:$D$41E2
 
Upvote 0
Solution

Forum statistics

Threads
1,214,426
Messages
6,119,414
Members
448,895
Latest member
omarahmed1

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