在EXCEL表格中,C单元格要等于A单元格的数值,当A单元格为空时,取B单元格的数值,当A或B单元格都有数时,

2024-11-06 21:26:19
推荐回答(3个)
回答1:

见截图

B1输入

=IF(COUNTIF(A1:B1,"<>")=2,"",IF(A1="",B1,A1))

下拉

回答2:

输入

=IF(COUNTA(A2:B2)=2,"",SUM(A2:B2))

详见附图示例

回答3:

=IF(A1<>"",IF(B1<>"","",A1),IF(B1<>"",B1,""))