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.

附註:  我們想要以您的語言,用最快的速度為您提供最新的說明內容。 本頁面是經由自動翻譯而成,因此文中可能有文法錯誤或不準確之處。讓這些內容對您有所幫助是我們的目的。希望您能在本頁底部告訴我們這項資訊是否有幫助。 此為 英文文章 出處,以供參考。

會計算不是空白的引數數目。

語法

COUNTAvalue1value2...

Value1, value2, ...     代表您要計算值的 1 到 30 個引數。在這種情況下,值可以為任意類型的資訊,包括空文字 (""),但是不包括空引數。如果不需要計算邏輯值、文字或錯誤值,您可以使用 COUNT 函數。

範例

欄 1

欄2

欄3

欄4

欄5

欄6

欄7

公式

說明 (結果)

Sales

12/8/2008

19

22.24

TRUE

#DIV/0!

=COUNTA([欄1],[欄2],[欄3],[欄4],[欄5],[欄6],[欄7])

計算清單中非空白引數的數目 (6)

Sales

12/8/2008

19

22.24

TRUE

#DIV/0!

=COUNTA([欄4],[欄5],[欄6],[欄7]))

計算清單最後 4 列中非空白引數的數目 (4)

Sales

12/8/2008

19

22.24

TRUE

#DIV/0!

=COUNTA([欄1],[欄2],[欄3],[欄4],[欄5],[欄6],[欄7],2)

計算清單中以及加上一個值為 2 的引數後,非空白引數的數目 (7)

Sales

12/8/2008

19

22.24

TRUE

#DIV/0!

=COUNTA([欄1],[欄2],[欄3],[欄4],[欄5],[欄6],[欄7], "Two")

計算清單中以及加上一個值為 "Two" 的引數後,非空白引數的數目 (7)

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!

×