As Olly said, not easy to work without a real sheet.... but I took a stab at it making some guesses. Give this a go?
Sub brianfromla()
Dim ws As Worksheet
Dim lr As Long
Dim i As Long
Set ws = Worksheets("Sheet1") 'change sheet name to the actual name of the sheet with data
lr = ws.Range("D" & Rows.Count).End(xlUp).Row 'change "D" to the column with the SG EOS, SG, TOE OF DITCH info
For i = 2 To lr - 1
If ws.Range("D" & i) = "SG" Then 'change "D" to the column with the SG EOS, SG, TOE OF DITCH info
If ws.Range("D" & i - 1) = "SG EOS" And ws.Range("D" & i + 1) = "TOE OF DITCH" Then ws.Range("D" & i) = "DAYLIGHT" 'change "D" to the column with the SG EOS, SG, TOE OF DITCH info
End If
Next i
End Sub
Bookmarks