ExcelBanter

ExcelBanter (https://www.excelbanter.com/)
-   Excel Worksheet Functions (https://www.excelbanter.com/excel-worksheet-functions/)
-   -   Ignore Zero's - Percentile (https://www.excelbanter.com/excel-worksheet-functions/256722-ignore-zeros-percentile.html)

Chris26

Ignore Zero's - Percentile
 
Hi

I have used the following to get the average value from a set of data whilst
ignoring zero values within the data set.

=SUM(K4:AP4)/COUNTIF(K4:AP4,"0")

I would like to use the percentile command on the same set of data. Is there
a way that I can use Percentile and also ignore zero values ?
Many Thanks
Chris

Mike H

Ignore Zero's - Percentile
 
Hi,

with an ARRAY formula

=PERCENTILE(IF(K4:AP40,K4:AP4),0.1)

This is an array formula which must be entered by pressing CTRL+Shift+Enter
'and not just Enter. If you do it correctly then Excel will put curly brackets
'around the formula {}. You can't type these yourself. If you edit the formula
'you must enter it again with CTRL+Shift+Enter.

--
Mike

When competing hypotheses are otherwise equal, adopt the hypothesis that
introduces the fewest assumptions while still sufficiently answering the
question.


"Chris26" wrote:

Hi

I have used the following to get the average value from a set of data whilst
ignoring zero values within the data set.

=SUM(K4:AP4)/COUNTIF(K4:AP4,"0")

I would like to use the percentile command on the same set of data. Is there
a way that I can use Percentile and also ignore zero values ?
Many Thanks
Chris



All times are GMT +1. The time now is 04:39 AM.

Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
ExcelBanter.com