Sign in with Microsoft
Sign in or create an account.
Hello,
Select a different account.
You have multiple accounts
Choose the account you want to sign in with.

Removes leading and trailing spaces, such as whitespace and non-breaking space before and after the text. USE TRIMENDS on text strings that you received from another application, and that may have extra spacing before and after the strings.

Note:  TRIMENDS preserves spacing within the text string. To alter spacing within the text string, use the TRIM function. For more information, see TRIM function.

Syntax

TRIMENDS(text)

Text    The string from which you want spaces removed.

Example

Formula

Description (Result)

=TRIMENDS(“ Record sales “)

Removes leading and trailing spaces from text in the formula (“Record sales”)

Top of Page

Need more help?

Want more options?

Explore subscription benefits, browse training courses, learn how to secure your device, and more.

Communities help you ask and answer questions, give feedback, and hear from experts with rich knowledge.

Was this information helpful?

What affected your experience?
By pressing submit, your feedback will be used to improve Microsoft products and services. Your IT admin will be able to collect this data. Privacy Statement.

Thank you for your feedback!

×