+ Reply to Thread
Results 1 to 8 of 8

Percentile formula w/ 4 diff logics (multiple criteria)

  1. #1
    Forum Contributor
    Join Date
    11-26-2010
    Location
    usa
    MS-Off Ver
    Office 365
    Posts
    1,233

    Percentile formula w/ 4 diff logics (multiple criteria)

    Hi

    Looking for help with percentile aggregation based on 3 different methods.

    I have offices listed in column I, column O shows value for each row item.

    in column Q, i would like to show, 20th, 40th, 60th, and 80th percentile ranking applied to 25% of each population. So, bottom 25% will get 20th percentile, 25% population will get 40th percentile...top 25% will get 80th (exclude 0s and blanks)

    in column R, same as above logic, however, it's based on 17th, 33rd, 50th, 66th and 83rd percentile and based on 20% of population per bucket (exclude 0s and blanks)

    in column S, same as above logic as well, however, broken down by 7th, 50th and 25th percentile, and it applies to 1/3 or 33.333% of each bucket. So meaning, bottom 1/3 of population will get 25th percentile ranking, mid 1/3 of population will get 50th percentile, and top 1/3 will get 75th percentile ranking

    I have attached the spreadsheet.

    column P has this formula - it shows percentile of 90th, 75th and 25th (exclude 0s and blanks), however, if values fall below 25th percentile, it shows "", when i would like for it to show 25th ----> can this formula be modified to use for above renditions?

    Please Login or Register  to view this content.
    thx
    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,222

    Re: Percentile formula w/ 4 diff logics (multiple criteria)

    I do not understand, but my guess is

    Q6:S6
    =1/5 , =1/6 , =1/4

    Q14
    =IFERROR(FLOOR(PERCENTRANK.EXC(IF(($I$14:$I$960=$I14)*($O$14:$O$960<>0),$O$14:$O$960),$O14),Q$6)*100,"")
    Attached Files Attached Files

  3. #3
    Forum Contributor
    Join Date
    11-26-2010
    Location
    usa
    MS-Off Ver
    Office 365
    Posts
    1,233

    Re: Percentile formula w/ 4 diff logics (multiple criteria)

    Hi, that seems to work

    question however is, it seems some of these columns show "100" as the percentile. is it possible to i.e. cap column Q at 80th? and column R at 83rd and column S at 75th?

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

    Re: Percentile formula w/ 4 diff logics (multiple criteria)

    Yes, Try this at Q14

    =IFERROR(MIN(1-Q$6,FLOOR(PERCENTRANK.EXC(IF(($I$14:$I$960=$I14)*($O$14:$O$960<>0),$O$14:$O$960),$O14),Q$6))*100,"")
    Attached Files Attached Files

  5. #5
    Forum Contributor
    Join Date
    11-26-2010
    Location
    usa
    MS-Off Ver
    Office 365
    Posts
    1,233

    Re: Percentile formula w/ 4 diff logics (multiple criteria)

    hi there

    i have attached the file.

    it's assigning a percentile amount to 0s - can you see the attached file with the formula i.e. row 16:18 as examples.

    thxs so much!
    Attached Files Attached Files

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

    Re: Percentile formula w/ 4 diff logics (multiple criteria)

    Try this

    =IFERROR(1/(1/MIN(1-Q$6,FLOOR(PERCENTRANK.EXC(IF(($I$14:$I$960=$I14)*($O$14:$O$960<>0),$O$14:$O$960),$O14),Q$6)))*100,"")

    **Array formulas are not entered in the same way as 'standard' formulas. Instead of pressing just ENTER, you first hold down CTRL and SHIFT, and only then press ENTER. If you've done it correctly, you'll notice Excel puts curly brackets {} around the formula (though do not attempt to manually insert these yourself).
    Attached Files Attached Files

  7. #7
    Forum Contributor
    Join Date
    11-26-2010
    Location
    usa
    MS-Off Ver
    Office 365
    Posts
    1,233

    Re: Percentile formula w/ 4 diff logics (multiple criteria)

    hi Bo_ry

    this above formula seems to be working, however, there are instances where if there is a value in column O, it is still not assigning the "lowest" percentile to the amount.

    I have attached the file and highlighted in yellow in columns Q:S.

    Can you pls let me know if it's possible to add a percentile to any value greater than 0?

    thanks
    Attached Files Attached Files

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

    Re: Percentile formula w/ 4 diff logics (multiple criteria)

    You should put expected result, I have no idea what number you expect to show.

    show 0
    =IFERROR(MIN(1-Q$6,FLOOR(PERCENTRANK.EXC(IF(($I$14:$I$960=$I14)*($O$14:$O$960<>0),$O$14:$O$960),$O14),Q$6))*100,"")

    show 20
    =IFERROR(MIN(1-Q$6,MAX(Q$6,FLOOR(PERCENTRANK.EXC(IF(($I$14:$I$960=$I14)*($O$14:$O$960<>0),$O$14:$O$960),$O14),Q$6)))*100,"")

+ 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. Need help with multiple logics in one cell
    By jfrench08 in forum Excel Formulas & Functions
    Replies: 3
    Last Post: 01-15-2019, 06:02 PM
  2. Using IF with vlookup and Multiple AND & OR Logics
    By IkramRaja in forum Excel Formulas & Functions
    Replies: 2
    Last Post: 07-24-2018, 03:12 AM
  3. IF Formula - Multiple logics
    By failinglights in forum Excel Formulas & Functions
    Replies: 3
    Last Post: 11-24-2016, 07:52 PM
  4. [SOLVED] Multiple logics in one formula
    By bremen22 in forum Excel Formulas & Functions
    Replies: 2
    Last Post: 07-23-2013, 06:17 PM
  5. Need help for multiple logicals/ nested logics if function
    By tussitje in forum Excel Formulas & Functions
    Replies: 5
    Last Post: 11-06-2012, 06:24 AM
  6. [SOLVED] Formula Help with three logics
    By ssanjju in forum Excel General
    Replies: 3
    Last Post: 08-09-2012, 10:15 PM
  7. Need Percentile VBA Coding with multiple criteria
    By vinothsudar in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 06-10-2009, 04:45 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