Results 1 to 3 of 3

Combining Percentile, IF functions with Positive and Negative values

Threaded View

  1. #1
    Registered User
    Join Date
    08-29-2018
    Location
    California
    MS-Off Ver
    Office 365
    Posts
    12

    Combining Percentile, IF functions with Positive and Negative values

    Hi,

    So I have a spreadsheet of weekly opening and closing prices for a stock.
    I'm trying to combine a Percentile function with an IF function on a range that has positive and negative values.

    Here's my current formula:
    =ROUND(PERCENTILE.INC(IF($M:$M=$AB$1,$L:$L,),Y$2+0.01),2)

    M column indicates if the week finished up or down.
    L column gives the change in value for the week, value positive if week was up, negative if week was down
    AB1 is the cell where I select up or down to choose which data set I want to see the values of.
    Y2 is the cell where I set the percentage value that I want the Percentile function to calculate.

    Current results:
    When I set AB1 to Up, this formula appears to work well.
    When I set AB1 to Down, this formula returns 0 instead of a negative number.
    When I use Alt+Shift+Enter, this formula returns 0 regardless if I have AB1 set to Up or Down.

    I tried searching for available solutions on this board and others, but none that I've tried has worked.
    Based on one solution I saw, I tried putting in ABS(L:L), but that gave me an error.
    Another solution I saw, I tried to put 1-Y2 for negative values, but that returned 0 for me as well.

    I'm not sure what I'm doing wrong.
    Any help would be greatly appreciated.
    Last edited by VenatusNocte; 08-29-2018 at 05:01 PM. Reason: solved

Thread Information

Users Browsing this Thread

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

Similar Threads

  1. Replies: 10
    Last Post: 09-24-2018, 09:26 AM
  2. [SOLVED] Sum positive and negative values
    By Nutzman in forum Excel General
    Replies: 4
    Last Post: 12-09-2017, 10:19 AM
  3. [SOLVED] Median, Percentile, Min functions which can handle #N/A values
    By moty.98 in forum Excel Formulas & Functions
    Replies: 2
    Last Post: 11-18-2012, 09:04 AM
  4. Looking for a positive value ABOVE negative values
    By ckatzman in forum Excel Formulas & Functions
    Replies: 1
    Last Post: 10-05-2012, 08:54 PM
  5. Replies: 8
    Last Post: 07-28-2012, 03:22 PM
  6. Convert negative to positive in sheet containing both positive/negative numbers
    By sa02000 in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 05-29-2010, 07:52 PM
  7. Replies: 4
    Last Post: 09-26-2005, 06:05 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