Jasper Sommer
Jasper Sommer

Reputation: 67

Getting the number of values not in a list

I'm trying to have a function count the number of values that are not present in a list. spreadsheet

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

Answers (1)

Scott Craner
Scott Craner

Reputation: 152545

Flip the references:

=SUMPRODUCT(--ISNA(MATCH(H2:H10,J2:J4,0)))

Or

=SUMPRODUCT(--(COUNTIF(J2:J4,H2:H10)=0))

Upvotes: 2

Related Questions