It depends what you want to do.
If it’s just a one time thing, then the spreadsheet is the way to go.
If you are going to be doing this type of over and over again - SAS and SPSS are worthwhile languages but if you are going to take the trouble to learn them, then I would suggest learning Python or Perl and downloading stat packages for them (check CSPAN). The work for this type of stuff is going to be mostly converting and filtering data and Python and Perl (esp Perl) are the best tools to learn for this. And they are free as in beer…