Related topics
×
公式與函數
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.
公式與函數

IF

您的瀏覽器不支援視訊。 請安裝 Microsoft Silverlight、Adobe Flash Player 或 Internet Explorer 9。

試試看!

使用 IF 來依據條件傳回值。

例如,=IF(C2=”Yes”,1,2) 表示 IF(C2 = 是,則傳回 1,相反則傳回 2)。

IF

  1. 選取儲存格。

  2. 輸入 =IF,和左括號 (。

  3. 新增您想要測試的條件,並輸入逗號。

  4. 新增條件為 True 時要傳回的值,並輸入逗號。

  5. 新增條件為 False 時要傳回的值,並輸入右括號 )。

  6. 按 Enter。

  7. 如有需要,請拖曳控點來套用 IF 函數至其他列。

想要更多資訊嗎?

IF 函數

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!

×