Re,Bonjour
Si j'ai tout compris en F3
=SI(A3<=350000;2000;SI(A3<=400000;A3*5/100;SI(A3<=500000;A3*10/100;SI(A3<=600000;A3*15/100;A3*20/100))))
A+ François
Function Impôt(R@) As Currency
Dim B@, T@, I@, n As Byte
Do
With [B4].Offset(n)
T = .Value: B = WorksheetFunction.Min(T, R)
I = I + (B - Val(.Offset(-1))) * .Offset(, 1) / 100
End With
n = n + 1
Loop Until R < T Or T = 0
Impôt = Round(I, 2)
End Function
=SI($A$3<350001;2000;SOMMEPROD(({350001;400001;500001;600001}<=$A$3)*(({400000;500000;600000;1000000}<$A$3)*{0,05;0,1;0,15;0,2})*({400000;500000;600000;1000000}-{350001;400001;500001;600001}))+($A$3-INDEX($B$4:$B$7;EQUIV(A3;{350001;400001;500001;600001})))*CHOISIR(EQUIV(A3;{350001;400001;500001;600001});0,05;0,1;0,15;0,2))
Function Impôt(R@) As Currency
Dim B@, T@, I@, n As Byte
Do
With [Simulation!A16].Offset(n)
T = .Value: B = WorksheetFunction.Min(T, R)
I = I + (B - Val(.Offset(-1))) * .Offset(, 1) / 100
End With
n = n + 1
Loop Until R < T Or T = 0
Impôt = Round(I, 2)
End Function
=MAX(2000;5%*$B51-15500;10%*$B51-35500;15%*$B51-60500;20%*$B51-90500)