The function you are looking for does not exist in native Excel.
However, you could imitate it, for example. using IFERROR :
=AND(FALSE,IFERROR(A1,FALSE))
(Work in 2007 and beyond. In 2003, you need to use =IF(ISERROR(A1),FALSE,A1) instead of IFERROR(A1,FALSE) .)
Alternatively, you can create a User Define function:
Public Function EarlyAnd(var1 As Variant, ParamArray vars() As Variant) As Boolean On Error GoTo Finalize Dim blnTemp As Boolean Dim varNext As Variant If Not CBool(var1) Then GoTo Finalize For Each varNext In vars If Not CBool(varNext) Then GoTo Finalize Next blnTemp = True Finalize: EarlyAnd = blnTemp End Function
Place this function in the module in the Visual Basic Editor. Now you can use =EarlyAnd(False,A1) in your Excel.
source share