Creating a "Rank" field


Is there a way to calculate a rank based on the value of a field? For example, if the field is Total Sales, I can sort in descending order by this field, but can I create a formula that gives me the rank of each person in another field?