I am trying to delete cell data duplicates in a column. I don't want to delete the cell or row just remove the data in that cell. I have the below macro that kinda works but deletes the data from the top, leaving one at the bottom. I need to have this reversed. Any help would be appreciated....
a>
a>
a>a
b>
b>
b>b
Sub test()
finalrow = Range("a65536").End(xlUp).Row
For x = 1 To finalrow
cd1 = Range("d" & x).Value
cd2 = Range("d" & x + 1).Value
cd3 = cd2
If cd1 = cd2 Then
Range("d" & x).Value = " "
End If
Next x
End Sub
a>
a>
a>a
b>
b>
b>b
Sub test()
finalrow = Range("a65536").End(xlUp).Row
For x = 1 To finalrow
cd1 = Range("d" & x).Value
cd2 = Range("d" & x + 1).Value
cd3 = cd2
If cd1 = cd2 Then
Range("d" & x).Value = " "
End If
Next x
End Sub