Results 1 to 22 of 22

Setting up Tree Structure

Threaded View

  1. #1
    Valued Forum Contributor
    Join Date
    12-02-2009
    Location
    Austin, Tx
    MS-Off Ver
    Office 365 64-Bit, 2108, build 14326.21018
    Posts
    4,056

    Setting up Tree Structure

    I receive a weekly spreadsheet with about 20K names. For each name there about 20 columns of information such as Position#, Employee #, Position Function, Job Title, etc. I have to pare this down to send a report to about 30 different Program Directors in 11 different Regions showing who's supervising which caseworkers and how many hours their Caseworkers are using. Caseworker, Program Director, and Supervisor may or may not be in the Position Function or the Job Title, so I can't rely on that. All I can really rely on is the "who reports to whom" column.

    The attached example is a way-pared down version of my weekly report. There's a Names column, an Employee ID column, an Hours Worked column, and a Reports to column. I need a macro or a formula that will tell me who works for whom. Ideally it will sort out like this (though there may be in some cases 5 or 6 levels instead of the 3 shown below):

    Big boss →Midlevel → Caseworker - hours worked

    So results will be something like:
    Frankenstein → 	Plato 	→ Sigmund Freud - hours worked
                                   → Willey Mays - hours worked
             →          Elvis	→ Mother Teresa - hours worked
                                   → Paul McCartney - hours worked

    So I can create a report to send to Frankenstein showing him that Sigmund and Willey, who are under Plato's supervision, worked umpteen hours each. I'll work out how to paste the data in the format I need, but I need to know how to sort the data to get the structure reflected above.

    Any help getting me started would be greatly appreciated.
    Attached Files Attached Files
    Last edited by jomili; 03-05-2010 at 09:19 AM. Reason: Very well solved by JBeaucaire

Thread Information

Users Browsing this Thread

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

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