May be this link could help?

http://www.cpearson.com/Excel/rank.htm