Bonsoir,
Je n'ai pas de solution avec les matricielles classiques (en une formule).
Reste la possibilité d'une fonction personnalisée (relativement simple)
Function VENTESTYPE(TType As Range, VtesMod As Range, CrType As String)
Dim TT, VM, i%, j%
Application.Volatile
TT = TType.Value: VM = VtesMod.Value
For i = 1 To UBound(VM, 1)
For j = 1 To UBound(TT, 1)
If TT(j, 2) = VM(i, 1) Then
If TT(j, 1) <> CrType Then VM(i, 2) = 0: Exit For
End If
Next j
Next i
VENTESTYPE = WorksheetFunction.Sum(VM)
End Function
Les arguments sont le tableau Base type-modèle, les tableau des ventes par modèle, le critère type recherché.
Cordialement.