ExcelBanter

ExcelBanter (https://www.excelbanter.com/)
-   Excel Discussion (Misc queries) (https://www.excelbanter.com/excel-discussion-misc-queries/)
-   -   How do I let a percent formula = 0? (https://www.excelbanter.com/excel-discussion-misc-queries/141411-how-do-i-let-percent-formula-%3D-0-a.html)

David

How do I let a percent formula = 0?
 
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!" ?

Michael

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!" ?



All times are GMT +1. The time now is 04:05 PM.

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