+ Reply to Thread
Results 1 to 4 of 4

How to find the Percentile Rank from an array given a value ?? [easy for most]

  1. #1
    Forum Contributor
    Join Date
    09-23-2015
    Location
    Toronto, Ontario
    MS-Off Ver
    Excel 2010
    Posts
    187

    How to find the Percentile Rank from an array given a value ?? [easy for most]

    Hey guys,

    I have an array of values [stock prices], in column D there is a value that represents the current value and I am trying to translate that to a percentile given the array of values over the last 1yr.

    The Problem:

    If the current value doesn't line up tot he exact decimal point to any value in the array than the formula returns an error. If however I have an exact value from the table it works. Here's the problem, because I am dealing with 2 decimal places - it almost will never line up to one of the combinations in the array.

    The GOAL:

    How can I make this formula work that no matter what the current value is in Column D, it will tell me the percentileranking in the array - regardless if it isn't an exact match.


    Pls anything would help!
    Attached Files Attached Files

  2. #2
    Valued Forum Contributor
    Join Date
    12-01-2016
    Location
    Planet Earth
    MS-Off Ver
    95 - 2016
    Posts
    343

    Re: How to find the Percentile Rank from an array given a value ?? [easy for most]

    The code is working as intended. You will receive the error (#N/A) when the number in Last (Column D) is lower than the MIN number or higher than the MAX number.

  3. #3
    Forum Contributor
    Join Date
    09-23-2015
    Location
    Toronto, Ontario
    MS-Off Ver
    Excel 2010
    Posts
    187

    Re: How to find the Percentile Rank from an array given a value ?? [easy for most]

    Quote Originally Posted by Syrkrasi View Post
    The code is working as intended. You will receive the error (#N/A) when the number in Last (Column D) is lower than the MIN number or higher than the MAX number.
    Okay I see you are right. I have a follow up question. Would there be a way to have a formula to identify if the number in Last (Column D) is lower than the MIN number and put 0 or MAX number and put 100....

    Would be nice if I can work around this so when these cases happen it knows its the smallest value --> 0th percentile or max value --> 100th percentile

  4. #4
    Valued Forum Contributor
    Join Date
    12-01-2016
    Location
    Planet Earth
    MS-Off Ver
    95 - 2016
    Posts
    343

    Re: How to find the Percentile Rank from an array given a value ?? [easy for most]

    Sure

    =IF(D4<MIN($T$3:$T$254),0,IF($D4>MAX($T$3:$T$254),100,PERCENTRANK.INC($T$3:$T$254,$D4)))
    Attached Files Attached Files
    Last edited by Syrkrasi; 07-18-2017 at 04:04 PM.

+ 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. Help Needed Percentile rank based off of an array
    By drcline87 in forum Excel Formulas & Functions
    Replies: 1
    Last Post: 05-12-2017, 01:36 PM
  2. Percentile Rank w/ Numerical Array
    By jdanfor1 in forum Excel Formulas & Functions
    Replies: 9
    Last Post: 12-05-2016, 01:58 PM
  3. Replies: 0
    Last Post: 01-01-2016, 05:06 PM
  4. determining percentile rank based on fixed quartile values
    By cartman88 in forum Excel Formulas & Functions
    Replies: 0
    Last Post: 04-22-2015, 04:58 PM
  5. Rank Teams in Performance Order - not as easy as just =Rank...
    By excelnat in forum Excel Formulas & Functions
    Replies: 2
    Last Post: 02-06-2015, 12:12 PM
  6. weird rank/percentile question
    By jtrugman in forum Excel General
    Replies: 0
    Last Post: 11-03-2009, 06:10 PM
  7. percentile rank change
    By dujang in forum Excel Formulas & Functions
    Replies: 0
    Last Post: 11-13-2006, 05:44 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