Results 1 to 7 of 7

Thread: Excel PERCENTILE function without 0

  1. #1
    Join Date
    May 2009
    Posts
    3,613

    Excel PERCENTILE function without 0

    I found an appropriate function in Excel called ''PERCENTILE'' almost to my needs! The item which does not suit me is that the function takes into account the value 0 and I do not want to take into account this value. Is there anyone who can provide me a trick to use Excel PERCENTILE function without 0? If its not possible then is there any other function suitable for the same?

  2. #2
    Join Date
    Nov 2008
    Posts
    1,022

    Re: Excel PERCENTILE function without 0

    Ok, I have an idea. In another cell C1 you put the value which is 0 or not (or reference) and in your percentile calculation cell, you add the formula in a condition as follows:
    Code:
     = IF (C1 = 0; "error"; PERCENTILE (...))

  3. #3
    Join Date
    May 2009
    Posts
    3,613

    Re: Excel PERCENTILE function without 0

    Sorry but the proposal: = IF (C1 = 0; "error"; PERCENTILE (...)) can not function because that percentile function takes into account a range of data and values can be 0 in several cells.

    I think that function has not been well understood. Thank you anyway.

  4. #4
    Join Date
    Nov 2008
    Posts
    1,054

    Re: Excel PERCENTILE function without 0

    Try:
    Code:
    = IF (PERCENTILE (A2: B4; 0) = 0; "error"; PERCENTILE (A2: B4; 0))

  5. #5
    Join Date
    Nov 2008
    Posts
    1,185

    Re: Excel PERCENTILE function without 0

    The solution will involve a matrix
    Code:
    = PERCENTILE (IF (range = 0; ""; range ), k)
    to validate array (Ctrl + Shift + Enter)

    For example, to find the 90th percentile in a range of value from A1 to A500 omitting the 0, you can use the array formula
    Code:
    = PERCENTILE (IF (A1: A500 = 0; "", A1: A500); 0.9)
    to validate array (Ctrl + Shift + Enter)

  6. #6
    Join Date
    May 2009
    Posts
    3,613

    Re: Excel PERCENTILE function without 0

    Thank you for your answers and your help. I tried the formula
    Code:
    = PERCENTILE (IF (range = 0; ""; range ), k)
    without the braces on both sides of the formula. The result is correct only if I look at it by opening the window by clicking on FX (in the toolbar) if the value in the cell is wrong because it takes account of 0.

    I'd like to try with the braces but I can not confirm the function. (Ctrl + Shift + Enter) does not work!
    Code:
    = PERCENTILE (IF (A2: A500 = 0; "", A2: A500); 0.9)
    The message indicates that the formula contains an error.

  7. #7
    Join Date
    Nov 2008
    Posts
    1,185

    Re: Excel PERCENTILE function without 0

    For validation matrix, do not put braces. It should normally take the form and confirm with Ctrl + Shift + Enter. Excel adds the braces during validation.

    So, remove the brackets in your formula, enter the formula
    Code:
     = PERCENTILE (IF (A2: A500 = 0; "", A2: A500), 0.9)
    Validate matrix, and then you shall
    Code:
     (= PERCENTILE (IF (A2: A500 = 0; "", A2: A500), 0.9))
    in the formula bar

Similar Threads

  1. How to use antilog function in excel
    By Raju Chacha in forum Microsoft Project
    Replies: 1
    Last Post: 08-01-2012, 06:58 PM
  2. Excel Function and Excel Chart Colors
    By Samarth in forum Windows Software
    Replies: 5
    Last Post: 13-01-2010, 08:16 PM
  3. Search MAX / IF function in excel
    By Windowed in forum Windows Software
    Replies: 5
    Last Post: 05-01-2010, 02:00 PM
  4. How to Use Excel's SUBTOTAL Function
    By CrazeD in forum Windows Software
    Replies: 3
    Last Post: 01-12-2009, 12:03 PM
  5. Need information on Some Excel function
    By io78 in forum Windows Software
    Replies: 3
    Last Post: 02-07-2009, 11:49 PM

Tags for this Thread

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
  •  
Page generated in 1,713,574,004.53355 seconds with 17 queries