+ Reply to Thread
Results 1 to 6 of 6

Percentile/IF/empty cells

  1. #1
    Registered User
    Join Date
    07-10-2013
    Location
    Danmark
    MS-Off Ver
    Excel 2010
    Posts
    10

    Percentile/IF/empty cells

    I'm currently working with excel, trying to get back the top scoring returns from shares traded on a stock index. Since this index has changed a lot over time, I put all shares on the same sheet, named the rows by date and the columns by shares. What I need to do is get excel to return values that lie within a certain percentile on a new sheet. I do this by using the following formula:

    =IF('Monthly performance'!D24>=PERCENTILE.EXC('Monthly performance'!$B$24:$MB$24;0.7);'Monthly performance'!D24;"")

    This works well as long as all the values in a row are directly next to one another, but if a few cells are blank, excel counts these cells as if they are zero skewing the percentile distribution. In the sheet from where I get the data (where the blanks exist) I use an Iferror formula that gives "" Iferror. that may be the problem. Although I have tried to copy paste values (so the blanks really are blanks) but the percentile function still gets skewed.

    Please see attached.Momentum Excelhelp.xlsx

    Thanks for helping me out!

  2. #2
    Forum Expert martindwilson's Avatar
    Join Date
    06-23-2007
    Location
    London,England
    MS-Off Ver
    office 97 ,2007
    Posts
    19,320

    Re: Percentile/IF/empty cells

    your profile shows Excel 2007 PERCENTILE.EXC is not in 2007 please amend your profile
    "Unless otherwise stated all my comments are directed at OP"

    Mojito connoisseur and now happily retired
    where does code go ?
    look here
    how to insert code

    how to enter array formula

    why use -- in sumproduct
    recommended reading
    wiki Mojito

    how to say no convincingly

    most important thing you need
    Martin Wilson: SPV
    and RSMBC

  3. #3
    Administrator FDibbins's Avatar
    Join Date
    12-29-2011
    Location
    Duncansville, PA USA
    MS-Off Ver
    Excel 7/10/13/16/365 (PC ver 2310)
    Posts
    53,048

    Re: Percentile/IF/empty cells

    I was just looking at the too Martin, thought it might be an add-in like Morefunc
    1. Use code tags for VBA. [code] Your Code [/code] (or use the # button)
    2. If your question is resolved, mark it SOLVED using the thread tools
    3. Click on the star if you think someone helped you

    Regards
    Ford

  4. #4
    Registered User
    Join Date
    07-10-2013
    Location
    Danmark
    MS-Off Ver
    Excel 2010
    Posts
    10

    Re: Percentile/IF/empty cells

    Sorry guys, I've got 2010.

  5. #5
    Registered User
    Join Date
    07-10-2013
    Location
    Danmark
    MS-Off Ver
    Excel 2010
    Posts
    10

    Re: Percentile/IF/empty cells

    However, the problem still remains when using only PERCENTILE

    You guys got some ideas then?

  6. #6
    Forum Expert martindwilson's Avatar
    Join Date
    06-23-2007
    Location
    London,England
    MS-Off Ver
    office 97 ,2007
    Posts
    19,320

    Re: Percentile/IF/empty cells

    i tried percentile and it gives the same result as percentile.exe
    maybe
    =PERCENTILE(IF(ISNUMBER('Monthly performance'!$B$24:$MB$24),IF('Monthly performance'!$B$24:$MB$241>0,'Monthly performance'!$B$24:$MB$24)),0.7) array entered
    tested with

    =PERCENTILE(IF(ISNUMBER(G27:J27),IF(G27:J27>0,G27:J27)),0.7) wher g27, h27 ,j27 hold values and i27 is blank
    and
    =PERCENTILE(G26:I26,0.7) where all 3 have the same values as above no blanks and get the same answer

+ 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. MACRO to empty a range of cells based on whether specified cell is empty
    By TBJV in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 05-01-2013, 10:35 PM
  2. Replies: 5
    Last Post: 01-12-2013, 12:16 AM
  3. [SOLVED] PERCENTILE.INC and PERCENTILE.EXC - difference
    By Saturn in forum Excel Formulas & Functions
    Replies: 3
    Last Post: 08-19-2012, 11:34 AM
  4. Percentile function applied only to visible cells
    By bradleyverde in forum Excel General
    Replies: 0
    Last Post: 04-12-2010, 11:07 AM
  5. macro to colour empty cells (cells not recognized as empty)
    By Gerben in forum Excel Programming / VBA / Macros
    Replies: 5
    Last Post: 06-30-2005, 11:05 AM

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