[vba] dim i as long

for i = 2 to 3 Then' or final row you want to loop for
If Cells(i,2).Value = Cells(i,3).Value

'some stuff
End If

Next i[/vba]