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.

傳回進位後的數字,從零進位到最接近進位基準的倍數。例如,如果您的產品價格是 $4.42,而您想避免使用一分的單位,可以使用公式 =CEILING(4.42,0.05) 將產品價格進位到最接近的五分。

語法

CEILING(number,significance)

數字     是要四捨五入的值。

Significance     係指您要四捨五入的倍數。

註解

  • 如果引數都是非數字,CEILING 會傳回 #VALUE! 錯誤值。

  • 無論數字符號為何,在調整脫離零時都會將數值進位。如果數字剛好是進位基準的倍數,就不再進位。

  • 如果數字與顯著水準的符號不同,則 CEILING 會傳回錯誤值 #NUM!。

範例

公式

描述 (結果)

=CEILING(2.5, 1)

將 2.5 進位到最接近 1 的倍數 (3)

=CEILING(-2.5, -2)

將 -2.5 進位到最接近 -2 的倍數 (-4)

=CEILING(-2.5, 2)

因為 -2.5 和 2 有不同的正負號,所以傳回錯誤 (#NUM!)

=CEILING(1.5, 0.1)

將 1.5 進位到最接近 0.1 的倍數 (1.5)

=CEILING(0.234, 0.01)

將 0.234 進位到最接近 0.01 的倍數 (0.24)

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!

×