Option Explicit
Sub SkipBlank()
Dim to_use As String
Dim cell, data, target As Range
Set target = Range("a1", "a10")
Set data = Range("b1")
For Each cell In target
If cell.Value <> "" Then
to_use = cell.Value
data.Value = to_use
Set data = data.Offset(1, 0)
End If
Next
End Sub
Sub Compare()
Dim i As Long
For i = 2 To 302
If Range("B" & i).Value >= Range("F" & i).Value Then
Range("O" & i) = Range("F" & i).Value
End If
Next
End Sub
Hi EuEdu,
Thanks for your code. It does work as advertised.
Thanks again,
-Art