Count the blanks based on criteria

zinah

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

I have below table which has management chain levels from 2 to 8, and managers 11 managers. What I need to know is how to calculate the blank cells under Management Chain Level 03 for each manager. Meaning, if I filter Manager A, and filter Management Chain Level 03 by blank only, the result should be 4. I did pivot table to get the results of blanks for each manager, but the challenge is I need to count the blanks of each column (C-H) for each manager. Is there any way that could help rather than painfully do pivot for each level separately?

Layers under Management Level.xlsx
ABCDEFGHIJKLMNO
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 A6
42Manager BEmployeeManager B6
53Manager CEmployeeEmployeeEmployeeManager C5
64Manager DEmployeeEmployeeManager D4
75Manager EEmployeeEmployeeEmployeeManager E4
86Manager FEmployeeEmployeeEmployeeEmployeeManager F4
97Manager GEmployeeEmployeeEmployeeManager G3
108Manager HManager H0
119Manager IEmployeeEmployeeEmployeeEmployeeManager I4
1210Manager JManager J0
1311Manager KEmployeeEmployeeEmployeeEmployeeEmployeeEmployeeManager K6
1412Manager AEmployeeEmployee
1513Manager BEmployeeEmployeeEmployeeEmployee
1614Manager CEmployeeEmployeeEmployee
1715Manager DEmployeeEmployeeEmployee
1816Manager EEmployeeRow LabelsCount of Employee ID
1917Manager FEmployeeEmployeeEmployeeEmployeeManager A11
2018Manager GEmployeeEmployee7
2119Manager H(blank)4
2220Manager IEmployeeEmployeeEmployeeEmployeeManager B15
2321Manager JEmployee5
2422Manager KEmployeeEmployee(blank)10
2523Manager AEmployeeEmployeeManager C7
2624Manager BEmployeeEmployeeEmployeeEmployeeEmployeeEmployee5
2725Manager CEmployeeEmployeeEmployeeEmployeeEmployee(blank)2
2826Manager DEmployeeEmployeeEmployeeEmployeeManager D6
2927Manager EEmployeeEmployeeEmployeeEmployee4
3028Manager FEmployeeEmployeeEmployeeEmployee(blank)2
3129Manager GEmployeeManager E8
3230Manager HEmployee6
3331Manager IEmployeeEmployee(blank)2
3432Manager JManager F8
3533Manager KEmployeeEmployeeEmployee5
3634Manager AEmployeeEmployee(blank)3
3735Manager BEmployeeEmployeeEmployeeManager G8
3836Manager CEmployeeEmployeeEmployeeEmployee5
3937Manager DEmployeeEmployee(blank)3
4038Manager EEmployeeManager H8
4139Manager FEmployeeEmployeeEmployeeEmployee(blank)8
4240Manager GEmployeeManager I10
4341Manager HEmployee6
4442Manager IEmployeeEmployee(blank)4
4543Manager JManager J8
4644Manager KEmployeeEmployeeEmployeeEmployeeEmployeeEmployee(blank)8
4745Manager EEmployeeManager K11
4846Manager FEmployee6
4947Manager GEmployee(blank)5
5048Manager HGrand Total100
5149Manager IEmployeeEmployee
5250Manager J
5351Manager KEmployeeEmployeeEmployeeEmployeeEmployeeEmployee
5452Manager AEmployeeEmployeeEmployeeEmployeeEmployee
5553Manager A
5654Manager AEmployeeEmployeeEmployeeEmployee
5755Manager A
5856Manager AEmployeeEmployeeEmployee
5957Manager A
6058Manager A
6159Manager B
6260Manager B
6361Manager B
6462Manager BEmployeeEmployeeEmployeeEmployeeEmployeeEmployee
6563Manager B
6664Manager B
6765Manager B
6866Manager B
6967Manager B
7068Manager B
7169Manager B
7270Manager CEmployee
7371Manager C
7472Manager C
7573Manager D
7674Manager D
7775Manager E
7876Manager F
7977Manager G
8078Manager H
8179Manager I
8280Manager J
8381Manager K
8482Manager EEmployeeEmployeeEmployeeEmployee
8583Manager FEmployee
8684Manager G
8785Manager H
8886Manager IEmployee
8987Manager J
9088Manager K
9189Manager E
9290Manager F
9391Manager G
9492Manager H
9593Manager I
9694Manager J
9795Manager K
9896Manager K
9997Manager K
10098Manager KEmployee
10199Manager I
102100Manager I
Sheet1
Cell Formulas
RangeFormula
O3:O13O3=MAX(MMULT(($B$3:$B$1000=N3)*($C$3:$H$1000<>""),SEQUENCE(6,,,0)))
 

