SUMPRODUCT function
TheSUMPRODUCT functionis a versatile function thathandles array operations nativelywithout any special array syntax.
Its behavior is simple: it multiplies, then sums the product of arrays.
The formula in G7 is:
This formula returns 2, since there are two non-matching cells.