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

Why are there 1,048,576 rows in Excel?
The Excel team increased the size of the grid in 2007. There are 2^20 rows and 2^14 columns for a total of 17 billion cells.
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,225,760
Messages
6,186,870
Members
453,380
Latest member
ShaeJ73

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