Have a look at the RANK() function in Excel Help.