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.

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

LEFT 會傳回文字字串中的第一個字元或前幾個字元,根據您指定的字元數目而定。

語法

向左(文字num_chars)

文字     是包含要抽選之字元的文字字串。

Num_chars   指定您希望 LEFT 擷取的字元數。Num_chars 必須大於或等於零。如果 num_chars 大於 text 的長度,LEFT 會傳回所有文字。如果省略 num_chars,則假設為 1。

範例

欄 1

表單 ula

說明 (結果)

Sale Price

=LEFT([Col1],4)

字串中的前 4 個字元 (Sale)

Sweden

=LEFT([Col1])

字串中的第 1 個字元 (S)

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!

×