How do I compare two columns in Excel and then count the number of matching items?
-
I need to compare values from column C to column D. It needs to count the number of cells in which the text value in column C is the same as in the corresponding row in column D. I already tried =SUM((C2:C200 = D2:D200)) and also some variants of the SUMIF-function, but I can´t get it working...
-
Answer:
I figured that one out myself. But I don't want it the easy way.. because after this, I need to check the same things for columns E through U. :/
Erwipro at Answerbag.com Visit the source
Other answers
The easiest way is to put a formula in E2 that compares the two adjacent cells in Columns C and D: =IF(C2=D2,1,"") Then copy that down to E200 by double clicking on the Fill Handle at the bottom right hand corner of the cell - if there are any blank cells in Column D you will have to drag it down. Next, in a convenient cell, put a formula that counts the number of instances of the number 1 in Column E: =COUNT(E2:E200) You can then hide Column E.
Brian I
Related Q & A:
- How do I compare two tables with the same column definitions in different schemas?Best solution by Database Administrators
- How do I return two UITableViewCells?Best solution by Stack Overflow
- How do I bridge two different amps together?Best solution by ecoustics.com
- How do I put two pictures together vertically?Best solution by Yahoo! Answers
- How can I compare camcorders easily?Best solution by Yahoo! Answers
Just Added Q & A:
- How many active mobile subscribers are there in China?Best solution by Quora
- How to find the right vacation?Best solution by bookit.com
- How To Make Your Own Primer?Best solution by thekrazycouponlady.com
- How do you get the domain & range?Best solution by ChaCha
- How do you open pop up blockers?Best solution by Yahoo! Answers
For every problem there is a solution! Proved by Solucija.
-
Got an issue and looking for advice?
-
Ask Solucija to search every corner of the Web for help.
-
Get workable solutions and helpful tips in a moment.
Just ask Solucija about an issue you face and immediately get a list of ready solutions, answers and tips from other Internet users. We always provide the most suitable and complete answer to your question at the top, along with a few good alternatives below.