EXCEL 判断A1是否有底纹,用什么函数?

2025-05-23 11:51:08
推荐回答(3个)
回答1:

没有这样的判断,函数不是万能的,除非自定义一个函数。

______________________________________


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

回答2:

试试用宏表函数 ,如下图中      GET.CELL(63,A1)

回答3:

在B1定义名称:
DW=GET.CELL(63,Sheet1!A1)
然后在B1输入公式:
=IF(DW=0,"是","否")