Explanation
The TRIM function is fully automatic.
All you’re gonna wanna do is supply a reference to a cell.
The TRIM function then takes over to remove extra spaces and returns the final text.
By adding the SUBSTITUTE function to the formula, it’s possible for you to remove specific characters.
SUBSTITUTE Function
The Excel SUBSTITUTE function replaces text in a given string by matching.