Percentile with IF statement

mbriz

New Member
Joined
Sep 23, 2015
Messages
3
I have a spreadsheet where I am calculating average GPA by month over the course of three years. The data is pulling from a table I have on another spreadsheet. I want to find the 25th percentile for each month. The formula i'm trying to use is:

=PERCENTILE.INC(IF(Table1[TERM_CODE_ENTRY]=A2,IF(Table1[APDC_DATE]"<"&B2)"","")Table1[HS_GPA],0.25)

If you all need more background info, please let me know. Thank you!
 

Excel Facts

Copy a format multiple times
Select a formatted range. Double-click the Format Painter (left side of Home tab). You can paste formatting multiple times. Esc to stop
To clarify, I have three terms with thousands of records, so it would be difficult to do a percentile formula for each month within the term. For example, I need to calculate the 25th percentile of students who are in term 2013, but also were accepted to the program by a specific date. For example, the average GPA for those who were accepted by 9/1/2012 for term 2013 was 3.45. Now I need the percentile formula so I can drag this formula down across terms and dates.
 
Upvote 0
Not sure how your actual data is set up, but maybe this will help you get the right syntax.
Only difference in the formulas below is the one in E2 has the date hard coded and the one in E5 looks to cell E4 for the date.
These are array formulas and must be entered with
Excel Workbook
ABCDEF
1TERM_CODE_ENTRYAPDC_DATEHS_GPA
220136/12/201243.3
320136/8/20123.8
420138/13/20123.49/1/2012
520137/22/20123.33.3
620138/26/20122.9
720147/9/20133.7
820145/29/20133.2
920146/1/20132.5
1020148/13/20132.1
1120148/14/20132.9
1220146/14/20134
13
CTRL-SHIFT-ENTER.
 
Upvote 0
You're welcome. Thanks for the feedback and welcome to the forum.
 
Upvote 0

Forum statistics

Threads
1,223,231
Messages
6,170,885
Members
452,364
Latest member
springate

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