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),"")
 
In the link provided ... the best example is located in Figure 7 ...

Since you are using this function ... the correct interpretation is essential ...!!!
 
Last edited:
Upvote 0

Excel Facts

What is =ROMAN(40) in Excel?
The Roman numeral for 40 is XL. Bill "MrExcel" Jelen's 40th book was called MrExcel XL.
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.

Yes, and it worked perfectly.

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

It is not insensitive to zeros.


Excel 2013
AB
10.50.75
211
30
433
Sheet1
Cell Formulas
RangeFormula
A1=PERCENTRANK.INC(A2:A4,2)
B1=PERCENTRANK.INC(B2:B4,2)
 
Upvote 0
@ FormR

You have tested PERCENTRANK.INC() function ... whereas my test was about PERCENTRANK() function ...

Thanks for spotting they behave differently ...
 
Upvote 0
whereas my test was about PERCENTRANK() function ...

Thanks for spotting they behave differently ...

Hi, still not insensitive to zeros:


Excel 2013
AB
10.50.75
211
30
433
Sheet1
Cell Formulas
RangeFormula
A1=PERCENTRANK(A2:A4,2)
B1=PERCENTRANK(B2:B4,2)
 
Upvote 0
Hi, still not insensitive to zeros:

Excel 2013
AB
10.50.75
211
30
433

<colgroup><col style="width: 25pxpx"><col><col></colgroup><thead>
</thead><tbody>
</tbody>
Sheet1

Just noticed Excel 2013 ... Would you have the possibility to perform your tests with Excel 2007 ?
 
Upvote 0
Morning,

You are right it does work - I must have hit a typo of some sort.

Last thing from me if possible - do either of you know if I can get this formula to work with the addition of an offset - similar to the work James produced with the MIN function. Like I said my pivot table will potentially increase and decrease so if it could work with an offset feature then that would be awesome. This is more of an efficiency and formatting aspect that anything else but thought I would ask the question.

Thanks both,


Yes, and it worked perfectly.



It is not insensitive to zeros.

Excel 2013
AB
10.50.75
211
30
433

<colgroup><col style="width: 25pxpx"><col><col></colgroup><thead>
</thead><tbody>
</tbody>
Sheet1

Worksheet Formulas
CellFormula
A1=PERCENTRANK.INC(A2:A4,2)
B1=PERCENTRANK.INC(B2:B4,2)

<thead>
</thead><tbody>
</tbody>

<tbody>
</tbody>
 
Upvote 0
Just noticed Excel 2013 ... Would you have the possibility to perform your tests with Excel 2007 ?

I don't have XL2007 - are you saying that you get a different result with the simple set-up in post#34 with that version? Maybe another reader with that version can check.

do either of you know if I can get this formula to work with the addition of an offset

Try doing a search for "Excel dynamic named ranges" - and use the named range in place of the cell references.
 
Upvote 0
Will do,

Thanks

I don't have XL2007 - are you saying that you get a different result with the simple set-up in post#34 with that version? Maybe another reader with that version can check.



Try doing a search for "Excel dynamic named ranges" - and use the named range in place of the cell references.
 
Upvote 0

Forum statistics

Threads
1,215,477
Messages
6,125,036
Members
449,205
Latest member
Eggy66

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