RIGHT 函數

套用到
SharePoint Server 2019 SharePoint Server 2016 SharePoint Server 2013 SharePoint Server 2013 企業版 SharePoint Foundation 2010 SharePoint Server 2010 Windows SharePoint Services 3.0

RIGHT 會根據你指定的字元數,回傳文字串的最後幾個字元。

語法

(,num_chars)

文字 是包含你想提取字元的文字字串。

Num_chars 會指定你想要正確提取的字元數量。

註解

  • Num_chars 必須大於或等於零。
  • 如果 num_chars 大於 text 的長度,則 RIGHT 會傳回所有文字。
  • 如果省略 num_chars,則會假設其值為 1。

範例

F ormula 描述 (結果)
=右 (「特賣價」,5) 字串最後五個字元 (Price)
=右 (「庫存號碼」) 字串的最後一個字元 (r)