Organization Chart Formula

ShogunStealth

New Member
Joined
Nov 6, 2021
Messages
23
Office Version
  1. 2019
Platform
  1. Windows
I have simple spreadsheet with 3 columns needing to calculate a forth column. It represents an organization from the CEO to Mailroom Clerk. The organization could be more up to 3000 staff members (or more). The organization can have 30+ or more reporting levels deep, say from the CEO to Mailroom Clerk. Imagine a company organizational chart. The Columns in the sheet represent the Name of Staff (TEXT) / Unique ID (TEXT/NUMBER) / Parent (TEXT/NUMBER). The type or name of reporting level is not important it is more about the dependencies either directly or indirectly. The forth column is to represent the total number of direct and indirect reports. Therefore the CEO would Total # of Staff - 1. Therefore each of there direct reports which could be department heads / regional managers / supervisor / consultant will have their own total number of direct or indirect reports. If the CEO and Mailroom Clerk have the same name - John Smith this not the same person it based on their respective position within the organization. The list of staff may or may not be ordered or structured in any top down layout therefore any formula that relies on the data being ordered / structured is not desirable, ie the unique ID or the name of the staff may not be arranged from smallest to largest or alphabetical. Even though my linked sample is ordered this was built this way for ease of manually calculating the sample "Reports" column.

I prefer in sheet based formula rather than visual basic solution. I can see that solution is sum + compound/recursive formula but just cannot grasp the reclusive element, is it countifs??

Limitation - Excel 2016, so any later version of functions in excel and not suitable as I have to run it on work environment. I cannot download plugin like solutions either due to network/ firewall restrictions.
 

Attachments

  • Capture.PNG
    Capture.PNG
    14.6 KB · Views: 5
  • Capture.PNG
    Capture.PNG
    14.6 KB · Views: 5

Excel Facts

Can a formula spear through sheets?
Use =SUM(January:December!E7) to sum E7 on all of the sheets from January through December
I have a need to also know the further detail for each staff member in a fifth column. How many levels of management are between themselves and the CEO.
If I reported directly to the CEO my # of levels = 0, but if I reported to departmental manager who then directly reported to the CEO my report levels = 1 ( I become a indirect report)
 
Upvote 0
Here is a simple visual representation of the above data. If on sheet formula is not possible I willing to consider options in VBA, I just might need some help thought.
 

Attachments

  • Capture1.PNG
    Capture1.PNG
    20.3 KB · Views: 2
Upvote 0
Simple.xlsx
ABCDE
1NameIDParentReportsReport levels
2Boss11120
3Supervisor 12141
4Supervisor 23161
5Team Leader 14232
6Team Leader 25322
7Team Leader 36322
8Member47603
9Member58603
10Member69503
11Member710503
12Member811403
13Member912413
14Member10131204
Sheet1
 
Upvote 0

Forum statistics

Threads
1,215,388
Messages
6,124,652
Members
449,177
Latest member
Sousanna Aristiadou

We've detected that you are using an adblocker.

We have a great community of people providing Excel help here, but the hosting costs are enormous. You can help keep this site running by allowing ads on MrExcel.com.
Allow Ads at MrExcel

Which adblocker are you using?

Disable AdBlock

Follow these easy steps to disable AdBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the icon in the browser’s toolbar.
2)Click on the "Pause on this site" option.
Go back

Disable AdBlock Plus

Follow these easy steps to disable AdBlock Plus

1)Click on the icon in the browser’s toolbar.
2)Click on the toggle to disable it for "mrexcel.com".
Go back

Disable uBlock Origin

Follow these easy steps to disable uBlock Origin

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back

Disable uBlock

Follow these easy steps to disable uBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back
Back
Top