Skip to content
xlsoffice. All Rights Reserved
  • Home
  • Excel For Beginners
  • Excel Intermediate
  • Advanced Excel For Experts

Lookup and Reference Examples

  • Create hyperlink with VLOOKUP in Excel
  • How to calculate two-way lookup VLOOKUP in Excel Table
  • How to use Excel INDIRECT Function
  • Get nth match with INDEX / MATCH in Excel
  • To count total rows in a range in Excel

Data Analysis Examples

  • Conflicting Multiple Conditional Formatting Rules in Excel
  • How to create a Histogram in Excel
  • Add Outline to Data in Excel
  • Randomize/ Shuffle List in Excel
  • How to perform a t-Test in Excel

Data Validation Examples

  • Data validation must not exist in list
  • Prevent invalid data entering in specific cells
  • Excel Data validation don’t exceed total
  • Excel Data validation no punctuation
  • Excel Data validation must not contain

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)

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.

Worked Example:   How to check cell contains which things in Excel

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”.

Worked Example:   How to create dynamic reference table name in Excel

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%.

Worked Example:   Count Errors in Excel

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:

Example of COUNTIFS with variable table column in Excel

Next Post:

How to create dynamic reference table name in Excel

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
  • FIXED function: Description, Usage, Syntax, Examples and Explanation
  • How to check if cell contains one of many things in Excel
  • T function: Description, Usage, Syntax, Examples and Explanation
  • Remove last characters from right in a cell in Excel
  • LEN, LENB functions: Description, Usage, Syntax, Examples and Explanation
  • Count times in a specific range in Excel
  • How to get Holiday Date from Year in Excel
  • Get last working day in month in Excel
  • How to Calculate Age in Excel
  • Convert date to month and year in Excel
  • How to calculate compound interest in Excel
  • COUPNCD function: Description, Usage, Syntax, Examples and Explanation
  • DDB function: Description, Usage, Syntax, Examples and Explanation
  • COUPDAYBS function: Description, Usage, Syntax, Examples and Explanation
  • MDURATION function: Description, Usage, Syntax, Examples and Explanation
Acronyms, Abbreviations, Initialism & What They Stand For
© 2021 xlsoffice. All Rights Reserved | Teal Smiles