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

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

語法

修剪 (文字)

Text     是您要從中移除空格的文字。

範例

公式

描述 (結果)

=TRIM(" 第一季收益 ")

移除公式中之文字的前置及結尾空格 (第一季收益)

Need more help?

Want more options?

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