excel中,函数=if(if-0.03<=H3<=0.03,0,if(H3>0.03,0.03),if(H3<-0.03,-0.03))公式,哪里错误,请高手指点

想要求解:-0.03&lt;=A&lt;=0.03,则A=0;A&gt;0.03,则A=0.03;A&lt;-0.03,则A=-0.03
2025-01-24 06:20:44
推荐回答(5个)
回答1:

=IF(AND(A1>=-0.03,A1<=0.03),0,IF(A1>0.03,0.03,-0.03))

回答2:

if-0.03<=H3<=0.03
不能是这样的。
试试以下公式
=IF(H3<-0.03,-0.03,IF(AND(H3>=-0.03,H3>=0.03),0,0.03))

回答3:

if(and(a>=-0.03,a<=0.03),0,if(H3>0.03,0.03),if(H3<-0.03,-0.03)))

回答4:

=IF(A<-0.03,-0.03,IF(A>0.03,0.03,(0)))
已经测试 绝对正确

回答5:

=IF(AND(H3>=-0.03,H3<=0.03),0,IF(H3>0.03,0.03,-0.03))

以上公式通过测试