Applies To
SharePoint Server Subscription Edition SharePoint Server 2019 SharePoint Server 2016 SharePoint Server 2013 SharePoint Server 2013 Enterprise SharePoint in Microsoft 365 SharePoint Foundation 2010 SharePoint Server 2010 SharePoint in Microsoft 365 Small Business Windows SharePoint Services 3.0

RIGHT 會根據您指定的字元數,傳回文字字串中的最後一個字元。

語法

(文字,num_chars)

Text     是包含您要擷取之字元的文字字串。

Num_chars     指定您要 RIGHT 擷取的字元數。

備註

  • Num_chars 必須大於或等於零。

  • 如果 num_chars 大於 text 的長度,則 RIGHT 會傳回所有文字。

  • 如果省略 num_chars,則會假設其值為 1。

範例

F ormula

描述 (結果)

=RIGHT (“銷售價格”,5)

Price) (字串的最後 5 個字元

=RIGHT (“股票編號”)

r (字串的最後一) 個字元

Need more help?

Want more options?

探索訂閱權益、瀏覽訓練課程、瞭解如何保護您的裝置等等。