A family of Microsoft spreadsheet software with tools for analyzing, charting, and communicating data.
You could write VBA code to do this. First you would need to quantitatively specify what you mean by 'similar', then you would need to move a complete row and/or a complete column, and repeat.