Calculation Issues

How to Calculate Monthly Percentiles Without Skipping Rows in Excel or WPS

Muhammad TalhaMuhammad Talha Nov 10, 2026 868 views

Question details

The user wants to calculate the 20th and 80th percentiles for specific months from a continuous dataset without manually selecting or skipping rows.

How to Calculate Monthly Percentiles Without Manually Skipping Rows
Product
Spreadsheet
Device & OS
not provided
Scenario
Calculating monthly statistical percentiles from data organized in daily records or repeated monthly blocks, which currently requires tedious manual row selection.
Observed behavior
Instead of manually highlighting rows for each month to find the percentiles, the goal is to implement a dynamic formula that automatically groups and calculates the correct blocks of data.
Before you start

Ensure your dataset includes a clear date column or month identifier so formulas can filter properly. Verify that your spreadsheet software supports dynamic array functions such as FILTER and SEQUENCE.

Solution 1Recommended

Use FILTER with PERCENTILE.INC for Dynamic Date Ranges

This is the most efficient and scalable method. By dynamically filtering the dataset based on the month, you can directly feed the relevant array into the percentile function without worrying about fixed row heights.

The FILTER function automatically extracts data that meets your criteria (e.g., a specific month). By wrapping it in PERCENTILE.INC, you calculate the required statistic seamlessly.

1
Identify data ranges

Determine which column holds your dates (e.g., Column A) and which holds the numeric values to calculate (e.g., Column B).

2
Enter the 20th percentile formula

Select an empty cell and enter the formula: =PERCENTILE.INC(FILTER(B:B, MONTH(A:A)=1), 0.2). Change the '1' to your target month (e.g., 2 for February) and '0.2' represents the 20th percentile.

3
Enter the 80th percentile formula

In another cell, repeat the formula but change the 'k' value to 0.8: =PERCENTILE.INC(FILTER(B:B, MONTH(A:A)=1), 0.8).

Use FILTER with PERCENTILE.INC for Dynamic Date Ranges
Dynamic Updates: Using FILTER means your percentile calculations will automatically update if you add or remove rows from that specific month in the future.
Advanced Data Analysis

Automate Monthly Percentile Calculations in WPS Spreadsheet

WPS Spreadsheet fully supports advanced dynamic array formulas like FILTER, SEQUENCE, and PERCENTILE.INC, allowing you to seamlessly calculate group statistics without manual row selection.

  1. 1. Open your dataset: Launch WPS Spreadsheet and open the document containing your monthly data.
  2. 2. Prepare your criteria: Ensure your date column is formatted correctly as dates so the MONTH() function can read it.
  3. 3. Enter the dynamic formula: Type =PERCENTILE.INC(FILTER(DataRange, MONTH(DateRange)=TargetMonth), 0.2) into your summary table cell.
  4. 4. Apply and drag: Press Enter to generate the 20th percentile. You can link 'TargetMonth' to a cell reference and drag the formula down to instantly calculate all 12 months.
Fully compatible with Microsoft Excel formulas, functions, and file formats (.xlsx).Supports modern dynamic arrays for effortless data grouping and complex analysis.Lightweight architecture handles large datasets and complex calculations without lag.Free built-in data analysis tools to elevate your productivity.
microsoft office alternative - wps office

Frequently Asked Questions

Why is my FILTER function returning a #CALC! error?

This error occurs when the FILTER function finds no matching records in the array (e.g., no dates match the specified month number). You can resolve this by adding the optional 'if_empty' argument to return a blank or specific text instead of an error: =FILTER(B:B, MONTH(A:A)=1, "No Data").

What is the difference between PERCENTILE.INC and PERCENTILE.EXC?

PERCENTILE.INC includes the 0th and 100th percentiles (the absolute minimum and maximum values of the dataset), while PERCENTILE.EXC excludes them and only evaluates between 0 and 1 exclusive. For general statistical calculations like the 20th and 80th percentiles, either works, but PERCENTILE.INC is the standard widely used.

Can I calculate percentiles for multiple months at once automatically?

Yes. Instead of typing the month number directly into the formula (like MONTH(A:A)=1), you can set up a summary table with numbers 1 through 12 in an adjacent column. Reference that cell in your formula (e.g., MONTH(A:A)=D2). When you drag the formula down, it will calculate the percentile for each month automatically.