Simply change the optional Order variable in RANK from 1 to 0 - see XL Help for more info. on RANK