Excel Facts

What does custom number format of ;;; mean?
Three semi-colons will hide the value in the cell. Although most people use white font instead.
How about
+Fluff 1.xlsm
ABCDEFGHIJKLMNOPQRSTU
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/LayersLevel 3Level 4Level 5Level 6Level 7Level 8
31Manager AEmployeeEmployeeEmployeeEmployeeEmployeeEmployeeManager A64478910
42Manager BEmployeeManager B6101111121314
53Manager CEmployeeEmployeeEmployeeManager C5233667
64Manager DEmployeeEmployeeManager D4224566
75Manager EEmployeeEmployeeEmployeeManager E4255788
86Manager FEmployeeEmployeeEmployeeEmployeeManager F4344488
97Manager GEmployeeEmployeeEmployeeManager G3377888
108Manager HManager H0888888
119Manager IEmployeeEmployeeEmployeeEmployeeManager I445881010
1210Manager JManager J0888888
1311Manager KEmployeeEmployeeEmployeeEmployeeEmployeeEmployeeManager K6568888
1412Manager AEmployeeEmployee
1513Manager BEmployeeEmployeeEmployeeEmployee
1614Manager CEmployeeEmployeeEmployee
1715Manager DEmployeeEmployeeEmployee
1816Manager EEmployee
1917Manager FEmployeeEmployeeEmployeeEmployee
2018Manager GEmployee
2119Manager H
2220Manager IEmployeeEmployeeEmployeeEmployee
2321Manager J
2422Manager KEmployeeEmployee
2523Manager AEmployeeEmployee
2624Manager BEmployeeEmployeeEmployeeEmployeeEmployee
2725Manager CEmployeeEmployeeEmployeeEmployeeEmployee
2826Manager DEmployeeEmployeeEmployeeEmployee
2927Manager EEmployeeEmployeeEmployee
3028Manager FEmployeeEmployeeEmployeeEmployee
3129Manager GEmployee
3230Manager H
3331Manager IEmployeeEmployee
3432Manager J
3533Manager KEmployeeEmployee
3634Manager AEmployeeEmployee
3735Manager BEmployeeEmployeeEmployee
3836Manager CEmployeeEmployeeEmployee
3937Manager DEmployeeEmployee
4038Manager EEmployee
4139Manager FEmployeeEmployeeEmployeeEmployee
4240Manager GEmployee
4341Manager H
4442Manager IEmployeeEmployee
4543Manager J
4644Manager KEmployeeEmployeeEmployeeEmployeeEmployeeEmployee
4745Manager EEmployee
4846Manager F
4947Manager GEmployee
5048Manager H
5149Manager IEmployeeEmployee
5250Manager J
5351Manager KEmployeeEmployeeEmployeeEmployeeEmployeeEmployee
5452Manager AEmployeeEmployeeEmployeeEmployeeEmployee
5553Manager A
5654Manager AEmployeeEmployeeEmployeeEmployee
5755Manager A
5856Manager AEmployeeEmployeeEmployee
5957Manager A
6058Manager A
6159Manager B
6260Manager B
6361Manager B
6462Manager BEmployeeEmployeeEmployeeEmployeeEmployeeEmployee
6563Manager B
6664Manager B
6765Manager B
6866Manager B
6967Manager B
7068Manager B
7169Manager B
7270Manager CEmployee
7371Manager C
7472Manager C
7573Manager D
7674Manager D
7775Manager E
7876Manager F
7977Manager G
8078Manager H
8179Manager I
8280Manager J
8381Manager K
8482Manager EEmployeeEmployeeEmployeeEmployee
8583Manager FEmployee
8684Manager G
8785Manager H
8886Manager IEmployee
8987Manager J
9088Manager K
9189Manager E
9290Manager F
9391Manager G
9492Manager H
9593Manager I
9694Manager J
9795Manager K
9896Manager K
9997Manager K
10098Manager KEmployee
10199Manager I
102100Manager I
Data
Cell Formulas
RangeFormula
O3:O13O3=MAX(MMULT(($B$3:$B$1000=N3)*($C$3:$H$1000<>""),SEQUENCE(6,,,0)))
P3:U13P3=COUNTIFS($B$3:$B$102,$N3,C$3:C$102,"")
 
