Using Percentile formula with conditions?

Jezzzza

New Member
Joined
Jun 29, 2023
Messages
7
Office Version
  1. 365
Platform
  1. MacOS
I have a project list with multiple service lines, departments, included. I am trying to create a formula that will essentially flag each row with either yes or no, finding if the project listed in that row is in the 90th percentile, or top 10% of the highest budgeted projects in the list. Ideally I would like it to exclude any line that has a zero for the budget column, and I want to be able to use the specific row's assigned service line to calculate the percentile of all projects in that same service line, from the main list.

This is my current formula:

=IF(AND(([@TransBudget]>=0),([@[Project stage]]="Active"),([@TransBudget]>=PERCENTILE.INC(H:H,0.9))),"YES","NO")

but I am having trouble adding the condition of it looking at only other items in the master list that have the same service line listed as the row it is looking at.

Thanks!
 

Excel Facts

Select all contiguous cells
Pressing Ctrl+* (asterisk) will select the "current region" - all contiguous cells in all directions.
MacOS is hopefully the same.

MrExcelPlayground18.xlsx
ABCD
1Project StageTransbudgetService LineTop 10% Budget in Service Line
2Active$ 4,774.001No
3Active$ 9,089.001No
4Active$ 155.001No
5Dead$ 8,786.001No
6Active$ 6,409.002No
7Active$ 9,077.002Yes
8Active$ 6,062.002No
9Dead$ 8,855.003Yes
10Active$ 4,556.003No
11Active$ 3,265.003No
12Active$ 4,338.003No
13Active$ 344.003No
14Dead$ 4,782.003No
15Active$ 6,438.003No
16Active$ 5,309.004No
17Active$ 9,302.004Yes
18Active$ 5,774.004No
19Dead$ 2,726.001No
20Active$ 4,076.001No
21Active$ 6,946.001No
22Active$ 7,995.001No
23Active$ 7,029.002No
24Dead$ 3,023.002No
25Active$ 4,714.002No
26Active$ 4,012.003No
27Active$ 6,628.004No
28Active$ 4,973.003No
29Active$ 3,936.003No
30Active$ 1,228.003No
31Active$ 6,207.003No
32Active$ 7,320.003No
33Active$ 105.004No
34Active$ 438.004No
35Active$ 8,319.004Yes
36Active$ 6,685.004No
37Active$ 4,340.004No
38Dead$ 1,386.001No
39Active$ 2,513.001No
40Active$ 9,334.001No
41Active$ 236.001No
42Active$ 9,275.001No
43Active$ 9,825.001Yes
44Active$ 3,611.001No
45Active$ 7,662.001No
46Dead$ 7,657.001No
47Active$ 4,839.002No
48Active$ 2,024.002No
49Active$ 5,343.002No
50Dead$ 162.003No
51Active$ 4,699.003No
52Active$ 5,879.003No
53Active$ 5,865.003No
54Active$ 8,632.003No
55Dead$ 1,519.003No
56Active$ 9,103.003Yes
57Active$ 6,864.004No
58Active$ 2,171.004No
59Active$ 709.004No
60Active$ 5,756.004No
61Active$ 2,257.004No
62Active$ 7,320.003No
63Active$ 105.004No
64Active$ 438.004No
65Active$ 8,319.004Yes
66Active$ 6,685.004No
67Active$ 4,340.004No
68Dead$ 1,386.001No
69Active$ 2,513.001No
70Active$ 9,334.001No
71Active$ 236.001No
72Active$ 9,275.001No
73Active$ 9,825.001Yes
74Active$ 3,611.001No
75Active$ 7,662.001No
76Dead$ 7,657.001No
77Active$ 4,839.002No
78Active$ 2,024.002No
79Active$ 5,343.002No
80Dead$ 162.003No
81Active$ 4,699.003No
82Active$ 5,879.003No
83Active$ 5,865.003No
84Active$ 8,632.003No
85Dead$ 1,519.003No
86Active$ 9,103.003Yes
87Active$ 6,864.004No
88Active$ 2,171.004No
89Active$ 709.004No
90Active$ 5,756.004No
91Active$ 2,257.004No
Sheet16
Cell Formulas
RangeFormula
D2:D91D2=IF([@Transbudget]>PERCENTILE.INC(FILTER([Transbudget],([@Transbudget]>0)*([Project Stage]="Active")*([Service Line]=[@[Service Line]])),0.9),"Yes","No")
 
Upvote 0

Forum statistics

Threads
1,224,823
Messages
6,181,170
Members
453,021
Latest member
Justyna P

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