Try:
Sub mattmagoo()
Dim i As Long, y As Long
y = Range("D" & Rows.Count).End(3).row
For i = y To 2 Step -1
If Cells(i, "D").Font.Underline = xlUnderlineStyleSingle Then
If Cells(i - 1, "D").Font.Underline = xlUnderlineStyleSingle Then
Cells(i - 1, "D") = Cells(i - 1, "D") & " " & Cells(i, "D")
Cells(i, "D").ClearContents
End If
End If
Next i
Range("D2:D" & y).SpecialCells(4).EntireRow.Delete
For i = y To 2 Step -1
If Cells(i, "D").Font.Underline = xlUnderlineStyleSingle Then GoTo zz
If Cells(i, "A") = "" Then
Cells(i - 1, "D") = Cells(i - 1, "D") & " " & Cells(i, "D")
Range(Cells(i, "E"), Cells(i, "F")).Cut Cells(i - 1, "E")
Rows(i).Delete
End If
zz:
Next i
End Sub
Note: Underline readded.
Bookmarks