Sign in with Microsoft
Sign in or create an account.
Hello,
Select a different account.
You have multiple accounts
Choose the account you want to sign in with.

本文將說明 Microsoft Excel 中 DELTA 函數的公式語法及使用方式。

描述

檢定兩個值是否相等。 如果 number1 = number2,傳回 1;否則傳回 0。 使用此函數可以篩選一組數值。 例如,您可以加總多個 DELTA 函數來計算相等對的數量。 此函數也稱為 Kronecker Delta 函數。

語法

DELTA(number1, [number2])

DELTA 函數語法具有下列引數:

  • Number1    必要。 這是第一個數字。

  • Number2    選擇性。 這是第二個數字。 如果省略,會將 number2 假設為零。

註解

  • 如果 number1 非數值,DELTA 會傳回 #VALUE! 錯誤值。

  • 如果 number2 非數值,DELTA 會傳回 #VALUE! 錯誤值。

範例

請在下列表格中複製範例資料,再將之貼到新 Excel 活頁簿中的儲存格 A1。 若要讓公式顯示結果,請選取公式,按 F2,然後再按 Enter。 如有需要,您可以調整欄寬來查看所有資料。

公式

描述

結果

=DELTA(5, 4)

檢查 5 是否等於 4

0

=DELTA(5, 5)

檢查 5 是否等於 5

1

=DELTA(0.5, 0)

檢查 0.5 是否等於 0

0

Need more help?

Want more options?

探索訂閱權益、瀏覽訓練課程、瞭解如何保護您的裝置等等。

社群可協助您詢問並回答問題、提供意見反應,以及聆聽來自具有豐富知識的專家意見。

Was this information helpful?

How satisfied are you with the translation quality?
What affected your experience?
By pressing submit, your feedback will be used to improve Microsoft products and services. Your IT admin will be able to collect this data. Privacy Statement.

Thank you for your feedback!

×