Closed Thread
Results 1 to 7 of 7

WBS Function

  1. #1
    Forum Expert dflak's Avatar
    Join Date
    11-24-2015
    Location
    North Carolina
    MS-Off Ver
    365
    Posts
    7,876

    WBS Function

    This function produces a Work Breakdown Schedule (WBS)-like numbering system such as:

    1
    1.1
    1.2
    1.2.1
    2
    2.1
    2.1.1

    The function can start in any cell, and the first occurrence of the function is automatically assigned the value "1." Subsequent occurrences of the function in the same column will increment the counter or level depending on the indent level of the cell immediately to the right. No indent is N, indent 1 is N.N, Indent 2 is N.N.N, etc. You can have as many indents as needed. Just copy the formula down for as many tasks as you have and indent the tasks accordingly.

    I could probably do a bit more cleanup of the code, but I'm lazy.

    Please Login or Register  to view this content.
    Attached Files Attached Files
    One spreadsheet to rule them all. One spreadsheet to find them. One spreadsheet to bring them all and at corporate, bind them.

    A picture is worth a thousand words, but a sample spreadsheet is more likely to be worked on.

  2. #2
    Registered User
    Join Date
    05-11-2018
    Location
    Portland, OR
    MS-Off Ver
    MS Office 365
    Posts
    3

    Re: WBS Function

    I really appreciate this, but wow... I think that I have to get a lot more into Excel itself before any of this makes sense. There really is so much to know and it's so complex. I've used it off and on for years and barely BARELY scratched the surface.

  3. #3
    Forum Expert
    Join Date
    04-01-2013
    Location
    East Auckland
    MS-Off Ver
    Excel 365
    Posts
    1,338

    Re: WBS Function

    Interesting,

    How do you envisage it being used?
    If you want something done right... find a forum and ask an online expert.

    Time flies like an arrow. Fruit flies like a banana.

  4. #4
    Forum Expert dflak's Avatar
    Join Date
    11-24-2015
    Location
    North Carolina
    MS-Off Ver
    365
    Posts
    7,876

    Re: WBS Function

    Many people wish to use Excel like MS-Project. MS-Project allows you to set up tasks and sub-tasks and you can tell it what the dependencies are such as you can't start task 1.2 until task 1.1 is complete or tasks 2.1.1 and 2.1.2 should start at the same time. MS-Project also has features where you tell it how long the task will take (in work-hours) and how many people you have to work on it and it will calculate the duration (it uses the 9 women working on a pregnancy will get the job done in one month logic).

    If you don't need this level of sophistication and are willing to compute your own start and end times, Excel can be pressed into use to produce a GANTT chart (or waterfall chart as it is sometimes called). In the early stages of project planning, the major steps are "roughed out" and then these are later broken down into sub tasks and sub-sub tasks. These tasks and subordinate tasks use a numbering scheme as shown in the OP. For example, Tasks 1.2.1 and 1.2.2 are subtasks of 1.2, which in turn, is a subtask of Task 1.

    So the WBS numbering function would typically be used in Column A. Column B would be the task or subtask name (suitably indented), Column C is the start date, Column D is the end date. One could use Column C and Column D to compute the duration or Column C and the duration to compute the end date. From there, the program would vary. Some people are content to fill in boxes under dates to simulate a GANNT chart, others want a bar-chart.

    WBS just provides the numbering for this, Tasks can be cut and pasted into new rows or inserted or deleted or promoted or demoted and WBS will fill in with the appropriate number. One caveat is that WBS assumes all tasks are on contiguous rows.

  5. #5
    Forum Expert
    Join Date
    04-01-2013
    Location
    East Auckland
    MS-Off Ver
    Excel 365
    Posts
    1,338

    Re: WBS Function

    thanks dflak,
    great explanation.

  6. #6
    Registered User
    Join Date
    01-26-2024
    Location
    iran
    MS-Off Ver
    2021
    Posts
    10

    Re: WBS Function

    Quote Originally Posted by dflak View Post
    This function produces a Work Breakdown Schedule (WBS)-like numbering system such as:

    1
    1.1
    1.2
    1.2.1
    2
    2.1
    2.1.1

    The function can start in any cell, and the first occurrence of the function is automatically assigned the value "1." Subsequent occurrences of the function in the same column will increment the counter or level depending on the indent level of the cell immediately to the right. No indent is N, indent 1 is N.N, Indent 2 is N.N.N, etc. You can have as many indents as needed. Just copy the formula down for as many tasks as you have and indent the tasks accordingly.

    I could probably do a bit more cleanup of the code, but I'm lazy.

    Please Login or Register  to view this content.
    Hi . Thank you for solving my mental conflict. But when I enter the codes in VBA, the following error is displayed, how can I solve it?

  7. #7
    Forum Moderator AliGW's Avatar
    Join Date
    08-10-2013
    Location
    Retired in Ipswich, Suffolk, but grew up in Sawley, Derbyshire (England)
    MS-Off Ver
    MS 365 Subscription Insider Beta Channel v. 2403 (Windows 11 22H2 64-bit)
    Posts
    78,120

    Re: WBS Function

    Administrative Note:

    Welcome to the forum.

    We are happy to help, however whilst you feel your request is similar or even the same to this thread, we have a rule that you open your own thread on the issue and do not piggy back another member's thread.

    Please see Forum Rule #1 about hijacking and start a new thread for your query.

    If you are not familiar with how to start a new thread see the FAQ: How to start a new thread
    Ali


    Enthusiastic self-taught user of MS Excel who's always learning!
    Don't forget to say "thank you" in your thread to anyone who has offered you help.
    You can reward them by clicking on * Add Reputation below their user name on the left, if you wish.

    Forum Rules (updated August 2023): please read them here.

Closed Thread

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Similar Threads

  1. COUNTUNIQUE Function in Google Sheets; Excel lacks a direct counterpart to this function?
    By PivotTablePSHomage in forum Excel Formulas & Functions
    Replies: 1
    Last Post: 03-18-2018, 05:27 AM
  2. Calling function inside function. (aka nested function)
    By jakopak in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 11-02-2015, 05:58 AM
  3. Replies: 1
    Last Post: 06-10-2015, 12:56 PM
  4. Replies: 13
    Last Post: 04-08-2014, 05:46 AM
  5. Replies: 2
    Last Post: 01-15-2014, 11:40 PM
  6. [SOLVED] IF Function referencing IsNumber, Match, Left function on separate sheets
    By Touch9713 in forum Excel Formulas & Functions
    Replies: 2
    Last Post: 10-12-2013, 10:09 PM
  7. Replies: 1
    Last Post: 03-21-2012, 11:22 AM

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts

Search Engine Friendly URLs by vBSEO 3.6.0 RC 1