Skip to content
Free Excel Tutorials
  • Home
  • Excel For Beginners
  • Excel Intermediate
  • Advanced Excel For Experts

Data Analysis

  • Create Scatter Chart in Excel
  • Filter Data Based on Date in Excel
  • How To Load Analysis ToolPak in Excel
  • How To Create Pareto Chart in Excel
  • Use Data Form to input, edit and delete records in Excel

References

  • Count rows that contain specific values in Excel
  • Merge tables with VLOOKUP in Excel
  • Convert text string to valid reference in Excel using Indirect function
  • Find Closest Match in Excel Using INDEX, MATCH, ABS and MIN functions
  • How to use Excel LOOKUP Function

Data Validations

  • Excel Data validation allow uppercase only
  • Excel Data validation date in specific year
  • Excel Data validation whole percentage only
  • Excel Data validation specific characters only
  • Excel Data validation number multiple 100

Calculate Conditional Percentile ‘IF’ in table in Excel

by

To calculate a conditional percentile, you can use an array formula using the IF function inside the PERCENTILE function. See example below:

Formula

=PERCENTILE(IF(criteria,values),k)

Calculate Conditional Percentile 'IF' in table in Excel

Note: This is an array formula and must be entered with control + shift + enter.

Explanation

In the example shown, the formula in G5 is:

=PERCENTILE(IF(Table[Gender]=G$4,Table[Score]),$F5)

Where “Table” is an Excel Table with data in B5:D14.

How this formula works

This formula sits inside a small summary table with percentile values in column F and gender values in G4 and H4.

Working from the inside out, the IF function is set up like this:

IF(Table[Gender]=G$4,Table[Score])

Here, each value in the gender column is tested against the value in G4, “Male”.

The result is an array of boolean values like this:

{88;85;77;FALSE;FALSE;FALSE;83;FALSE;FALSE;79}

Only scores associated with males make it into the array, female scores are translated to FALSE. This array goes into the PERCENTILE function with the k value from F5, 90%.

PERCENTILE automatically ignores FALSE values and returns a result of 86.8.

The reference to Gender in G$4 is locked to prevent the row from changing. The reference to k values, $F5 is locked to prevent the column from changing. As a result, the formula can be copied across the range G5:H7.

Post navigation

Previous Post:

How to calculate project complete percentage in Excel

Next Post:

Popularly Used Excel Functions and their examples

Leave a Reply Cancel reply

Your email address will not be published. Required fields are marked *

Learn Basic Excel

Ribbon
Workbook
Worksheets
Format Cells
Find & Select
Sort & Filter
Templates
Print
Share
Protect
Keyboard Shortcuts

Categories

  • Charts
  • Data Analysis
  • Data Validation
  • Excel Functions
    • Cube Functions
    • Database Functions
    • Date and Time Functions
    • Engineering Functions
    • Financial Functions
    • Information Functions
    • Logical Functions
    • Lookup and Reference Functions
    • Math and Trig Functions
    • Statistical Functions
    • Text Functions
    • Web Functions
  • Excel VBA
  • Excel Video Tutorials
  • Formatting
  • Grouping
  • Others

Logical Functions

  • Invoice status with nested if in Excel
  • OR function: Description, Usage, Syntax, Examples and Explanation
  • XOR function: Description, Usage, Syntax, Examples and Explanation
  • Complete List of Excel Logical Functions, References and Examples
  • Not Equal To ‘<>‘ operator in Excel

Date Time

  • NETWORKDAYS function: Description, Usage, Syntax, Examples and Explanation
  • Convert date to month and year in Excel
  • Get days, months, and years between dates in Excel
  • Assign points based on late time in Excel
  • How to calculate future date say 6 months ahead in Excel

Grouping

  • Group times into 3 hour buckets in Excel
  • Map inputs to arbitrary values in Excel
  • Group numbers with VLOOKUP in Excel
  • Categorize text with keywords in Excel
  • Group numbers at uneven intervals in Excel

General

  • How to generate random number between two numbers in Excel
  • Freeze and Unfreeze Panes in Excel
  • How to calculate percentage of total in Excel
  • Excel Ribbon Quick Overview For Beginners
  • AutoRecover file that was never saved in Excel
© 2025 xlsoffice . All Right Reserved. | Teal Smiles | Abbreviations And Their Meaning