简体   繁体   中英

Google Sheets countif: excluding multiple values and counting everything else

I have an attendance sheet with over 250 employees and at the end of the day, I want to be able to count who came to work and who was on leave. of course, each and every one of the employees has their own rest days and shifts, now with that being said, I tried researching and looking around for the best way to count them, the reason I am steering away from query is that the file is heavy and massive to start with so it has to be countif or countifs cause I need the number of the end of the day.

I tried using:

=countif(G3:G11,"<>RD, <>VL")

but it is giving the count of all which doesn't seem right, here is the link to my test sheet I would appreciate any help I can get in this regards

try:

=COUNTA(IFNA(FILTER(G3:G11, NOT(REGEXMATCH(G3:G11, "RD|VL")))))

0

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM