Sub FORMULEQUATER()
Dim TPério(), TDate(), TCode(), TResp(), LD As Long, LR As Long
TPério = Feuil3.[A1].CurrentRegion.Value
TDate = Feuil10.[A2].Resize([A1000000].End(xlUp).Row - 1).Value
TCode = Feuil10.[I2].Resize(UBound(TDate, 1)).Value
ReDim TResp(1 To UBound(TDate, 1), 1 To 1)
For LR = 1 To UBound(TResp, 1)
For LD = 1 To UBound(TPério, 1)
If TCode(LR, 1) = TPério(LD, 1) And TDate(LR, 1) >= TPério(LD, 2) And TDate(LR, 1) _
<= TPério(LD, 3) Then TResp(LR, 1) = TPério(LD, 4): Exit For
Next LD, LR
Feuil10.[M2].Resize(UBound(TResp)).Value = TResp
End Sub