Hello, I'm not so sure if I understood your question, but, to do an inverse of your countif, meaning counting the numbers you didn't want to include in your countif function, you can use this formula:
=COunt(A1:A10) - Countif(A1:A10, criteria)
There you can count the remaining items you didn't want to include in your countif. You can also check
https://www.efinancialmodels.com/kno...tion-in-excel/ for more info on countif.
Hope this helps!