Here is a quick and dirty answer that requires a helper column. For the first row, manually enter 1. For the following rows, check if the rank has changed. If the rank is the same as previous, use the previous modified rank. Otherwise, increment the previous modified rank: =IF(B3=B2,C2,C2+1).