IWorksheetFunction.CountIf Method
Namespace: Microsoft.Office.Interop.Excel
Assembly: Microsoft.Office.Interop.Excel (in Microsoft.Office.Interop.Excel.dll)
Syntax
'Declaration
Function CountIf ( _
Arg1 As Range, _
Arg2 As Object _
) As Double
'Usage
Dim instance As IWorksheetFunction
Dim Arg1 As Range
Dim Arg2 As Object
Dim returnValue As Double
returnValue = instance.CountIf(Arg1, Arg2)
double CountIf(
Range Arg1,
Object Arg2
)
Parameters
- Arg1
Type: Microsoft.Office.Interop.Excel.Range
- Arg2
Type: System.Object
Return Value
Type: System.Double