View Single Post
  #4   Report Post  
Posted to microsoft.public.excel.worksheet.functions
Shane Devenshire[_2_] Shane Devenshire[_2_] is offline
external usenet poster
 
Posts: 3,346
Default count if matching text

Hi,

If they are only counted as matches if they are on the same row then

=SUM(N(A1:A5=B1:B5))

Entered as an array (press Shift+Ctrl+Enter to enter the formula)

If the matches are case sensitive (A2 is not equal to a2) then

=SUMPRODUCT(1*EXACT(A1:A5,B1:B5))
or
=SUMPRODUCT(--EXACT(A1:A5,B1:B5))

--
If this helps, please click the Yes button

Cheers,
Shane Devenshire


"Araseli" wrote:

I'm trying to put together a formula that will count the number of times the
data in column a matches c.
I need a total column in this case(row 6) should say 2 because text in
columns a & c only match 3 times

Say i have:
a b c d e
1 c1 c1
2 c2 c1
3 f3 f3
4 p2 f3
5 t4 t4
6