The Excel Delta function tests two numbers for equality and returns the Kronecker Delta. i.e. the function returns 1 if the two supplied numbers are equal and 0 otherwise.
where number1 and [number2] are the two numbers to be compared. The [number2] argument is optional, and if omitted, defaults to the value 0.
The spreadsheets below show five examples of the Excel Delta function.
Note that in cells A4 and A5 of the above example spreadsheet, the second argument, [number2], is omitted from the functions. These two functions therefore compare the supplied number1 value with zero.
Further examples of the Excel Delta function can be found on the Microsoft Office website.
If you get an error from the Excel Delta function this is likely to be the #VALUE! error:
|#VALUE!||-||Occurs if one or both of the supplied number arguments are non-numeric.|