Using 'Rank' in formulas?

See here for something that might be relevant/interesting