I have a excel sheet which contains lots of data with leading and trailing spaces.
Manually removing these spaces with TRIM()
takes lot of time.
How can I do this efficiently.
I have a excel sheet which contains lots of data with leading and trailing spaces.
Manually removing these spaces with TRIM()
takes lot of time.
How can I do this efficiently.
To do this efficiently use a variant array, something like:
Try this small macro:
This macro will not affect internal spaces or cells containing formulas.