Forum Discussion

MetsMike's avatar
MetsMike
Copper Contributor
Jul 14, 2019
Solved

#N/A Error with RANK.EQ

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.

  • MetsMike 

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

7 Replies

  • Kodipady's avatar
    Kodipady
    Iron Contributor

    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

    • MetsMike's avatar
      MetsMike
      Copper Contributor
      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.
      • SergeiBaklan's avatar
        SergeiBaklan
        Diamond Contributor

        MetsMike 

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

    • MetsMike's avatar
      MetsMike
      Copper Contributor
      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.

Resources