I have a spreadsheet with column A being the names of my employees and all other columns are punch times. There are two columns per day (in and out). If someone takes a lunch, the entry will be 3:00|5:00 to indicate that they punched in at both 3am and 5am. Yes, that is a ridiculously silly report, but it's what I have. I want to count the number of times someone does NOT take a break (for legal reasons). So I have all this info on one sheet and then another index sheet with the employee names and this formula that I'm trying to write. I really need countifs to work more like sumifs. Meaning count the number of cells in any row where column A in that row matches a given name. Here are some failures that I have written:
=SUMPRODUCT(--('TS Summary'!A2:A10000=A3),--('TS Summary'!B2:ZZ10000="*|*"))/2
=SUMIFS('TS Summary'!A2:ZZ1000,'TS Summary'!A2:A1000,A4,'TS Summary'!B2:ZZ1000,"*|*")/2
=SUMIFS('TS Summary'!A2:A1000,'TS Summary'!A2:A1000,A7,'TS Summary'!A2:B1000,"*|*")/2
=COUNTIFS('TS Summary'!B2:ZZ10000,"*|*",'TS Summary'!A2:ZZ10000,A8)/2
The /2 at the end is because it would otherwise count both in and out but I those are always in pairs.
I think I've done enough research to know that only SUMPRODUCT is going to save the day here, but I don't know anything about SUMPRODUCT and after looking at over 100 examples on various sites and going 10 pages deep into Google searches, I think I can say that no one has documented how to do this. So I'm writing this firstly in hopes of getting some help, and secondly so that when it is resolved (by myself or with help) it will be documented for the next person who tries to tear out their hair!
For reference (and to make this searchable in the future), the HR system with these reports is Humanity. And some search terms might be sumproduct to sum a matrix where column A equals a specific term; and countifs nested in sumifs.

|character in them (divided by two for in/out)?" - JNevill