kumara_faith
Well-known Member
- Joined
- Aug 19, 2006
- Messages
- 955
- Office Version
- 365
Hi ,
My current input sheet looks as below:
I need to summarize the headcount in two tables. The first table is as below:
In the table above, I have managed to utilize the solution provided earlier for column J. The headcount is Nashville is only two because Kelly's primary branch is New York and she will be accounted for in New York and not Nashville. The same will apply for John.
The rest of the columns are job grades for all employees. The job grades should also remove any duplicates. For example, Kelly is job grade 3B and John is also 3B. So job grade 3B should only show 2 which is one for New York and one for Beoumont. I tried modifying the existing formula as below but did not work:
Is there a way to modify the formula to show the desired value for the job grades?
In the second table, I need to summarize as follows:
The current formula I am using shows incorrect value. For example, I only have two branch heads which is Kelly and John. Therefore the correct value should be one in New York and one in Beoumont. Example , Kelly takes care of both New York and Nashville but her primary branch is New York and therefore should be allocated only in New York. The same should apply for the employment status of contract and permanent. We have only 6 permanent staffs and not 8 as Kelly and John is counted as each one and not double.
Is there a way to modify the existing formula to show the correct value for Branch Head, Permanent and Contract ?
Appreciate all the help.?
My current input sheet looks as below:
Book1 | ||||||||
---|---|---|---|---|---|---|---|---|
B | C | D | E | F | G | |||
3 | Branch | Name | Employment Status | Primary Branch | HR Position | Job Grade | ||
4 | New York | Kelly | Permanent | New York | Branch Head | 3B | ||
5 | New York | Michelle | Contract | Executive | 1A | |||
6 | New York | Michael | Permanent | Executive | 1A | |||
7 | Beoumont | John | Permanent | Beoumont | Branch Head | 3B | ||
8 | Beoumont | Jenny | Permanent | Executive | 2B | |||
9 | Beoumont | Josh | Permanent | Executive | 2B | |||
10 | Beoumont | Maria | Permanent | Executive | 2B | |||
11 | Chicago | John | Permanent | Branch Head | 3B | |||
12 | Chicago | Valdez | Contract | Executive | 1B | |||
13 | Chicago | Juarez | Contract | Executive | 1A | |||
14 | Nashville | Manuel | Contract | Executive | 2B | |||
15 | Nashville | Thomas | Contract | Executive | 2A | |||
16 | Nashville | Kelly | Permanent | Branch Head | 3B | |||
Sheet1 |
I need to summarize the headcount in two tables. The first table is as below:
Cell Formulas | ||
---|---|---|
Range | Formula | |
J4:J7 | J4 | =LET(p,FILTER($C$4:$C$16,($E$4:$E$16<>"")*($E$4:$E$16<>I4)),COUNT(FILTER(ROW($C$4:$C$16),($B$4:$B$16=I4)*(ISNA(MATCH($C$4:$C$16,p,0)))))) |
In the table above, I have managed to utilize the solution provided earlier for column J. The headcount is Nashville is only two because Kelly's primary branch is New York and she will be accounted for in New York and not Nashville. The same will apply for John.
The rest of the columns are job grades for all employees. The job grades should also remove any duplicates. For example, Kelly is job grade 3B and John is also 3B. So job grade 3B should only show 2 which is one for New York and one for Beoumont. I tried modifying the existing formula as below but did not work:
Excel Formula:
=LET(p,FILTER($C$4:$C$16,($E$4:$E$16<>"")*($E$4:$E$16<>I4)),COUNT(FILTER(ROW($C$4:$C$16),($B$4:$B$16=I4)*(ISNA(MATCH($C$4:$C$16,p,0))))))*COUNTIFS(B4:B16,I4,G4:G16,K3)
Is there a way to modify the formula to show the desired value for the job grades?
In the second table, I need to summarize as follows:
Cell Formulas | ||
---|---|---|
Range | Formula | |
J11:J14 | J11 | =COUNTIFS($B$4:$B$16,I11,$F$4:$F$16,J$10) |
The current formula I am using shows incorrect value. For example, I only have two branch heads which is Kelly and John. Therefore the correct value should be one in New York and one in Beoumont. Example , Kelly takes care of both New York and Nashville but her primary branch is New York and therefore should be allocated only in New York. The same should apply for the employment status of contract and permanent. We have only 6 permanent staffs and not 8 as Kelly and John is counted as each one and not double.
Is there a way to modify the existing formula to show the correct value for Branch Head, Permanent and Contract ?
Appreciate all the help.?