TRIM function

2016-05-01

This function allows remove all spaces from a text apart from single spaces between separate words.

 

Syntax

 

TRIM(Text)

  • Text (required) – This is the text you want to remove extra spaces from.

 

Example

 

In this example we use the function on the text “These     extra   spaces        are annoying!     ” to remove the excess spaces and result in the text “These extra spaces are annoying!”.

 

=TRIM(A2)

 

TRIM TRIM function

About the Author

John MacDougall

John MacDougall

John is a Microsoft MVP and freelance consultant and trainer specializing in Excel, Power BI, Power Automate, Power Apps and SharePoint. You can find other interesting articles from John on his blog or YouTube channel.

Subscribe

Advertisement

Related Articles

UPPER function

This function will convert text to all uppercase letters. Syntax UPPER(Text)...

read more

LOWER function

This function will convert text to all lower case letters. Syntax LOWER(Text)...

read more

Comments

0 Comments

Submit a Comment

Your email address will not be published. Required fields are marked *

This site uses Akismet to reduce spam. Learn how your comment data is processed.

Get The Latest News

Follow Us

Follow us on social media to stay up to date with the latest tips in Excel!

Pin It on Pinterest

Share This