Sub Formule()
Dim cell As Range, DerLigne As Byte
For Each cell In Sheets("Sheet1").Range("I4:I50")
If cell.Value Like "T?" Then
DerLigne = cell.Offset(0, -6).End(xlDown).Row
cell.Offset(1, 0).Resize(DerLigne - cell.Row).FormulaR1C1 = _
"=INDEX(R" & cell.Row + 1 & "C3:R" & DerLigne & _
"C4,MATCH(ROWS(R" & cell.Row + 1 & "C:RC)-1,R" & _
cell.Row + 1 & "C[-7]:R" & DerLigne & "C[-7],0),1)"
cell.Offset(1, 1).Resize(DerLigne - cell.Row).FormulaR1C1 = _
"=INDEX(R" & cell.Row + 1 & "C3:R" & DerLigne & _
"C4,MATCH(ROWS(R" & cell.Row + 1 & "C[-1]:RC[-1])-1,R" _
& cell.Row + 1 & "C[-8]:R" & DerLigne & "C[-8],0),2)"
End If
Next
End Sub