Let's say you have Grades in B3:B13 and codes in C3:H13.
For the summary, Grades 1 to 5 are in C15:G15.
In C16: =SUM(($B$3:$B$13=C15)*($C$3:$H$13="SICK"))
Fill to the right.
This browser is no longer supported.
Upgrade to Microsoft Edge to take advantage of the latest features, security updates, and technical support.
Hi!
I'm trying to make a tool to auto-review absence and sickness in the team, and I can't for the life of me figure out how to count absence totals the way I want to. I've made a (much) smaller fake sample to try and explain what I want to do:
I need to get the total, by "Grade" of sick days taken (i.e., a table with the Grades as column headings and the sick day totals for each on a row underneath) Ideally, I'd like to be able to use a formula that can find all the Grade 1 staff, for example, then count all the cells containing SICK (as one example, there are other types I would also need to count) in those rows. I've tried COUNTIFS but that just kept returning 0 or errors since the "Grade" range was fewer columns than the data I wanted to count, and there are wayyyyyyy too many columns and absence types to do it column by column. To my understanding INDEX(MATCH()) wouldn't work either as it can only find one row? Help is much appreciated!
Let's say you have Grades in B3:B13 and codes in C3:H13.
For the summary, Grades 1 to 5 are in C15:G15.
In C16: =SUM(($B$3:$B$13=C15)*($C$3:$H$13="SICK"))
Fill to the right.
Hi,
In cell I1, enter this formula
=PIVOTBY(,A2:A12,BYROW(B2:G12,LAMBDA(a,COUNTIF(a,"sick"))),SUM)
Hope this helps.