Span of Control Count

zinah

Active Member
Joined
Nov 28, 2018
Messages
368
Office Version
  1. 365
Platform
  1. Windows
Hi,

I have a report that have all management levels (management layers) and what I need is to count how many layers under each manager from Management Chain 02. I have the below sample table and want a formula that can help with accomplishing my target. The report I have has more 8000 rows and below is just a sample. And what I need is a formula that can help with the summarization table:

Layers under Management Level.xlsx
ABCDEFGHIJKLMNOP
1Employee Report DataSummarization Table
2Employee IDManagement Chain - Level 02Management Chain - Level 03Management Chain - Level 04Management Chain - Level 05Management Chain - Level 06Management Chain - Level 07Management Chain - Level 08Management Chain - Level 02Spans/Layers
31Manager AEmployeeEmployeeEmployeeEmployeeEmployeeEmployeeManager A
42Manager BEmployeeManager B
53Manager CEmployeeEmployeeEmployeeManager C
64Manager DEmployeeEmployeeManager D
75Manager EEmployeeManager E
86Manager FEmployeeEmployeeEmployeeEmployeeManager F
97Manager GEmployeeManager G
108Manager HEmployeeEmployeeEmployeeEmployeeEmployeeEmployeeManager H
119Manager IEmployeeEmployeeEmployeeEmployeeManager I
1210Manager JEmployeeEmployeeEmployeeEmployeeEmployeeManager J
1311Manager KEmployeeEmployeeEmployeeEmployeeEmployeeEmployeeManager K
1412Manager AEmployeeEmployee
1513Manager BEmployee
1614Manager CEmployeeEmployeeEmployee
1715Manager DEmployeeEmployee
1816Manager EEmployee
1917Manager FEmployeeEmployeeEmployeeEmployee
2018Manager GEmployee
2119Manager HEmployeeEmployeeEmployeeEmployeeEmployeeEmployee
2220Manager IEmployeeEmployeeEmployeeEmployee
2321Manager JEmployeeEmployee
2422Manager KEmployeeEmployee
2523Manager AEmployeeEmployee
2624Manager BEmployee
2725Manager CEmployeeEmployeeEmployee
2826Manager DEmployeeEmployee
2927Manager EEmployee
3028Manager FEmployeeEmployeeEmployeeEmployee
3129Manager GEmployee
3230Manager HEmployeeEmployeeEmployeeEmployeeEmployeeEmployee
3331Manager IEmployeeEmployee
3432Manager JEmployeeEmployee
3533Manager KEmployeeEmployee
3634Manager AEmployeeEmployee
3735Manager BEmployee
3836Manager CEmployeeEmployeeEmployee
3937Manager DEmployeeEmployee
4038Manager EEmployee
4139Manager FEmployeeEmployeeEmployeeEmployee
4240Manager GEmployee
4341Manager HEmployeeEmployee
4442Manager IEmployeeEmployee
4543Manager JEmployeeEmployee
4644Manager KEmployeeEmployeeEmployeeEmployeeEmployeeEmployee
4745Manager EEmployee
4846Manager F
4947Manager GEmployee
5048Manager HEmployeeEmployee
5149Manager IEmployeeEmployee
5250Manager JEmployeeEmployee
5351Manager KEmployeeEmployeeEmployeeEmployeeEmployeeEmployee
Sheet1
 

Excel Facts

Repeat Last Command
Pressing F4 adds dollar signs when editing a formula. When not editing, F4 repeats last command.
How about
Excel Formula:
=SUMPRODUCT(($B$3:$B$1000=O3)*($C$3:$H$1000<>""))
 
Upvote 0
How about
Excel Formula:
=SUMPRODUCT(($B$3:$B$1000=O3)*($C$3:$H$1000<>""))
Thank you for your help, but what I actually need is to count how many management chain under each manager, i.e. Manager A may have 4 spans, Manager B may have 2 and so on, the total span should not exceed 6 since I have 7 management chain and want to count how many chain under management chain 02, does that make sense?
Below is the result I got from your suggested formula:

Summarization Table
Management Chain - Level 02Spans/Layers
Manager A12
Manager B4
Manager C12
Manager D8
Manager E5
Manager F16
Manager G5
Manager H22
Manager I14
Manager J13
Manager K22
 
Upvote 0
Nope, fraid not. What exactly do you mean by a "management chain"
The management chain is the column header, which stand for management layer, each employee has management chains/hierarchy that he/she reports to. What I need to get is all managers under management chain 02 (which is the summary table I have included) and how many chains/layers they have under them. Since I have Management Chain from 02 to 08 and I need to count the layers from 03 to 08, each manager under management chain 02 should not exceed the count of 6. Hope I answered your question.
 