Upvote 0
Solution
How about
+Fluff 1.xlsm
ABCDEFGHIJKLMNOPQRSTU
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/LayersLevel 3Level 4Level 5Level 6Level 7Level 8
31Manager AEmployeeEmployeeEmployeeEmployeeEmployeeEmployeeManager A64478910
42Manager BEmployeeManager B6101111121314
53Manager CEmployeeEmployeeEmployeeManager C5233667
64Manager DEmployeeEmployeeManager D4224566
75Manager EEmployeeEmployeeEmployeeManager E4255788
86Manager FEmployeeEmployeeEmployeeEmployeeManager F4344488
97Manager GEmployeeEmployeeEmployeeManager G3377888
108Manager HManager H0888888
119Manager IEmployeeEmployeeEmployeeEmployeeManager I445881010
1210Manager JManager J0888888
1311Manager KEmployeeEmployeeEmployeeEmployeeEmployeeEmployeeManager K6568888
1412Manager AEmployeeEmployee
1513Manager BEmployeeEmployeeEmployeeEmployee
1614Manager CEmployeeEmployeeEmployee
1715Manager DEmployeeEmployeeEmployee
1816Manager EEmployee
1917Manager FEmployeeEmployeeEmployeeEmployee
2018Manager GEmployee
2119Manager H
2220Manager IEmployeeEmployeeEmployeeEmployee
2321Manager J
2422Manager KEmployeeEmployee
2523Manager AEmployeeEmployee
2624Manager BEmployeeEmployeeEmployeeEmployeeEmployee
2725Manager CEmployeeEmployeeEmployeeEmployeeEmployee
2826Manager DEmployeeEmployeeEmployeeEmployee
2927Manager EEmployeeEmployeeEmployee
3028Manager FEmployeeEmployeeEmployeeEmployee
3129Manager GEmployee
3230Manager H
3331Manager IEmployeeEmployee
3432Manager J
3533Manager KEmployeeEmployee
3634Manager AEmployeeEmployee
3735Manager BEmployeeEmployeeEmployee
3836Manager CEmployeeEmployeeEmployee
3937Manager DEmployeeEmployee
4038Manager EEmployee
4139Manager FEmployeeEmployeeEmployeeEmployee
4240Manager GEmployee
4341Manager H
4442Manager IEmployeeEmployee
4543Manager J
4644Manager KEmployeeEmployeeEmployeeEmployeeEmployeeEmployee
4745Manager EEmployee
4846Manager F
4947Manager GEmployee
5048Manager H
5149Manager IEmployeeEmployee
5250Manager J
5351Manager KEmployeeEmployeeEmployeeEmployeeEmployeeEmployee
5452Manager AEmployeeEmployeeEmployeeEmployeeEmployee
5553Manager A
5654Manager AEmployeeEmployeeEmployeeEmployee
5755Manager A
5856Manager AEmployeeEmployeeEmployee
5957Manager A
6058Manager A
6159Manager B
6260Manager B
6361Manager B
6462Manager BEmployeeEmployeeEmployeeEmployeeEmployeeEmployee
6563Manager B
6664Manager B
6765Manager B
6866Manager B
6967Manager B
7068Manager B
7169Manager B
7270Manager CEmployee
7371Manager C
7472Manager C
7573Manager D
7674Manager D
7775Manager E
7876Manager F
7977Manager G
8078Manager H
8179Manager I
8280Manager J
8381Manager K
8482Manager EEmployeeEmployeeEmployeeEmployee
8583Manager FEmployee
8684Manager G
8785Manager H
8886Manager IEmployee
8987Manager J
9088Manager K
9189Manager E
9290Manager F
9391Manager G
9492Manager H
9593Manager I
9694Manager J
9795Manager K
9896Manager K
9997Manager K
10098Manager KEmployee
10199Manager I
102100Manager I
Data
Cell Formulas
RangeFormula
O3:O13O3=MAX(MMULT(($B$3:$B$1000=N3)*($C$3:$H$1000<>""),SEQUENCE(6,,,0)))
P3:U13P3=COUNTIFS($B$3:$B$102,$N3,C$3:C$102,"")
I cannot thank you enough for your usual prompt support :), it worked perfectly great and I even added more criteria :)
 
Upvote 0
You're welcome & thanks for the feedback.
 
Upvote 0

Forum statistics

Threads
1,223,908
Messages
6,175,306
Members
452,633
Latest member
DougMo

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