How to move a column 1 step Ahead every time when we run the program

Hi,
Thank you for your response

What If I had 3 columns like this :

image

and only wanted to move the change column 1 step ahead, then what would be the changes ?