# Ranking duplicates the same rank without breaking sequence in Excel

Suppose you have data for students' names with their mathematics scores. Some students got same percentage so they would get the same rank. Your task is to rank them on the basis of their scores without breaking sequence.

In the example shown below, highlighted ones are the students with their same scores.

For descending rank :

In cell D3, type the following formula

=SUMPRODUCT((\$C\$3:\$C\$10>\$C3)/COUNTIF(\$C\$3:\$C\$10,\$C\$3:\$C\$10))+1

For ascending rank :

In cell E3, type the following formula

=SUMPRODUCT((\$C\$3:\$C\$10<\$C3)/COUNTIF(\$C\$3:\$C\$10,\$C\$3:\$C\$10))+1

#### Excel Tutorials : 100 Excel Tutorials

Deepanshu founded ListenData with a simple objective - Make analytics easy to understand and follow. He has over 7 years of experience in data science and predictive modeling. During his tenure, he has worked with global clients in various domains like banking, Telecom, HR and Health Insurance.

While I love having friends who agree, I only learn from those who don't.

Let's Get Connected: Email | LinkedIn