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

描述

傳回數字指定的字元。 使用 CHAR 將您從其他類型電腦上所取得之檔案的字碼頁代碼轉換成字元。

作業環境

字元集

Macintosh

Macintosh 字元集

Windows

ANSI

ANSI 字元集是 Windows 作業系統中透過 Windows 95 和 Windows NT 使用的標準字元集,之後採用 Unicode。 ANSI 包含 218 個字元,其中許多字元共用的數值代碼與 ASCII/Unicode 格式相同。 https://www.techopedia.com/definition/932/ansi-character-set

語法

CHAR(number)

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

  • Number    必要。 這是介於 1 和 255 之間的數字,用以指定您所需的字元。 此字元來自您電腦所使用的字元集。

    附註:  Excel 網頁版 僅支援 CHAR (9) 、CHAR (10) 、CHAR (13) 及 CHAR (32) 及更新版本。

範例

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

公式

描述

結果

=CHAR(65)

顯示電腦字元集中 65 代表的字元。

A

=CHAR(33)

顯示電腦字元集中 33 代表的字元。

!

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!

×