+ Reply to Thread
Results 1 to 6 of 6

Unable to count numbers in a hierarchy where links are only indirectly established

  1. #1
    Registered User
    Join Date
    09-13-2012
    Location
    London, England
    MS-Off Ver
    Excel 2007
    Posts
    15

    Unable to count numbers in a hierarchy where links are only indirectly established

    Hi - I'm looking for a formula that will allow me to add up the number of staff reports in an organisational hierarchy where I have the number of direct reports for each layer of management and who the next layer reports up to but no data to directly link teams downwards by more than a single level...so I'm looking to be able to calculate the number of staff in each team across several management layers...please see attached sheet....

    Hope that makes sense
    Attached Files Attached Files

  2. #2
    Forum Guru Pete_UK's Avatar
    Join Date
    12-31-2011
    Location
    Warrington, England
    MS-Off Ver
    Office 2019 (still learning)
    Posts
    24,731

    Re: Unable to count numbers in a hierarchy where links are only indirectly established

    Put this formula in I3:

    =IF(D3="Level 1",B3,IF(D3="Level 2",G3,IF(D3="Level 3",INDEX(G:G,MATCH(INDEX(B:B,MATCH(G3,B:B,0)),B:B,0)),IF(D3="Level 4",INDEX(G:G,MATCH(INDEX(G:G,MATCH(INDEX(B:B,MATCH(G3,B:B,0)),B:B,0)),B:B,0))))))

    and copy down to the bottom of your data. This will give you the name of the Level 1 manager for each member of staff. Then in J3 you can have this formula:

    =SUMIF(I:I,B3,E:E)

    which only needs to be copied down to J10 (i.e. the bottom of the Level 1 managers.

    Hope this helps.

    Pete

  3. #3
    Registered User
    Join Date
    09-13-2012
    Location
    London, England
    MS-Off Ver
    Excel 2007
    Posts
    15

    Re: Unable to count numbers in a hierarchy where links are only indirectly established

    Hi Pete - many thanks. That worked fine and I'm very grateful. Could I ask whether it would be possible to complicate it a tad? Would be possible to concatenate the first and last names in order to cover the scenario where more than one manager has the same surname? Separate ask - would you be able to extend the formula so that it captures team size for staff further down the organisation eg wherea Level 3 manager has a team of Level 4 staff working for them?

  4. #4
    Forum Guru Pete_UK's Avatar
    Join Date
    12-31-2011
    Location
    Warrington, England
    MS-Off Ver
    Office 2019 (still learning)
    Posts
    24,731

    Re: Unable to count numbers in a hierarchy where links are only indirectly established

    There often is a follow-up question or two ...

    It should be possible to do both those things - can you attach another sample workbook which has examples of these two new variations?

    Pete

  5. #5
    Registered User
    Join Date
    09-13-2012
    Location
    London, England
    MS-Off Ver
    Excel 2007
    Posts
    15

    Re: Unable to count numbers in a hierarchy where links are only indirectly established

    Hi - have created a second template that I hope clearly articulates the ask
    Last edited by Marcos Aristotelous; 11-07-2013 at 03:47 PM. Reason: explain file is attached in next post

  6. #6
    Registered User
    Join Date
    09-13-2012
    Location
    London, England
    MS-Off Ver
    Excel 2007
    Posts
    15

    Re: Unable to count numbers in a hierarchy where links are only indirectly established


+ 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. Unable to break links completely
    By Emmeline in forum Word Formatting & General
    Replies: 3
    Last Post: 12-30-2010, 05:43 AM
  2. [solved] unable to create any wookbook links
    By simpson in forum Excel General
    Replies: 1
    Last Post: 03-23-2010, 02:17 PM
  3. Unable to input external links
    By ianm in forum Excel General
    Replies: 2
    Last Post: 12-18-2009, 10:26 AM
  4. [SOLVED] Unable to break links
    By GHawkins in forum Excel Formulas & Functions
    Replies: 0
    Last Post: 04-21-2006, 02:25 PM
  5. [SOLVED] How can I lock a date that has been established by the 'today ()'.
    By ENT3041 in forum Excel General
    Replies: 5
    Last Post: 01-04-2005, 07: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