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

拿掉前置和結尾空格,例如文字前後的空格和非裂斷空格。 在您從另一個應用程式收到的文字字串上使用TRIMENDS,且字串前後可能具有額外間距。

附註:  TRIMENDS 會保留文字字串內的間距。 若要變更文字字串內的間距,請使用TRIM函數。 如需詳細資訊,請參閱 TRIM 函數

語法

修剪文字 ()

Text    這是要從中移除空格的字串。

範例

公式

描述 (結果)

=TRIMENDS (“ 記錄銷售 「)

從公式中的文字移除前置和結尾空格 (「記錄銷售」)

頁面頂端

Need more help?

Want more options?

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