C1的公式:
=IF(A1<0.9,0,IF(A1<0.96,IF(B1>0.9,D1*0.02,"没有说明此种情况规则!"),IF(A1=1,IF(B1>=0.96,D1*0.03,"没有说明此种情况规则!"),IF(A1>1,IF(B1>1,D1*0.05+(D1-5000)*0.1,"没有说明此种情况规则!"),"没有说明此种情况规则!"))))
注意公式中太多没有说明规则的情况,也就是说逻辑不严谨!
在C1中输入或复制粘贴下列公式
=IF(A1<0.9,0,IF(AND(A1>=0.9,A1<0.96,B1>0.9),D1*0.02,IF(AND(A1=1,B1>=0.96),D1*0.03,IF(AND(A1>1,B1>1),D1*0.05+(D1-5000)*0.01,""))))
按你的意思:
=if(or(J5>=3,K5>=10,L5>=20),0.9,if(and(j5>0,k5>5,L5>10),1-J5*0.05-(K5-5)*0.005-(L5-10)*0.0025,if(and(j5=0,(k5>0)*(k5<=5),(l5>0)*(l5<=10)),1,if(and(j5=0,k5=0,(l5>0)*(l5<=5)),1.1-L5*0.02,""))))