Percentile and if statement

bluepenink

Well-known Member
Joined
Dec 21, 2010
Messages
585
Hi all

I have offices listed in range I14:I950
I have sales listed in range O14:O950

so i want to apply the 25th percentile number to the bottom third of the people; the median (50% percentile) number to the middle third of the people and the 75th percentile number to the top third of the people? - can this formula be unique by location? i want to exclude 0s and blanks

I have this previous formula
Code:
=IF($O14=0,"",LOOKUP(PERCENTRANK(IF(($I$14:$I$960=$I14)*($O$14:$O$960<>0),$O$14:$O$960),$O14),{0,0.25,0.75,0.9},{"","25th","75th","90th"}))

but dunno how to modify it so it provides 25th percentile to bottom 1/3 of ppl, 50th percentile to middle 1/3 of ppl and 75th percentile to top 1/3 of the ppl, in the range?

thxs so much!
 

Excel Facts

Test for Multiple Conditions in IF?
Use AND(test, test, test, test) or OR(test, test, test, ...) as the logical_test argument of IF.

Forum statistics

Threads
1,215,018
Messages
6,122,703
Members
449,093
Latest member
Mnur

We've detected that you are using an adblocker.

We have a great community of people providing Excel help here, but the hosting costs are enormous. You can help keep this site running by allowing ads on MrExcel.com.
Allow Ads at MrExcel

Which adblocker are you using?

Disable AdBlock

Follow these easy steps to disable AdBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the icon in the browser’s toolbar.
2)Click on the "Pause on this site" option.
Go back

Disable AdBlock Plus

Follow these easy steps to disable AdBlock Plus

1)Click on the icon in the browser’s toolbar.
2)Click on the toggle to disable it for "mrexcel.com".
Go back

Disable uBlock Origin

Follow these easy steps to disable uBlock Origin

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back

Disable uBlock

Follow these easy steps to disable uBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back
Back
Top