Getting a blank of a "0" instead of #NUM

S

Sam B

Hi

I have this formula for calculating the percentile from a huge table

=PERCENTILE(IF(((List!$AG$2:$AG$10000="Evaluation")+((List!$AG$2:$AG$10000="Hold")*(List!$D$2:$D$10000<>"H")))*(List!$C$2:$C$10000="US"),List!$BH$2:$BH$10000 ),0.95)

This works great. However, if there are no entires that match the listed
criteria (which is a valid option) I get a #NUM instead of a blank or a 0.
All the values show up in a master table where I use conditional formating
(red, yellow, and green) and if the value returned is #NUM then it shows up
as #NUM in the final table.

In a nutshell, I want to get rid of #NUM. Appreciate any help on this.
 
G

Gaurav

This should give you a 0

=IF(ISERROR(PERCENTILE(IF(((List!$AG$2:$AG$10000="Evaluation")+((List!$AG$2:$AG$10000="Hold")*(List!$D$2:$D$10000<>"H")))*(List!$C$2:$C$10000="US"),List!$BH$2:$BH$10000
),0.95)),0,(PERCENTILE(IF(((List!$AG$2:$AG$10000="Evaluation")+((List!$AG$2:$AG$10000="Hold")*(List!$D$2:$D$10000<>"H")))*(List!$C$2:$C$10000="US"),List!$BH$2:$BH$10000 ),0.95)))Thanks"Sam B" <[email protected]> wrote in messageHi>> I have this formula for calculating the percentile from a huge table>>=PERCENTILE(IF(((List!$AG$2:$AG$10000="Evaluation")+((List!$AG$2:$AG$10000="Hold")*(List!$D$2:$D$10000<>"H")))*(List!$C$2:$C$10000="US"),List!$BH$2:$BH$10000 ),0.95)>> This works great. However, if there are no entires that match the listed> criteria (which is a valid option) I get a #NUM instead of a blank or a 0.> All the values show up in a master table where I use conditional formating> (red, yellow, and green) and if the value returned is #NUM then it showsup> as #NUM in the final table.>> In a nutshell, I want to get rid of #NUM. Appreciate any help on this.>>
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top