• Hi All

    Please note that at the Chandoo.org Forums there is Zero Tolerance to Spam

    Post Spam and you Will Be Deleted as a User

    Hui...

  • When starting a new post, to receive a quicker and more targeted answer, Please include a sample file in the initial post.

Subtotal with Countifs

desert rat

New Member
Hi All,

I have a training spreadsheet where it counts those that have completed, not completed or are exempt from the training. See attached spreadsheet.

What I would like to be able to do is filter by the Business Unit to see who has completed, not completed or is exempt.

Without filtering the Countifs formula works:
COUNTIFS(B6:B19,"<>exempt",B6:B19,"<>")

But when adding in the Subtotal function I continually get errors. I have tried many different versions of the below formula with no luck :
SUMPRODUCT(SUBTOTAL(103,OFFSET(F6,ROW(F6:F282)-ROW(F6),0)),(F6:F282,"<>exempt",F6:F282,"<>"))

Any ideas would be great.

Thanks
 

Attachments

  • Training.xlsx
    28.8 KB · Views: 16
Ok I have come up with a work around and just had the Total count all text containing "Completed"
=SUMPRODUCT(SUBTOTAL(3,OFFSET(B6:B19,ROW(B6:B19)-MIN(ROW(B6:B19)),,1)),ISNUMBER(SEARCH("Completed",B6:B19))+0)

Then for Specifically identifying those that are "Completed" and "Not Completed" I went with:
=SUMPRODUCT((B6:B19="Completed")*SUBTOTAL(103,OFFSET(B6,ROW(B6:B19)-MIN(ROW(B6:B19)),0)))
and
=SUMPRODUCT((B6:B19="Not Completed")*SUBTOTAL(103,OFFSET(B6,ROW(B6:B19)-MIN(ROW(B6:B19)),0)))

Might not be the neatest way to do it but it seems to be functioning for now.

Thanks
 
Back
Top