A2录入公式:=IF(A1<>0,1,"")
A2录入公式:=IF(A1<>0,1,"") 或者=IF(A1=0,"",1)
用if函数:A2中输入=IF(A1<>0,1,"")
=if(A1=0,"",1)