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.

本文將說明公式語法及 VALUE 的使用方式  函數。

描述

將代表某數值的文字字串轉換成數字。

語法

VALUE(text)

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

  • Text    必要。 以引號括住的文字或包含要轉換之文字的儲存格參照。

註解

  • Text 可以是 Microsoft Excel 能夠識別的任何常數、日期或時間格式。 如果 text 不屬於其中一種格式,VALUE 會傳回 #VALUE! 錯誤值。

  • 在公式中通常不需要使用 VALUE 函數,因為 Excel 必要時會自動將文字轉換數值。 提供此函數是為了與其他試算表程式相容。

範例

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

公式

描述

結果

=VALUE("$1,000")

文字字串 "$1,000" 的相等數值

1000

=VALUE("16:48:00")-VALUE("12:00:00")

序列值相當於 4 小時又 48 分鐘,即 "16:48:00" 減 "12:00:00" (0.2 = 4:48)。

0.2

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!

×