WorksheetFunction.Delta(Object, Object) Method

Definition

Tests whether two values are equal. Returns 1 if number1 = number2; returns 0 otherwise.

public double Delta (object Arg1, object Arg2);
Public Function Delta (Arg1 As Object, Optional Arg2 As Object) As Double

Parameters

Arg1
Object

Number1 - the first number.

Arg2
Object

Number2 - the second number. If omitted, number2 is assumed to be zero.

Returns

Remarks

Use this function to filter a set of values. For example, by summing several Delta functions you calculate the count of equal pairs. This function is also known as the Kronecker Delta function.

If number1 is nonnumeric, Delta returns the #VALUE! error value.

If number2 is nonnumeric, Delta returns the #VALUE! error value.

Applies to