Rank Function in Excel with Duplicate Values but without skipping a rank

Anonymous
2022-08-25T09:14:50+00:00

Dear friends,

In Excel, while I use Rank Function for values like, as follows:

5

4

3

4

2

2

2

1

4

I want to rank all in a ranking manner as follows, i.e. in ascending mode, leaving any values in the outcome:

5

4

3

4

2

2

2

1

4

But the result is found to be received as:

9

6

5

6

2

2

2

1

6

In other words, 3 & 4 are not being found to be returned.

Any way to achieve the same?

Thanks in advance.

Microsoft 365 and Office | Excel | For home | Windows

Locked Question. This question was migrated from the Microsoft Support Community. You can vote on whether it's helpful, but you can't add comments or replies or follow the question.

0 comments No comments
{count} vote
Answer accepted by question author
  1. HansV 462.4K Reputation points MVP Volunteer Moderator
    2022-08-26T10:13:50+00:00

    A formula that should work in all versions of Excel:

    =IF(C1="","N/A",SUMPRODUCT(($C1:$M1<=C1)*($C1:$M1<>"")/COUNTIF($C1:$M1,$C1:$M1&"")))

    0 comments No comments

9 additional answers

Sort by: Most helpful
  1. Lz._ 38,106 Reputation points Volunteer Moderator
    2022-08-28T08:30:50+00:00

    Alternative

    to be used for earlier versions

    in C5:

    =IF(ISBLANK(C1), NA(), SUM(--(FREQUENCY(($C1:$M1<C1)*$C1:$M1, ($C1:$M1<C1)*$C1:$M1) > 0)))
    
    0 comments No comments