设C1=A1+B1。
C1公式为: =IF(OR(A1="",B1=""),"",A1+B1)
=IF(OR(A1="",B1=""),"",A1+B1)逻辑判断,只要 A1,B1任意一个单元格为空时,就不计算,否则就计算 A1+B1
=(A1<>"")*(B1<>"")*(A1+B1)
=(COUNT(A1:B1)=2)*SUM(A1:B1)