+ Reply to Thread
Results 1 to 4 of 4

Derive Heirearchy Level from Range with comma separated cells

  1. #1
    Registered User
    Join Date
    02-24-2019
    Location
    Newyork
    MS-Off Ver
    Office 365
    Posts
    2

    Derive Heirearchy Level from Range with comma separated cells

    I have a range where I need to derive the level/depth in the hierarchy for each cell where some cells are comma seperated , for example:


    Capture.PNG


    In this example range, the level of T0, T5 is 1. The level of T1,T3,T4 is 2. The level of T2 is 3, The level of T8 is 4, I need an output like this

    Task Level
    T0 1
    T5 1
    T1 2
    T3 2
    T4 2
    T2 3
    T8 4


    Can anyone please provide direction in Excel how to achieve this

  2. #2
    Forum Expert mrice's Avatar
    Join Date
    06-22-2004
    Location
    Surrey, England
    MS-Off Ver
    Excel 2013
    Posts
    4,967

    Re: Derive Heirearchy Level from Range with comma separated cells

    Try this macro

    Please Login or Register  to view this content.
    Open up the VBA editor by hitting ALT F11

    Insert a new module by hitting Insert - Module

    Paste the macro into the empty sheet

    Hit ALT F11 to get back to the worksheet.

    Run the macro by going to tools-macro in Excel 2003 or the view ribbon in Excel 2007/2010/2013.
    Martin

  3. #3
    Registered User
    Join Date
    02-24-2019
    Location
    Newyork
    MS-Off Ver
    Office 365
    Posts
    2

    Re: Derive Heirearchy Level from Range with comma separated cells

    Thank you for quick response, It is not working when I have comma seperated list in Parent Task as well

    Capture.PNG

  4. #4
    Administrator FDibbins's Avatar
    Join Date
    12-29-2011
    Location
    Duncansville, PA USA
    MS-Off Ver
    Excel 2000/3/7/10/13/16/365
    Posts
    51,896

    Re: Derive Heirearchy Level from Range with comma separated cells

    Your post does not comply with Rule 3 of our Forum RULES. Do not crosspost your question on multiple forums without including links here to the other threads on other forums.

    Cross-posting is when you post the same question in other forums on the web. The last thing you want to do is waste people's time working on an issue you have already resolved elsewhere. We prefer that you not cross-post at all, but if you do (and it's unlikely to go unnoticed), you MUST provide a link (copy the url from the address bar in your browser) to the cross-post.

    Expect cross-posted questions without a link to be closed and a message will be posted by the moderator explaining why. We are here to help so help us to help you!

    Read this to understand why we ask you to do this, and then please edit your first post to include links to any and all cross-posts in any other forums (not just this site).

    Please make sure to include the full link, so that other members will be permitted to continue helping you

    Note that if you have fewer than 10 posts, you may need to type the link, or past it in pieces (or ask a mod to do that for you)
    1. Use code tags for VBA. [code] Your Code [/code] (or use the # button)
    2. If your question is resolved, mark it SOLVED using the thread tools
    3. Click on the star if you think someone helped you

    Regards
    Ford

+ Reply to Thread

Thread Information

Users Browsing this Thread

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

Similar Threads

  1. count unique comma separated names in range of cells
    By raogm2001 in forum Excel Programming / VBA / Macros
    Replies: 22
    Last Post: 10-07-2017, 09:50 AM
  2. Multiply 2 cells separated with comma
    By jc_jun83 in forum Excel Formulas & Functions
    Replies: 9
    Last Post: 07-14-2017, 12:22 PM
  3. [SOLVED] Populate Listbox From a range of cells AND comma separated values
    By Code Flunkie in forum Excel Programming / VBA / Macros
    Replies: 6
    Last Post: 11-10-2015, 11:13 AM
  4. Count occurrences of comma separated text from a range
    By rra1968 in forum Excel Formulas & Functions
    Replies: 13
    Last Post: 09-17-2015, 09:37 AM
  5. Convert range of cells to comma separated list
    By maw230 in forum Excel Programming / VBA / Macros
    Replies: 4
    Last Post: 01-23-2012, 06:03 PM
  6. Re: summing comma separated values in a range
    By rjamison in forum Excel Programming / VBA / Macros
    Replies: 0
    Last Post: 06-13-2005, 08:05 PM
  7. [SOLVED] summing comma separated values in a range
    By bthoron in forum Excel Programming / VBA / Macros
    Replies: 7
    Last Post: 04-20-2005, 01:06 PM

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