Hey guys, I have about 2300 rows of data and about 20 columns across.

I have groups of people with stats and each group is labeled with a number. I am trying to put all the groups that are the same in consecutive rows so it makes it easy for me to find the averages and sums.

Seems pretty simple enough but everytime I try and sort the data based on the number excel seems to freeze and then just randomly deletes entire rows of data.

Does anyone have an explanation or a better way to solve this problem?