• 408K Members
• 8,201 Online
• 464K Conversations

New Contributor

# Formula Required: Outside of a range (plus or minus)

=IF(S3=R3,"Good",IF(ABS(S3-R3)<=20%,"Under","Over"))

But I want to check the values are within an allowable range. So it's whether I can combine something like this to a single formula?
=IF(B1=A1,"Good",IF(ABS(B1-A1)<=20%,"Under"))
=IF(B1=A1,"Good",IF(ABS(B1-A1)>=20%,"Over"))

I'm testing two percentages (Actual Expenditure vs Budgeted Expenditure)

If the Value of Cell B is Equal to Cell A then Good, we are within the acceptable parameters. However, if Cell B is outside of a range of 20% of the value of Cell B compared with Cell A then flag as Under if it's less than 20% (we need to spend more) or Flag Red if it's greater than 20% (we have overspent so cut back).

The %s change over time with the amount of budget increases cumulatively weekly but the actual time is updated via timesheets and is variable.

A  (budget)   |    B (time elapsed)   | C
21.37%      | 62.11%                      Under Budget
131.44%      | 26.58%                     Over Budget
1.96%      | 14.81%                        GOOD
8.93%      | 80.56%                      Under Budget
87.65%      | 6.13%                      Over Budget
50%              | 60%                      GOOD
60%              | 50%                      GOOD

3 Replies

# Re: Formula Required: Outside of a range (plus or minus)

This should work =IF(AND(A1-B1<0.2;A1-B1>-0.2);"GOOD";IF(A1-B1>=0.2;"OVER";"UNDER"))

# Re: Formula Required: Outside of a range (plus or minus)

I've also attached my file

# Re: Formula Required: Outside of a range (plus or minus)

&nbsp;
In the attached file, the formula in C2 is:&nbsp;
=IF(ABS(A2-B2)&lt;=0.2,"Good",
IF(A2-B2&gt;0.2,"Over Budget",
"Under Budget"))
Given that expenditures are cash outflows, let me accentuate that an "Under Budget" is a favorable variance, such that you spent less than you should and you must strive to spend lesser. Conversely, an "Over Budget" is an unfavorable variance, such that you spent more than you should and you must strive to spend less next time.
Related Conversations
Tabs and Dark Mode
cjc2112 in Discussions on
16 Replies
flashing a white screen while open new tab
cntvertex in Discussions on
11 Replies
How to Prevent Teams from Auto-Launch
chenrylee in Microsoft Teams on
28 Replies
Early preview of Microsoft Edge group policies
Sean Lyndersay in Discussions on
65 Replies