我不断从这个等式中得到错误

I keep getting an error from this equation

= IF(A5 =< 8, B5 * .07, IF(A5 > 8 AND A5 =< 15, B5 * .05, IF(A5 > 15 AND A5 < 20, B5 * .03, 00.00)))

我不太确定为什么会收到错误消息。语法看起来是正确的,不是吗?

您无法按照您尝试的方式进行 AND。你需要这样做:

=IF(A5<=8,B5*0.07,IF(AND(A5>8,A5<=15),B5*0.05,IF(AND(A5>15,A5<20),B5*0.03,0)))

如果常数因子 (B5) 被提取并应用于所有结果并且 IF 子句以它们有效级联的方式嵌套(即根本不使用 AND ):

=B5*(IF(A5<=8,0.07,IF(A5<=15,0.05,IF(A5<20,0.03,0))))