View Single Post
  #2   Report Post  
Posted to microsoft.public.excel.misc
Michael Michael is offline
external usenet poster
 
Posts: 791
Default How do I let a percent formula = 0?

you need to use the iserror function.
EG

=IF(ISERROR(a1/a2*100)=TRUE,0,a1/a2*100)

ie if the answer is #n/a then it will show 0 otherwise it will show the
percentage

"David" wrote:

I want a percent formula when it equals zero to put a zero in the cell. How
do I allow this? Right now I'm getting "#DIV/0!" ?