Grab Python 2.7.3 from here - http://www.python.org/download/
Grab the add-ons for ease of working with Excel sheets (including writing to them), here - http://www.python-excel.org/
You should be good to go very quickly.
OTOH, will "sort" help you? http://www.computerhope.com/sorthlp.htm
HTH.
Cheers,
Scott.
(Who is assuming you can install things like that on the machine in question, but realizes this is a bad assumption.)