Excel's absence schedule template: how do I omit a "key" from being counted in the table?

%3CLINGO-SUB%20id%3D%22lingo-sub-2273304%22%20slang%3D%22en-US%22%3EExcel's%20absence%20schedule%20template%3A%20how%20do%20I%20omit%20a%20%22key%22%20from%20being%20counted%20in%20the%20table%3F%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-2273304%22%20slang%3D%22en-US%22%3E%3CP%3EHello%2C%26nbsp%3B%3C%2FP%3E%3CP%3EI%20am%20developing%20a%20schedule%20for%20staff%20at%20work.%20In%20the%20template%20(found%20here%3A%26nbsp%3B%3CA%20href%3D%22https%3A%2F%2Ftemplates.office.com%2Fen-us%2Femployee-absence-schedule-tm03987167%22%20target%3D%22_blank%22%20rel%3D%22noopener%20noreferrer%22%3Ehttps%3A%2F%2Ftemplates.office.com%2Fen-us%2Femployee-absence-schedule-tm03987167%3C%2FA%3E)%20I%20want%20to%20document%20days%20that%20our%20staff%20reports%20to%20the%20office%2C%20but%20I%20don't%20want%20those%20days%20counted%20in%20the%26nbsp%3B%3CEM%3Etotal%3C%2FEM%3E%20column.%20What%20do%20I%20do%3F%26nbsp%3B%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-LABS%20id%3D%22lingo-labs-2273304%22%20slang%3D%22en-US%22%3E%3CLINGO-LABEL%3EExcel%3C%2FLINGO-LABEL%3E%3C%2FLINGO-LABS%3E
New Contributor

Hello, 

I am developing a schedule for staff at work. In the template (found here: https://templates.office.com/en-us/employee-absence-schedule-tm03987167) I want to document days that our staff reports to the office, but I don't want those days counted in the total column. What do I do? 

4 Replies

@Damien1020  The easiest way is to subtract the that number using -COUNTIF(range, "in office code") so in the attached example I added "O" as the key for in office and changed the total count formula to be:

=COUNTA(January!$C7:$AG7)-COUNTIF(January[@[1]:[31]],"O")
Wonderful! I will be using =COUNTA(January!$C7:$AG7)-SUM(COUNTIF(C7:AG7,{"O"}). Thank you!
Do you have a formula for the subtotal? I would like a formula that excludes "O." Much appreciated!

@Damien1020 you can do the same thing:

=SUBTOTAL(103,E$7:E$11)-COUNTIF(E$7:E$11,"O")

I updated Jan tab in the attached.