CountIF matching cells

  • Thread starter Thread starter Rod
  • Start date Start date
R

Rod

I have two columns of data. I want to count how many times
a datum in the first column matches the corresponding
datum in the second column's corresponding cell. e.g.
Column A Column E
3 7
4 4
2 5
21 21
4 12
3 3

The return should be 3 since the numbers 4, 21 and 3 in
column A are matched with the same numbers across from
them in column E.

Thanks in advance for any help possible.
 
=SUM(IF(A2:A10=E2:E10,1,0))
After typing it in, hit Ctrl+Shift+Enter

<-*-><-*-><-*-><-*-><-*-><-*-><-*-><-*->
Hope this helps!
Anne Troy (better known as Dreamboat)
Author: Dreamboat on Word
Email: Dreamboat*at*Piersontech.com
Web: www.TheOfficeExperts.com
<-*-><-*-><-*-><-*-><-*-><-*-><-*-><-*->
 
Ignore mine. Frank's got it right, I'm sure. :)

Anne Troy said:
=SUM(IF(A2:A10=E2:E10,1,0))
After typing it in, hit Ctrl+Shift+Enter

<-*-><-*-><-*-><-*-><-*-><-*-><-*-><-*->
Hope this helps!
Anne Troy (better known as Dreamboat)
Author: Dreamboat on Word
Email: Dreamboat*at*Piersontech.com
Web: www.TheOfficeExperts.com
<-*-><-*-><-*-><-*-><-*-><-*-><-*-><-*->
 
Inverted I think Anne.

Here's an alternative

=SUM(IF(ISBLANK(A2:A10),0,IF(A2:A10=E2:E10,1,0)))

which is an array formula, so commit with Ctrl-Shift-Enter

--

HTH

Bob Phillips
... looking out across Poole Harbour to the Purbecks
(remove nothere from the email address if mailing direct)
 
Thanks to both of you, Bob and Anne, for your help. The
alternative suggested by Bob worked beautifully. We are
using this to analyze student test scores. Again, much
thanks.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Similar Threads

matching Multiple columns in Excel. 1
Transpose, but how? 0
How to determine the occurrence? 9
pulling data 3
pulling from one sheet to another 3
Formula needed 4
Countif 3
Excel A CountIF question... I think 2

Back
Top