Iferror + if formula

drluke

Active Member
Joined
Apr 17, 2014
Messages
314
Office Version
  1. 365
Platform
  1. Windows
I am calculating the % change between unit sales year-on-year, but if the movement is greater than 500% either way I don't want the formula to do anything, and similarly if there are no figures to compare in prior years then I don't want the formula to return an error (because of division by 0). So far I have come up with:

=IFERROR(IF(D3/C3>5,"",D3/C3),"-") It seems to work ok for movements greater than 500%, but

How do I add the 'smaller than -500%' part to the formula? or
Can I use a different more effective formula instead?
 

Excel Facts

Bring active cell back into view
Start at A1 and select to A9999 while writing a formula, you can't see A1 anymore. Press Ctrl+Backspace to bring active cell into view.
try

=IFERROR(IF(abs(D3/C3)>5,"",D3/C3),"-")
 
Upvote 0
I changed my formula to the one that was suggested, and it works well except for some calculations where the result is more than 1000% either way.
Any ideas how I can change the formula to cover this scenario?
 
Upvote 0
the formula exclude results over 500% that should include 1000%, have I missed something?
 
Upvote 0
Maybe I've missed something!
I have these 2 calculations as examples:

1BCD
225,555-1,408-1915%
3-6,381-2752223%

<tbody>
</tbody>

The formulas at both D2 and D3 are

=IFERROR(IF(ABS(B2-C2)/C2>5,"",(B2-C2)/C2),"-") and
=IFERROR(IF(ABS(B3-C3)/C3>5,"",(B3-C3)/C3),"-")
 
Upvote 0
try

=IFERROR(IF(ABS((B2-C2)/C2)>5,"",(B2-C2)/C2),"-")
 
Upvote 0

Forum statistics

Threads
1,215,016
Messages
6,122,700
Members
449,092
Latest member
snoom82

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