You get Rep points for using a forum as it should be used - having a go rather than sitting back and just waiting for someone to do it for you - so for that.
However, it can be shortened.
Use the information you have - a cell starts with a space so it needs to be moved to another column - the number of columns to move it is simply the number of spaces at the start. So a simple calculation will give you that.
Alternative code
It's a little longer than it needs to be as each step is broken down for clarity.
Minimalist version
Bookmarks