To use the TRIM or CLEAN functions in Excel:
- Select the cell or range of cells that has text containing extra spaces.
- Enter the appropriate function in the formula bar.
- Make sure to enter the range of cells in the parentheses.
- Press Enter to complete the function.
- The edited cells will now only display the necessary text.