+ Reply to Thread
Results 1 to 4 of 4

RANK Function error - "RANK has no valid input data"

  1. #1
    Registered User
    Join Date
    10-18-2021
    Location
    Portland, OR
    MS-Off Ver
    2021
    Posts
    2

    RANK Function error - "RANK has no valid input data"

    I am on the verge of tearing all of my hair out, please help!

    Here is what I need: In cell M2, I need it to tell me the rank of cell L2 in comparison to cells L10 and L18.
    Here is what I use: =RANK(L2,$L$10,$L$18)
    Here is what I get: N/A - "RANK has no valid input data"

    The closest I can get to isolating the problem is the fact that the values in L2, L10, and L18 all have two decimal places - the function seems to work for cells whose value has no decimal places... how do I get it to accept and calculate for the two decimal place values?

    Yes, I have formatted all cells to be numbers, not text.

    Link to Google Sheet in attachment.

    TIA!
    Attached Files Attached Files

  2. #2
    Forum Guru
    Join Date
    04-13-2005
    Location
    North America
    MS-Off Ver
    2002/XP and 2007
    Posts
    15,829

    Re: RANK Function error - "RANK has no valid input data"

    I am unable to follow your link (probably a problem on my end, and not yours). I am unable to create a scenario from scratch (number of decimal places doesn't matter) where any RANK() function with 3 arguments like this works. What I see Google doing with this function:

    1) Take the value in L2.
    2) Look for that value in the range L10. Because L10 is a single cell, there is only one value to compare to, so the test essentially boils down to "is the value in L2 the same as L10".
    3) If L2 is the same as L10, then return 1 (they are the same value, so the value is the highest/lowest rank). Otherwise, return N/A (since the value does not exist in the range L10).

    One usually expects that the second argument in the RANK() function will be a multi-cell range rather than a single cell. Something like =RANK(L2,$L$2:$L$18). You're using 3 single cell inputs, which suggests to me that you are either misunderstanding how the RANK() function works, or you are trying to do something unexpected with this.

    As far as I know, RANK() behaves the same in both Sheets and Excel. You could try downloading your Sheets file as an xlsx document, then upload the spreadsheet directly to the forum (that would avoid problems with linking directly to google sheets).
    Quote Originally Posted by shg
    Mathematics is the native language of the natural world. Just trying to become literate.

  3. #3
    Registered User
    Join Date
    10-18-2021
    Location
    Portland, OR
    MS-Off Ver
    2021
    Posts
    2

    Re: RANK Function error - "RANK has no valid input data"

    Thank you for taking a look at this!

    I replicated everything in Excel, and I get the same error. What is a mystery to me is that the function works as expected only when the values in L2, L10, and L18 have no decimal places.

    It seems like RANK is the correct function to use for what I want it to do (return a rank for non-adjacent cells), but maybe I am missing a better function for this?

  4. #4
    Forum Guru
    Join Date
    04-13-2005
    Location
    North America
    MS-Off Ver
    2002/XP and 2007
    Posts
    15,829

    Re: RANK Function error - "RANK has no valid input data"

    Can you upload a sample where it works and where it doesn't work? As I indicated, I cannot make it work correctly with integers or decimals.
    Attached Files Attached Files

+ Reply to Thread

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Similar Threads

  1. [SOLVED] Macro That Selects Range And Uses It Within A VBA "RANK" Function
    By Ourkid123uk in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 06-18-2019, 11:57 AM
  2. = EMBED("Forms.ComboBox.1","") error "Reference not valid."
    By CatharinaCatharina in forum Excel General
    Replies: 2
    Last Post: 12-11-2014, 09:58 AM
  3. [SOLVED] Rank function using "array IF" formula as ref doesn't seem to work
    By vizzkid in forum Excel Formulas & Functions
    Replies: 3
    Last Post: 11-11-2014, 09:47 AM
  4. [SOLVED] Rank function "tiebreaker"
    By glosos in forum Excel Formulas & Functions
    Replies: 7
    Last Post: 06-09-2014, 03:14 AM
  5. dragging "rank order" function down, skipping grouped cells
    By theletterh in forum Excel Formulas & Functions
    Replies: 4
    Last Post: 12-04-2012, 06:52 PM
  6. [SOLVED] RANK function to GRADE "A","B" students.
    By all4excel in forum Excel Formulas & Functions
    Replies: 3
    Last Post: 12-12-2007, 10:22 AM
  7. Need an Alternative to "Rank" function
    By jscully in forum Excel Formulas & Functions
    Replies: 8
    Last Post: 11-27-2006, 02:01 PM

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts

Search Engine Friendly URLs by vBSEO 3.6.0 RC 1