Payments clustered just below an approval limit can mean someone is avoiding review. An IF with AND checks whether an amount falls inside a narrow band under the limit, so only the suspicious ones are listed for follow-up.
A $4,850 payment against a $5,000 limit with a 5% band is flagged Review.
The example
Three worked examples. Change any yellow input in the practice workbook and the results recalculate.
| A | B | C | D | E | F | |
|---|---|---|---|---|---|---|
| 1 | Case | Amount | Limit | Band | Flag | Gap to limit |
| 2 | Pay 1 | $4,850 | $5,000 | 5.0% | Review | $150 |
| 3 | Pay 2 | $3,200 | $5,000 | 5.0% | OK | $1,800 |
| 4 | Pay 3 | $4,990 | $5,000 | 5.0% | Review | $10 |
The formula
Here is the formula, built directly from the inputs:
How it works
Here is the logic, one piece at a time:
B2<C2keeps amounts under the limit.C2*(1-D2)is the bottom of the band.ANDrequires both.C2-B2shows the gap.
Keep every number in its own input cell so the formula never needs editing.
Try it: interactive demo
Enter the values below.
Variations
Count flagged
Total flagged payments.
Same vendor total
Sum by vendor.
Pitfalls & errors
Also test sums per vendor per day, not just single payments.
Use a percent band as a decimal (0.05).
Review the vendor list, not just the amounts.
Practice workbook
Frequently asked questions
Does this prove fraud?
What band should I use?
Stop fighting formulas. Learn them in a day.
This recipe is one of hundreds of real-world formulas we teach. Our Excel Formulas & Functions class covers lookups, logic, text, and dynamic arrays hands-on — live in Dallas–Fort Worth, Houston, Austin, Oklahoma City, Denver, or online.
See the Formulas & Functions Class