Create a condition within an IFERROR formula

ACDC

New Member
Joined
Jul 9, 2020
Messages
1
Office Version
  1. 365
Platform
  1. Windows
Hi All,

I'm creating a budget that looks similar to the following:
A B
1 - $0.00 $0.00
2 - $0.00 $100.00

I'm trying to calculate the % change between the 2 numbers, so for both rows (B-A/A)x100.
Naturally the DIV!/0 will pop up due to the 0 in column A and I could easily correct this with a quick IFERROR, but financially the % difference would actually be different between the two.

In the first row I'd like to show 0% change and the 2nd row show 100% change since column B would represent the new budget.

Is it possible to specify a condition within an IFERROR formula to specify "0%" and "100%"?
Here's what I have tried so far...
=IFERROR(((B1-A1)/A1), B1=0, B1>0,"0%","100%")
=IF((AND(B1=0, B1>0,"0%","100%"), IFERROR((B1-A1)/A1)

Thanks in advance everyone!
 

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

Forum statistics

Threads
1,215,055
Messages
6,122,902
Members
449,097
Latest member
dbomb1414

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