+ Reply to Thread
Results 1 to 4 of 4

PercentRank Array Formula returns Error

  1. #1
    Registered User
    Join Date
    03-10-2014
    Location
    California
    MS-Off Ver
    Excel 2007
    Posts
    70

    PercentRank Array Formula returns Error

    I'm assuming I just don't understand what the formula I'm trying to use is actually doing. I'm trying to use an If function to narrow down my array field to use multiple criteria.

    I am trying to find the percent rank of each value in column B, but only count values in the array that satisfy criteria in columns D, E, and F, where D = whatever the value in the row D is, and row E = "No" and row F = 1.

    The formula I'm using, with ctrl + shift + enter:
    =PERCENTRANK.EXC(IF(($F$1:$F$18=1)*($D$1:$D$18=$D1)*($E$1:$E$18="No"),$B$1:$B$18),B1)

    The formula seems to work (or at least doesn't return an error) for all cells except the top 3. If I remove the ($F$1:$F$18=1) from the formula, then no errors are returned. If I change one of the values in column F to 1, then it doesn't return an error. It just doesn't make sense to me because there are other rows that don't return an error that have the same number of correct parameters in the row. There's nothing (seemingly) different about the rows that return an error.

    Any help would be greatly appreciated!
    Attached Files Attached Files

  2. #2
    Forum Guru Bo_Ry's Avatar
    Join Date
    09-10-2018
    Location
    Thailand
    MS-Off Ver
    MS 365
    Posts
    7,211

    Re: PercentRank Array Formula returns Error

    At G1
    =IF(($F$1:$F$18=1)*($D$1:$D$18=$D1)*($E$1:$E$18="No"),$B$1:$B$18)
    ={FALSE;FALSE;FALSE;2.89991;FALSE;FALSE;3.20161;3.64416;FALSE;FALSE;FALSE;FALSE;FALSE;FALSE;FALSE;FALSE;FALSE;FALSE}
    return 3 number
    2.89991, 3.20161 ,3.64416

    B1 =0.4433 is not in the range of 2.89991-3.64416 #N/A for out of the range.

    Other rows return value because in is in the range.

  3. #3
    Registered User
    Join Date
    03-10-2014
    Location
    California
    MS-Off Ver
    Excel 2007
    Posts
    70

    Re: PercentRank Array Formula returns Error

    Ah, I get it. My formula is not wrong at all - only my understanding of the percentile rank. I guess I can just make an IFERROR and call it a day.

  4. #4
    Forum Expert
    Join Date
    06-08-2012
    Location
    Left the forum!
    MS-Off Ver
    Left the forum!
    Posts
    5,189

    Re: PercentRank Array Formula returns Error

    Quote Originally Posted by HalPlz View Post
    I'm assuming I just don't understand what the formula I'm trying to use is actually doing.

    The formula seems to work (or at least doesn't return an error) for all cells except the top 3.
    Quote Originally Posted by HalPlz View Post
    I guess I can just make an IFERROR and call it a day.
    The real question here, is do you know the results that you want?

    I've compressed your sample file to 3 rows, are the results of the formula what you would expect?

    In my opinion, the first one looks wrong, but that could simply be because I don't know what is expected.

    Please Login or Register  to view this content.

+ 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] PercentRank.Inc using a filtered array
    By bebiba in forum Excel Formulas & Functions
    Replies: 2
    Last Post: 10-25-2018, 09:44 AM
  2. [SOLVED] Conditional PercentRank without array formula required
    By Yadavgiri in forum Excel Formulas & Functions
    Replies: 22
    Last Post: 08-12-2018, 11:06 PM
  3. Replies: 5
    Last Post: 05-18-2016, 04:50 AM
  4. [SOLVED] Max/If Array Returns #value! error
    By frostkp3 in forum Excel Formulas & Functions
    Replies: 11
    Last Post: 12-15-2015, 12:00 PM
  5. Converting Array Formula into VBA returns an error
    By HJHamm in forum Excel Programming / VBA / Macros
    Replies: 7
    Last Post: 12-23-2014, 12:31 PM
  6. [SOLVED] PERCENTRANK Entire Column via Array Formula
    By Chip4Pips in forum Excel Formulas & Functions
    Replies: 6
    Last Post: 12-28-2013, 02:33 PM
  7. [SOLVED] PERCENTRANK in array formula: strange behavior
    By vezerid in forum Excel General
    Replies: 4
    Last Post: 03-09-2006, 12:11 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