Sub verif_l_h()
Dim cel As Range, deb As String, fin As String, pos As Integer, dec As Integer
With ActiveSheet
For Each cel In .Range("D2:D" & ActiveSheet.Cells(Rows.Count, "D").End(xlUp).Row)
pos = InStr(cel.Value, "x")
If pos > 2 Then
dec = IIf(IsNumeric(Left(cel.Value, 1)), 1, 2)
deb = Mid(cel.Value, dec, pos - dec - 1)
dec = IIf(IsNumeric(Right(cel.Value, 1)), 1, 2)
fin = Mid(cel.Value, pos + 2, Len(cel.Value) - pos - dec)
If Round(deb / fin, 2) <> 0.8 Then
cel.Font.Color = -16776961
Else
cel.Font.ColorIndex = xlAutomatic
End If
End If
Next cel
End With
End Sub