excel formula to calculate increase, decrease and 0 percentage

mhtran1

New Member
Joined
Jul 17, 2018
Messages
3
[TABLE="width: 500"]
<tbody>[TR]
[TD]A
[/TD]
[TD]B
[/TD]
[TD]C
[/TD]
[/TR]
[TR]
[TD]0
[/TD]
[TD]1874.35
[/TD]
[TD]100%
[/TD]
[/TR]
[TR]
[TD]1874.35
[/TD]
[TD]0
[/TD]
[TD]-100%
[/TD]
[/TR]
[TR]
[TD]0
[/TD]
[TD]0
[/TD]
[TD]0% (not #DIV/0!)
[/TD]
[/TR]
[TR]
[TD]5672.66
[/TD]
[TD]561.77
[/TD]
[TD]-11%
[/TD]
[/TR]
</tbody>[/TABLE]

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

How to find 2nd largest value in a column?
MAX finds the largest value. =LARGE(A:A,2) will find the second largest. =SMALL(A:A,3) will find the third smallest
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,224,827
Messages
6,181,195
Members
453,021
Latest member
pingpong7117

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