Adapt Formula to Ignore ZERO Value

walkerl8

Board Regular
Joined
Apr 30, 2013
Messages
201
Hi All,

Does anyone know what additions I need to make to the following formula in order for the range that is being looked at to ignore any 'Zero' value?

Thanks in advance,

=IFERROR(1-PERCENTRANK.INC($B$27:$B$100,$A$14,3),"")
 
Well,

If you go to Column H ... say in cell H50 and input the following array formula :

Code:
=MIN(IF(H27:H46>0,H27:H46))/A20

You will get ... ( I hope ...) what I am getting : 0.785

Is that right ???

P.S. Why are you referring in your formula to the Column K ...which is empty ... at least in my file ...
 
Last edited:
Upvote 0

Excel Facts

Remove leading & trailing spaces
Save as CSV to remove all leading and trailing spaces. It is faster than using TRIM().
By the way the Min (excluding 0 ...) in Column H is in cell H27 ... i.e 30.3 ... hence 30.3/38.6 = 0.785

Am I missing something ...???


P.S. $K$27:$K$42 ... not only you are using the Column K ... but only for the rows from 27 to 42 .... is there a reason ???
 
Last edited:
Upvote 0
The 'K' column was me dragging data from the pivot to exclude the '0' values. If you copy the Counter Movement Data out of the pivot (Max should be 41.7 and Min should be 30.3) and run the percentrank.inc formula off a CMJ score of 38.6 - the outcome I get is 0.800.

If you look at scores like the Yo-Yo for example - I am getting 0.200 using percentrank.inc based on a score of 560. :(
 
Upvote 0
In my humble opinion, to be on the safe side....gain the flexibility you require and in order to add conditions the way you want, you are better off using Min or Max functions and dividing the result by the corresponding cell reference ...

In fact, this approach allows you to decompose the percentrank calculation ... and master the conditions you may want to add ...

For columns H and I :
Min : 0.785 and 0.786
Max: 1.080 and 1.500

Hope this will help
 
Last edited:
Upvote 0
Sorry to keep dragging it on as I know its starting to get frustrating.

If I just summarise it really quickly and if you don't know then no problem.

You will see on 'Feedback Report' there is a dynamic pie chart the works off the 'Value' field within 'Raw Data (Charts). The reason I used PercentRank.Inc was because I needed a normalised value to get the pie chart to display an individuals score relative to the maximum for that test. So, therefore, if the player score for '10 M Sprint' was 1.50 and when looking in the range the best score was 1.50 then I would need to outcome value from the formula to be 1.00. That would be the case for everyone else, there scores marked against the data range and where that would fall on a normalised scale 0 - 1 (which would allow for the dynamic pie chart to be displayed relatively for every individual).

The score would need to take into account the type of test however, for speed tests the lower value is better and for things like jump tests, higher scores are better.

Does this make sense?

So as per your response about - a 1.500 is no good as I need it to be able to give me a value of between 0 and 1 like percentrank.inc would do if it didn't take 0s into consideration when looking at a range.
 
Upvote 0
Just did a bunch of tests ... with the percentrank function ...

It looks this function is totally insensitive to 0 and blanks ...

So it means that your end result is not affected by the zeros and the blanks ... since, with or without these rows, ...the percentrank function outputs the very same results ...

I guess the confusion came out with the heading in cell B1 ... percentrank does not produce the lowest ... :wink:

If you feel like taking a look at the percentrank interpretation :

Ranking Functions in Excel | Real Statistics Using Excel

Hope this will help
 
Last edited:
Upvote 0
what additions I need to make to the following formula in order for the range that is being looked at to ignore any 'Zero' value?

=IFERROR(1-PERCENTRANK.INC(IF(B27:B100<>0,$B$27:$B$100),$A$14,3),"")

This works for me, are you sure you implemented it correctly?


Excel 2013
AB
1Lowest
210 m Sprint (s)1.000
330 m Sprint (s)1.000
Raw Data (Charts)
Cell Formulas
RangeFormula
B2{=IFERROR(1-PERCENTRANK.INC(IF($B$27:$B$100<>0,$B$27:$B$100),$A$14,3),"")}
B3{=IFERROR(1-PERCENTRANK.INC(IF($C$27:$C$46<>0,$C$27:$C$46),$A$15,3),"")}
Press CTRL+SHIFT+ENTER to enter array formulas.
 
Upvote 0

Just did a bunch of tests ... with the Percentrank function ...


One can draw the conclusion the Percentrank function is totally insensitive to 0 and blanks ...

So it means that your end result is not affected by the zeros and the blanks ... since, with or without these rows, ...the Percentrank function outputs the very same results ...

All your results are correct ... from the very beginning ...!!!

I guess the confusion came out with the heading in cell B1 ... :wink:

Sorry for this ... my interpretation of Lowest ... was to get the Minimum ...

In addition, below is a link ... if you feel like taking a look at the Percentrank correct interpretation :

Ranking Functions in Excel | Real Statistics Using Excel

Hope this will help
 
Upvote 0
Did you input this using the available workbook? I am sure I tried it and it didn't work but I will have to look again.

Thanks,

This works for me, are you sure you implemented it correctly?

Excel 2013
AB
1Lowest
210 m Sprint (s)1.000
330 m Sprint (s)1.000

<colgroup><col style="width: 25pxpx"><col><col></colgroup><thead>
</thead><tbody>
</tbody>
Raw Data (Charts)

Array Formulas
CellFormula
B2{=IFERROR(1-PERCENTRANK.INC(IF($B$27:$B$100<>0,$B$27:$B$100),$A$14,3),"")}
B3{=IFERROR(1-PERCENTRANK.INC(IF($C$27:$C$46<>0,$C$27:$C$46),$A$15,3),"")}

<thead>
</thead><tbody>
</tbody>
Entered with Ctrl+Shift+Enter. If entered correctly, Excel will surround with curly braces {}.
Note: Do not try and enter the {} manually yourself

<tbody>
</tbody>
 
Upvote 0
So the highest score will always come out as the highest score (not necessarily 1.00 if there are 0 values in the range but none the less still the highest)



Just did a bunch of tests ... with the Percentrank function ...


One can draw the conclusion the Percentrank function is totally insensitive to 0 and blanks ...

So it means that your end result is not affected by the zeros and the blanks ... since, with or without these rows, ...the Percentrank function outputs the very same results ...

All your results are correct ... from the very beginning ...!!!

I guess the confusion came out with the heading in cell B1 ... :wink:

Sorry for this ... my interpretation of Lowest ... was to get the Minimum ...

In addition, below is a link ... if you feel like taking a look at the Percentrank correct interpretation :

Ranking Functions in Excel | Real Statistics Using Excel

Hope this will help
 
Upvote 0

Forum statistics

Threads
1,215,482
Messages
6,125,058
Members
449,206
Latest member
Healthydogs

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