TRIM 函數

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

移除文字的所有空格,僅保留單字之間的單個空格。 對您從其他應用程式接收到之可能含有不規則空格的文字使用 TRIM 函數。

語法

TRIM (文字)

文字 是你想要移除空格的文字。

範例

公式 描述 (結果)
=TRIM(" 第一季收益 ") 移除公式中之文字的前置及結尾空格 (第一季收益)