Counting in Excel

Y

Yee

I have 2 list of data:

List A List B

A A
B A
C B
X
D


I want to count the number of occurances in List B which
reference in list A. So I should get the answer 3

Hope you understand what I mean. Many thanks
Cheers/Yee
 
F

Frank Kabel

Hi
just an alternative approach: Use the following array formula (entered
with CTRL+SHIFT+ENTER):
=SUMPRODUCT(--(ListB=TRANSPOSE(ListA)))
 
Top