I have a detail table that shows monthly salaries by month across the top and individual staff members with department down the side . I'm creating a summary table that counts the number of staff in a table by date across the top and department down the side (salary greater than zero).
I've done it to show total salaries by month and deparment using sumif and the index/match combination to set the column (see below for sample) but sadly countif doesn't have the same parameters as sumif.
=SUMIF(StaffDetail!$A$5:$A$103,$A14,INDEX(StaffDetail!$I$5:$BD$5,MATCH(B$13,StaffDetail!$I$1:$BD$1,0)))
Thoughts on how to handle this?
I've done it to show total salaries by month and deparment using sumif and the index/match combination to set the column (see below for sample) but sadly countif doesn't have the same parameters as sumif.
=SUMIF(StaffDetail!$A$5:$A$103,$A14,INDEX(StaffDetail!$I$5:$BD$5,MATCH(B$13,StaffDetail!$I$1:$BD$1,0)))
Thoughts on how to handle this?