这是2种情况还是一种?
先给你2种情况的:
1、=IF(A1<0,IF(B1<0,-B1/A1,),)
2、=IF(A1=0,,IF(B1=0,,B1/A1))
一种情况:
=IF(A1<=0,IF(B1<=0,IF(A1=0,,-B1/A1),),)
=if(and(a1<0,b1<0),-b1/a1,if(or(a1=0,b1=0)," ",b1/a1) )
=IF(AND(A1<0,B1<0),-B1/A1,IF(A1*B1=0,"",B1/A1))
不是很明白你的意思。尝试如下:
=if(and(A1<0,B1<0),-B1/A1,if(and(A1=0,B1=0),"",B1/A1))
=IF(ISERROR(B1/A1),"",IF(B1/A1=0,"",IF(AND(A1<0,B1<0),-B1/A1,B1/A1)))