Search code examples
arraysgoogle-sheetsfiltergoogle-sheets-formulacounting

How to get count of elements in columnA which are not present in ColumnB


I have two columns:

A         B
Hello    Good
How      Hello
Are      Morning
You      You

I want the count of elements in A which are not present in B (How , Are here), The answer would be 2 in this case.


Solution

  • which are not present in B

    =COUNTA(IFERROR(FILTER(A1:A, NOT(COUNTIF(B1:B, A1:A)))))
    

    0