没有这样的判断,函数不是万能的,除非自定义一个函数。
______________________________________
Function InColIf(ByVal rng As Range, X$, Y$)
Application.Volatile
If rng.Interior.ColorIndex > 0 Then
InColIf = X
Else
InColIf = Y
End If
End Function
试试用宏表函数 ,如下图中 GET.CELL(63,A1)
在B1定义名称:
DW=GET.CELL(63,Sheet1!A1)
然后在B1输入公式:
=IF(DW=0,"是","否")