Excel User Group
Microsoft Excel blogs, forums, files. Read, ask questions, provide answers.

extract and display hierarchical structure from source data in spreadsheet

Latest post Sat, Feb 20 2010 1:49 PM by john caulfield. 4 replies.
  • Thu, Sep 10 2009 10:46 AM

    extract and display hierarchical structure from source data in spreadsheet

    I hope someone can help me with this task. I have a spreadsheet detailing staff’s details, e.g. their name, job title, cost centre code, team name, line manager info etc. There are over 2000 employees in the division. The division’s hierarchy is defined through post numbers, e.g. post number 005 reports to post number 001. This means whoever has been appointed to post number 005 reports to whoever occupies post number 001.

     

    Now I've been asked to explore the possibilities of having a drill down list to show the hierarchical structure of the entire division. To demonstrate this I am attaching a sample spreadsheet. What we want is to have something like this: AA Milne needs to be automatically listed without the need of selecting him. If AA Milne is selected then the list should be able to expand to the next hierarchical level which is Christopher Robin but no further than that. If we continue selecting Christopher Robin, Winnie-the-Pooh and Owl's details should appear and so on...What we don't want is to have everything automatically displayed in one go..

    Is this something possible to do in Excel? Any suggestions will be gratefully received.

    Thank you very much for your hellp in advance

     

    Maggie

     

     

    • Post Points: 37
  • Thu, Sep 10 2009 1:04 PM In reply to

    Re: extract and display hierarchical structure from source data in spreadsheet

    Personally, I am not understanding what you mean by ... automatically listed without selecting, or ... selected then the list should be able to expand to the next hierarchy.

    Regards

    Bob

    • Post Points: 21
  • Thu, Sep 10 2009 5:03 PM In reply to

    Re: extract and display hierarchical structure from source data in spreadsheet

    Hi Bob,

    Thank you for attempting to understand my clumpsy language. I did find it a bit struggle to explain what I was hoping to achieve. Essentially what I would like to do is to translate the data in that spreadsheet to something like the chart attached. Ideally the user can expand or collapse the chart. Can this be done in Excel?

    Thank you

    Maggie

    • Post Points: 21
  • Thu, Feb 18 2010 4:39 PM In reply to

    • reillocile
    • Not Ranked
    • Joined on Thu, Feb 18 2010
    • DC
    • Posts 1
    • Points 5

    Re: extract and display hierarchical structure from source data in spreadsheet

    Hi Maggie,

    Its not possible without VB scripting.   Do you have Visio?  If so, that will do what you are looking for.  I've linked to a sample that uses the xls file you provided.

     

    Eli

    • Post Points: 5
  • Sat, Feb 20 2010 1:49 PM In reply to

    Re: extract and display hierarchical structure from source data in spreadsheet

    I think what is required here is a Pivot table. Once created there are options in the Pivot table to drill to details.

    Filed under:
    • Post Points: 5
Page 1 of 1 (5 items) | RSS
Copyright Excel User Group and the relevant contributors, 2009. All Trade Marks acknowledged. This site is a peer-to-peer site and NOT affiliated in any way to Microsoft Corp. All rights reserved.