IFERROR with zero denominator

shellwig

New Member
Joined
Dec 22, 2015
Messages
38
Office Version
  1. 365
Platform
  1. Windows
Hello - I cannot get my formula to work with a zero as the denominator for all calculations. It works for majority but not all. My criteria is as follows:

A B Result
1092 329 232%
376 448 -16%
0 0 N/A
212 0 result should be 100% but formula produces N/A

Formula is IFERROR((A2-B2)/B2,"N/A")

I feel like I need another IF Statement for B2 but cannot get the formula to work. All suggestions welcome.
 

Excel Facts

How to change case of text in Excel?
Use =UPPER() for upper case, =LOWER() for lower case, and =PROPER() for proper case. PROPER won't capitalize second c in Mccartney
212 0 result should be 100% but formula produces N/A
Why would that return 100%?
If the "A" value is 212 and the "B" value is 0, then you are trying to divide by 0, which gives you an error, which means the "N/A" value will be returned.
 
Upvote 0
I should have been more clear. I need my result to be 100%. The zero represents activity in that particular year. My result needs to be 100% since my problem represents year over year growth. Let's say Column A represents 2018 activity and Column B represents 2017 activity.
 
Upvote 0

Forum statistics

Threads
1,223,214
Messages
6,170,772
Members
452,353
Latest member
strainu

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