Originally Posted by
BMV
...and i mind trailing spaces will be deleted also.
Yes, I should have probably mentioned that one, but when I read this in the OP... "I have source data that contains leading spaces in some blank cells"... it made it sound like there were no trailing spaces to worry about. My assumption was that someone added leading spaces to an original text file to fill out a field of fixed length and it was those leading spaces the OP had to contend with when it was brought into Excel. I probably over-thought this one a little too much although it would have been helpful if the OP had included a sample file.
As to the original question for a left trim only, we can still do that without any loops (still a one-liner) and, again, assuming a fixed range of cells...
Bookmarks