In this article, we will learn about how to use the TRIM function in Excel to remove all spaces and non-breaking spaces.
TRIM function is a TEXT function in Excel used to remove all extra spaces from the text string except for single space between words.
Syntax:
Let’s understand this function using it an example.
Use the formula:
As you can all the Leading and trailing spaces are removed with single space from the Text.
Hope you understood how to use the TRIM function in Excel to remove leading and trailing spaces. Explore more articles on Excel Text functions here. Please feel free to state your queries in the comment box. We will assist you.
The applications/code on this site are distributed as is and without warranties or liability. In no event shall the owner of the copyrights, or the authors of the applications/code be liable for any loss of profit, any problems or any damage resulting from the use or evaluation of the applications/code.