If you’ve ever copied and pasted some text into Microsoft Excel from an external source, you might have seen the spacing go awry. Nobody wants extra spaces and line breaks scattered in between text. Luckily, Excel has a simple function to fix this problem.
To remove extra spaces:
- Use the trim function. For example, let’s say cell A1 contains extra spacing.
- In a new cell, type in =trim(A1).
To remove extra spaces and line breaks:
- Use the trim and clean functions. For example, let’s say cell A2 contains extra spacing and line breaks.
- In a new cell, type in =trim(clean(A2)).