Today, we are going to remove unnec­es­sary spaces. Some­times, there’s a space at the begin­ning of text, some­times, there are more than one space between two words, and some­times, there are some spaces at the end. The last ones are the hard­est to notice (Fig. 1)

Remove unnec­es­sary spaces — TRIM function
Unnecessary spaces
Fig. 1 Unnec­es­sary spaces

The name in the first line, Brave Bran­don with a space at the end, is some­thing dif­fer­ent for Excel, than Brave Bran­don with­out a space. In such a case, we want to use the TRIM func­tion to remove the space (Fig. 2)

Trim function
Fig. 2 TRIM function

After copy­ing it down, we have our names with­out unnec­es­sary spaces (Fig. 3)

No unnecessary spaces
Fig. 3 No unnec­es­sary spaces

This sim­ple func­tion removes unnec­es­sary spaces from the begin­ning, the end, and the mid­dle of text beetween words only leaves one space. 

https://www.youtube.com/shorts/Pe8z-PthW6Q