Trim: Removes all spaces from a text string except for single spaces between words. There are two ways we can remove these spaces: We need to remove them so that the formula referencing these cells calculate correctly. Sometimes text values contain leading, trailing, or multiple embedded spaces. Here we have some unedited text and we need to refine all unedited texts.Īnd copy and paste the formula to the remaining cells using the shortcut Ctrl + D or dragging it down from the right bottom of the formula cell upto the required cell.Īs you can all the Leading and trailing spaces are removed with single space from the Text. Let's understand how to use the function using an example. TRIM function is a TEXT function in Excel used to remove all extra spaces from the text string except for single space between words.Īll of these might be confusing to understand. In this article, we will learn about how to use the TRIM function in Excel to remove all spaces and non-breaking spaces.