I have a column with random values that has repeats data in a certain format:
Column 1
A
A
A
A
B
B
C
C
C
A
A
D
D
E
F
F
F
G
...
I tried using
Dim i As Integer
Dim noRows As Integer
'count rows
noRows = Range("B2:B10000").Rows.Count
'delete row entries that are duplicates..
For i = 1 To noRows
If Range("H2").Cells(i + 1, 1) = Range("H2").Cells(i, 1) Then
Range("H2").Cells(i + 1).Resize(1, 2).Clear
End If
Next i
Which I quickly realised would not work at all.
how could I write a code so the output would be:
Column 1
A
[..]
[..]
[..]
B
[..]
C
[..]
[..]
[..]
A
D
[..]
[..]
E
F
[..]
[..]
G
...
Where the [..]s are nulls or zero
Disregard the second "66.63" field which is green, it should be red