Upvote 0
That still does not tell me what you are trying to do.
Manager A appears 4 times in col B, which row should the formula look at to determine the count?
 
Upvote 0
That still does not tell me what you are trying to do.
Manager A appears 4 times in col B, which row should the formula look at to determine the count?
This is expected as each employee has designated management chain(s), so the managers may appear more than one time since I have listed in this sample list 51 employees. Actually explaining this to you, inspired me to get the right formula which is as below table, thank you so much for the inspiration :)

Layers under Management Level.xlsx
ABCDEFGHIJKLMNOP
1Employee Report DataSummarization Table
2Employee IDManagement Chain - Level 02Management Chain - Level 03Management Chain - Level 04Management Chain - Level 05Management Chain - Level 06Management Chain - Level 07Management Chain - Level 08Spans/LayersManagement Chain - Level 02Spans/Layers
31Manager AEmployeeEmployeeEmployeeEmployeeEmployeeEmployee6Manager A6
42Manager BEmployee1Manager B1
53Manager CEmployeeEmployeeEmployee3Manager C3
64Manager DEmployeeEmployee2Manager D2
75Manager EEmployee1Manager E1
86Manager FEmployeeEmployeeEmployeeEmployee4Manager F4
97Manager GEmployee1Manager G1
108Manager HEmployeeEmployeeEmployeeEmployeeEmployeeEmployee6Manager H6
119Manager IEmployeeEmployeeEmployeeEmployee4Manager I4
1210Manager JEmployeeEmployeeEmployeeEmployeeEmployee5Manager J5
1311Manager KEmployeeEmployeeEmployeeEmployeeEmployeeEmployee6Manager K6
1412Manager AEmployeeEmployee2
1513Manager BEmployee1
1614Manager CEmployeeEmployeeEmployee3
1715Manager DEmployeeEmployee2
1816Manager EEmployee1
1917Manager FEmployeeEmployeeEmployeeEmployee4
2018Manager GEmployee1
2119Manager HEmployeeEmployeeEmployeeEmployeeEmployeeEmployee6
2220Manager IEmployeeEmployeeEmployeeEmployee4
2321Manager JEmployeeEmployee2
2422Manager KEmployeeEmployee2
2523Manager AEmployeeEmployee2
2624Manager BEmployee1
2725Manager CEmployeeEmployeeEmployee3
2826Manager DEmployeeEmployee2
2927Manager EEmployee1
3028Manager FEmployeeEmployeeEmployeeEmployee4
3129Manager GEmployee1
3230Manager HEmployeeEmployeeEmployeeEmployeeEmployeeEmployee6
3331Manager IEmployeeEmployee2
3432Manager JEmployeeEmployee2
3533Manager KEmployeeEmployee2
3634Manager AEmployeeEmployee2
3735Manager BEmployee1
3836Manager CEmployeeEmployeeEmployee3
3937Manager DEmployeeEmployee2
4038Manager EEmployee1
4139Manager FEmployeeEmployeeEmployeeEmployee4
4240Manager GEmployee1
4341Manager HEmployeeEmployee2
4442Manager IEmployeeEmployee2
4543Manager JEmployeeEmployee2
4644Manager KEmployeeEmployeeEmployeeEmployeeEmployeeEmployee6
4745Manager EEmployee1
4846Manager F0
4947Manager GEmployee1
5048Manager HEmployeeEmployee2
5149Manager IEmployeeEmployee2
5250Manager JEmployeeEmployee2
5351Manager KEmployeeEmployeeEmployeeEmployeeEmployeeEmployee6
Sheet1
Cell Formulas
RangeFormula
P3:P13P3=MAXIFS($I$3:$I$53,$B$3:$B$53,O3)
I3:I53I3=COUNTA(C3:H3)
 
Upvote 0
Thanks for that.
You can do that without a helper column, like
Excel Formula:
=MAX(MMULT(($B$3:$B$1000=O3)*($C$3:$H$1000<>""),SEQUENCE(6,,,0)))
 
Upvote 0
Solution
Thanks for that.
You can do that without a helper column, like
Excel Formula:
=MAX(MMULT(($B$3:$B$1000=O3)*($C$3:$H$1000<>""),SEQUENCE(6,,,0)))
Wow, that's even much better, I knew you would have a great formula (as usual), thank you so much for your usual great support, I really learned a lot from you since I joined this forum.
 
Upvote 0

Forum statistics

Threads
1,223,911
Messages
6,175,333
Members
452,636
Latest member
laura12345

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