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 中 EXACT  函數的公式語法及使用方式。

描述

比較二個文字字串,如果字串完全相同,會傳回 TRUE,否則會傳回 FALSE。 EXACT 會區分大小寫,但會忽略格式設定上的差異。 可使用 EXACT 測試輸入文件的文字。

語法

EXACT(text1, text2)

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

  • Text1    必要。 這是第一個文字字串。

  • Text2    必要。 這是第二個文字字串。

範例

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

第一個字串

第二個字串

word

word

Word

word

w ord

word

公式

描述

結果

=EXACT(A2,B2)

檢查第一列的字串是否相符

TRUE

=EXACT(A3,B3)

檢查第二列的字串是否相符 (A34 中的「W」是大寫)

FALSE

=EXACT(A4,B4)

檢查第三列的字串是否相符 (A4 中的「w」和「ord」之間有一個空格)

FALSE

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!

×