Compare two columns in excel?

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

Was this solution helpful to you?

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:

Just Added Q & A:

Find solution

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.