Reputation: 67
I'm trying to have a function count the number of values that are not present in a list.
I've tried using both =SUMPRODUCT(--ISNA(MATCH(J2:J4,H2:H10,0))) and =SUMPRODUCT(--(COUNTIF(H2:H10,J2:J4)=0)) but both just display zeroes.
Upvotes: 1
Views: 850
Reputation: 152545
Flip the references:
=SUMPRODUCT(--ISNA(MATCH(H2:H10,J2:J4,0)))
Or
=SUMPRODUCT(--(COUNTIF(J2:J4,H2:H10)=0))
Upvotes: 2