SOLVED

#N/A Error with RANK.EQ

Copper Contributor

I'm working on an Excel file that contains roughly 622 numbers.  I'm trying to use the RANK.EQ function to capture the rank of each number in the list.  Duplicate numbers should have the same rank (e.g., if the list goes 229, 216, 200, 198, 198, 197, the rank should be 1, 2, 3, 4, 4, 6).

 

I'm using the following formula:

 

=RANK.EQ(D2,D2:D623,1)

 

D2 contains the first number in the list, D2:D623 is the range.  I keep getting the #N/A error and can't figure out why no values are returned.  The data in cells D2 to D623 are formatted as numbers. 

 

Does anyone have some experience with this formula that can help me understand what I'm overlooking?  Any assistance would be appreciated.

7 Replies

@MetsMike 

Use absolute references for the range:

=RANK.EQ(D2,D$2:D$623,1)

@MetsMike 

you can try following formula

=RANK.EQ(D2,$D$2:$D$623,1)

It is just that you might need to use the absolute reference for D2:D623

Thanks for the suggestion. The formula still returns the #N/A value. I’m guessing it has to be something in the source data that needs to be addressed.
Thank you for the suggestion. The formula still returns the #N/A value. I’m guessing it’s an issue with the source data that I’ll need to review.
best response confirmed by MetsMike (Copper Contributor)
Solution

@MetsMike 

As variant your numbers could be formatted as text, you may check in any empty cell as =ISTEXT(D2).

Thank you! That was indeed the issue. I was incorrect about the cell formatting in the source. Converting the formatting did the trick! Much appreciated!

@MetsMike good, you are welcome

1 best response

Accepted Solutions
best response confirmed by MetsMike (Copper Contributor)
Solution

@MetsMike 

As variant your numbers could be formatted as text, you may check in any empty cell as =ISTEXT(D2).

View solution in original post