Thread: Getting "N/A"
View Single Post
  #8   Report Post  
Spencer101 Spencer101 is offline
Senior Member
 
Posts: 663
Default

Quote:
Originally Posted by Planko View Post
Ok, I am sorry.

Here is the formula I am using to get my percentage of two columns:

=F45/(F45+G45) <-----I missed one ( here when typing it. Sorry.

I get the right percentage of the total columns. If F45 = 1 and G45 = 0 I get 50%. That all works fine.

But some of the columns will not have numbers to calculate. If F45 and G45 total zero I get the DIV error.

I need to get the percentage to display or have N/A display if the total is zero.
Then you just need to wrap the IFERROR around the formula you have above.
=IFERROR(F45/(F45+G45),"N/A")

Does that do the trick?