Partager via


IWorksheetFunction.SumIf Method

Namespace:  Microsoft.Office.Interop.Excel
Assembly:  Microsoft.Office.Interop.Excel (in Microsoft.Office.Interop.Excel.dll)

Syntax

'Declaration
Function SumIf ( _
    Arg1 As Range, _
    Arg2 As Object, _
    Arg3 As Object _
) As Double
'Usage
Dim instance As IWorksheetFunction
Dim Arg1 As Range
Dim Arg2 As Object
Dim Arg3 As Object
Dim returnValue As Double

returnValue = instance.SumIf(Arg1, Arg2, _
    Arg3)
double SumIf(
    Range Arg1,
    Object Arg2,
    Object Arg3
)

Parameters

Return Value

Type: System.Double

See Also

Reference

IWorksheetFunction Interface

IWorksheetFunction Members

Microsoft.Office.Interop.Excel Namespace