excel 如果a1非空 a2为空 则a2=1;如果a1为空则不输出a2
展开全部
a2=if(a1="","",1)
已赞过
已踩过<
评论
收起
你对这个回答的评价是?
展开全部
用VBA做吧:
Private Sub Worksheet_SelectionChange(ByVal Target As Range)
If Cells(1, 1) = "" And Cells(1, 2) <> "" Then Cells(1, 2) = "1"
If Cells(1, 1) <> "" Then Cells(1, 2) = ""
End Sub
Private Sub Worksheet_SelectionChange(ByVal Target As Range)
If Cells(1, 1) = "" And Cells(1, 2) <> "" Then Cells(1, 2) = "1"
If Cells(1, 1) <> "" Then Cells(1, 2) = ""
End Sub
已赞过
已踩过<
评论
收起
你对这个回答的评价是?
推荐律师服务:
若未解决您的问题,请您详细描述您的问题,通过百度律临进行免费专业咨询