Search : in
By :

Count the matches in two excel columns

Last answer on Oct 19, 2009 1:29:37 am BST 3542, on Oct 18, 2009 4:11:56 am BST 
 Report this message to moderators

Hello,
I am trying to compare the numbers in e82:i83 to numbers in e109:n110 and count the number of matches with the total to show in another cell, n82. I am running windows XP and Excel 97. It seems simple to me but I have tried everything I know and have read with no satisfactory results. Any help is appreciated.

3542

Configuration: Windows XP Internet Explorer 8.0

Best answers for « Count the matches in two excel columns » in :
Delete duplicates in an Excel column ShowDelete duplicates in an Excel column To remove duplicates in an Excel column: Click on the Data menu Filter Advanced Filter In this menu, select the column where the duplicates Check the box "Extract without duplication"...
Excel – Comparing cell A1 to entire A column in Sheet 2 ShowExcel – Comparing cell A1 to entire A column in Sheet 2 Issue Solution Note Issue I have been trying to compare sheet1 A2 to sheet2 A2 through A500 and if it exists somewhere in sheet2's a col then copy that entire row to a new sheet....
Basic Excel Formulas ShowBasic Excel Formulas Below are some basic formulas for Microsoft excel: Basic formula : ADDITION cell A1 to A10 = sum (A1: A10) AVERAGE cell A1 to A10 = average (A1: A10) MAXIMUM cell A1 to A10 = max (A1: A10) MINIMUM...

1

 venkat1926, on Oct 19, 2009 1:29:37 am BST

I wonder whether your ranges are correct. The two ranges
overlap.

any how I have given the macro. change to correct ranges.

Sub test()
Dim r As Range, r1 As Range, c As Range, j As Integer
Dim cfind As Range
Range("N82").Clear
Set r = range("E82:I183")
Set r1 = range("E109:N110")
For Each c In r
Set cfind = r1.Cells.Find(what:=c.Value, lookat:=xlWhole)
If Not cfind Is Nothing Then j = j + 1
Next c
Range("N82") = j
End Sub

Reply to venkat1926