Percentile IF entire column ignoring blanks and zeros

JLopez123

New Member
Joined
Nov 12, 2022
Messages
4
Office Version
  1. 365
Platform
  1. Windows
Hello, I'm trying to calculate percentiles for different groups in column A using random value data in column B, but ignoring blanks and zeros. I've searched around, but everywhere I've seen shows ranges of data, and the formula can't quite get me what I'm looking for. And while my example only shows three groups of five, my real world example will have multiple groups with each group having a random number of rows.

So far I have the following, assuming I'm calculating the 80th percentile for each group:

=PERCENTILE(IF(A:A=A2,B:B),0.8)

It works, but it doesn't ignore blanks and zeroes.

Any help on getting me the rest of the way there?

Thanks!
 

Attachments

  • Screenshot 2023-03-06 163805.jpg
    Screenshot 2023-03-06 163805.jpg
    121.2 KB · Views: 35

Excel Facts

Format cells as date
Select range and press Ctrl+Shift+3 to format cells as date. (Shift 3 is the # sign which sort of looks like a small calendar).
Upvote 0
Solution
Never used the FILTER function before, so thanks for calling that out. It worked perfectly!
 
Upvote 0

Forum statistics

Threads
1,223,884
Messages
6,175,171
Members
452,615
Latest member
bogeys2birdies

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