how to filter out irrelevant results

bigdan

Well-known Member
Joined
Oct 5, 2009
Messages
846
Office Version
  1. 2013
Platform
  1. Windows
I'm often comparing Actual $ Results vs what was planned. The formula for this is ((Actual - Plan)/Plan).

In some cases the Plan was zero, this giving an error. To fix that I've added an IFERROR(formula,0), which has fixed that problem.

However in some cases the Plan isn't exactly zero but very close. So with a denominator this small the quotient is like 10 figures long, which is essentially useless.

What do I do to fix the latter case? I'd like that to be zero as well.
 

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.
Let's say Actual is in A1, and Plan is in A2.
You need to decide how close to zero can be considered to be zero for your purposes, let's say it's the value 0.1, and let's say you store this value in A3.

Your formula could then be

=if(A2< A3,0,(A1-A2)/A2)

This assumes you will never have negative plan values - if you do, there are ways round this.
 
Upvote 0
OK great, thank you.

As an alternative method is there some way to set a limit on how big the result is?


Let's say Actual is in A1, and Plan is in A2.
You need to decide how close to zero can be considered to be zero for your purposes, let's say it's the value 0.1, and let's say you store this value in A3.

Your formula could then be

=if(A2< A3,0,(A1-A2)/A2)

This assumes you will never have negative plan values - if you do, there are ways round this.
 
Upvote 0
Can you give some examples of what exactly you want to do ?

By the way, I think there is no need to quote my post :-)
 
Upvote 0
OK Sure. So in one case the forecast was like a hundredth of a cent. Or maybe a millionth of a cent. Not sure how on earth that happened but that's in there somehow and I cant control it. The numerator is a few million. So the quotient is something like 123456789887654321%. That's essentially a useless number. So I'd like to cap the quotient off at 3-4 digits.
 
Upvote 0
Well I think my solution in post #2 addressed that.

Can you give us some specific examples where you think my solution from post #2 is not working ?

Post several examples please, showing what's in each of A1, A2, and A3, and if they are not giving the result you want, say what you think the result should be, and why.
 
Upvote 0

Forum statistics

Threads
1,223,903
Messages
6,175,284
Members
452,630
Latest member
OdubiYouth

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