View Single Post
  #3   Report Post  
Posted to microsoft.public.excel.worksheet.functions
T. Valko T. Valko is offline
external usenet poster
 
Posts: 15,768
Default How do I count # of cells with same value other column?

Try this...

=SUMPRODUCT(--(B1:B5=A1:A5))

--
Biff
Microsoft Excel MVP


"aganoe" wrote in message
...
In column A, I have values equal to either YES, NO or NA. In column B, I
have values equal to either YES, NO or NA. I want to count the # of cells
in
column B that equal to their counterpart in column A. For example: A
B
1 yes yes
2 no no
3 na na
4 yes no
5 Total I want should be 3 as B1=A1 count, B2=A2
count, B3 = A3, B4 ? A4

Thanks in advance!