executing the code below allows me to delete rows based on a certain column in that row being a certain value, but deleting the row essentially puts the cell in the row below where it should be. Then wen "next cell" is executed, im moving 2 rows ahead and i skip the one I actually want to check. Is there a way to put a line of code indicated below to bring back the reference to where I want it if the "cell.EntireRow.Delete" line is executed?
Sub DataRedux()
Dim cell As Range, i, j As Long
i = Range("a2").Value
For Each cell In Range("a2:a9999")
If cell.Value = i Then
cell.EntireRow.Delete
'looking for a line of code to put here to account for the index jump created by deleting the row
Else: Exit For
End If
Next cell
End Sub