excel formula to calculate increase, decrease and 0 percentage

mhtran1

New Member
Joined
Jul 17, 2018
Messages
3
A
B
C
0
1874.35
100%
1874.35
0
-100%
0
0
0% (not #DIV/0!)
5672.66
561.77
-11%

<tbody>
</tbody>

Hello, I am trying to figure out a nested formula to calculate difference in percentage between two values and to not show #DIV/0!. Please help.

Thank you!
 

Excel Facts

What is the shortcut key for Format Selection?
Ctrl+1 (the number one) will open the Format dialog for whatever is selected.
Try the IFERROR function (or IF(ISERROR.. on post 2007 versions)
 
Upvote 0
Thank you arthurbr, but I tried the if(iserror((b2-a2)/b2),0,((b2-a2)/b2)) but result is 0 % instead of -100%. any other suggestions would be greatly appreciated.
 
Upvote 0
Perhaps =if(iserror((b2-a2)/b2),"",((b2-a2)/b2))
 
Upvote 0

Forum statistics

Threads
1,215,328
Messages
6,124,299
Members
449,149
Latest member
mwdbActuary

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