Sub format()
Dim Col&, Lig&, C As Range
With ActiveSheet
Lig = .Cells.Find("*", , , , xlByRows, xlPrevious).Row
Col = .Cells.Find("*", , , , xlByColumns, xlPrevious).Column
.Range("E6", .Cells(Lig, Col)).NumberFormat = "0"
For Each C In .Range("E6", .Cells(Lig, Col))
If C.Value >= 0.1 Then C.NumberFormat = "#,##0.00"
Next
.Range("g6:g" & Lig).NumberFormat = "@"
End With
End Sub