×
英语
很抱歉。本文没有你的语言版本。

DELTA function

This article describes the formula syntax and usage of the DELTA function in Microsoft Excel.

Description

Tests whether two values are equal. Returns 1 if number1 = number2; returns 0 otherwise. 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.

Syntax

DELTA(number1, [number2])

The DELTA function syntax has the following arguments:

  • Number1    Required. The first number.

  • Number2    Optional. The second number. If omitted, number2 is assumed to be zero.

Remarks

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

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

Example

Copy the example data in the following table, and paste it in cell A1 of a new Excel worksheet. For formulas to show results, select them, press F2, and then press Enter. If you need to, you can adjust the column widths to see all the data.

Formula

Description

Result

=DELTA(5, 4)

Checks whether 5 equals 4

0

=DELTA(5, 5)

Checks whether 5 equals 5

1

=DELTA(0.5, 0)

Checks whether 0.5 equals 0

0

扩展你的 Office 技能
了解培训
抢先获得新功能
加入 Office 预览体验计划

此信息是否有帮助?

谢谢您的反馈!

谢谢你的反馈! 可能需要转接到 Office 支持专员。

×