Comparing two columns and filtering unique

trixie2396

New Member
Joined
Jan 8, 2007
Messages
35
So I have these two sets of data... I would like to filter and find only the rows where the ID is the same but the score is different. Is there a way to do that? So in the example below it would have two records after filtered, it would have 137379777 and 013450341

Score ID Score ID
10 128833548 10 128833548
8 034932806 8 034932806
5 137379777 8 137379777
9 031068078 9 031068078
5 013450341 8 013450341
 

Excel Facts

Using Function Arguments with nested formulas
If writing INDEX in Func. Arguments, type MATCH(. Use the mouse to click inside MATCH in the formula bar. Dialog switches to MATCH.
Can you not do something like this, where it'll show a 1 if the ID is the same but the Score is diffferent?

=IF(AND(D2=B2,A2<>C2),1,0)
 
Upvote 0
Not exactly sure what you want , but this will hide the rows you don't want !!!
Code:
Private Sub CommandButton1_Click()
Dim Rng As Range, Dn As Range
Set Rng = Range(Range("A1"), Range("A" & Rows.Count).End(xlUp))
For Each Dn In Rng
    If Dn(, 2) = Dn(, 4) And Dn = Dn(, 3) Then
         Dn.EntireRow.Hidden = True
    End If
Next Dn
End Sub
To Unhide rows
Code:
Private Sub CommandButton2_Click()
Rows.Hidden = False
End Sub
 
Upvote 0

Forum statistics

Threads
1,224,518
Messages
6,179,253
Members
452,900
Latest member
LisaGo

We've detected that you are using an adblocker.

We have a great community of people providing Excel help here, but the hosting costs are enormous. You can help keep this site running by allowing ads on MrExcel.com.
Allow Ads at MrExcel

Which adblocker are you using?

Disable AdBlock

Follow these easy steps to disable AdBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the icon in the browser’s toolbar.
2)Click on the "Pause on this site" option.
Go back

Disable AdBlock Plus

Follow these easy steps to disable AdBlock Plus

1)Click on the icon in the browser’s toolbar.
2)Click on the toggle to disable it for "mrexcel.com".
Go back

Disable uBlock Origin

Follow these easy steps to disable uBlock Origin

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back

Disable uBlock

Follow these easy steps to disable uBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back
Back
Top