Function Problems

How to Use the Excel IF Formula for a Specific Balance Range Charge

Elise WilliamsElise Williams Nov 10, 2026 869 views

Question details

The user needs to apply a $10 charge conditionally based on an account balance that falls between $300 and $1,000 using an Excel formula.

How to Use the Excel IF Formula for a Specific Balance Range Charge
Product
Excel
Device & OS
not provided
Scenario
Calculating account charges or fees based on specific balance thresholds.
Observed behavior
The user requires a formula that evaluates to $10 when the balance is strictly greater than 300 and less than 1000, and $0 otherwise, while avoiding incorrect logical evaluations like using the OR function.
Before you start

Ensure your account balance data is formatted as numbers or currency without hidden text characters, so the logical formula can evaluate the numerical values correctly.

Solution 1Recommended

Use the IF and AND Functions to Evaluate a Value Range

Combine the IF function with the AND function to check if a balance meets both the minimum and maximum thresholds simultaneously before applying a charge.

The IF function alone can only evaluate one logical test. To check if a number falls within a specific range, you need to nest the AND function inside the IF function.

Using AND ensures that the formula only applies the $10 charge if the balance is strictly greater than 300 AND strictly less than 1000. If you used OR instead, the formula would incorrectly apply the charge to almost any number, since every number is either greater than 300 or less than 1000.

1
Select the target cell

Click on the cell where you want the $10 charge to be displayed (for example, cell C2).

2
Enter the nested formula

Type the formula =IF(AND(B2>300, B2<1000), 10, 0), assuming your account balance is located in cell B2.

3
Calculate the result

Press Enter to execute the formula. The cell will display 10 if the balance is in range, and 0 if it is not.

4
Apply to other rows

Click the bottom-right corner of the cell (the fill handle) and drag it down to apply this formula to the rest of the account balances in your sheet.

Use the IF and AND Functions to Evaluate a Value Range
Formula Customization: You can easily change the > and < operators to >= and <= if you want your range to be inclusive of exactly $300 and $1,000.
Free Spreadsheet Software

Calculate Complex Formulas Easily with WPS Spreadsheet

WPS Office provides a powerful, free Spreadsheet tool that fully supports Excel functions, including nested IF and AND formulas, helping you manage financial calculations effortlessly.

  1. 1. Open your financial workbook: Launch WPS Spreadsheet and open the document containing your account balances.
  2. 2. Use the Function arguments dialog: Click on the target cell, go to the Formulas tab, and click Insert Function. Search for the IF function.
  3. 3. Input the logical tests: Enter AND(B2>300, B2<1000) in the Logical_test field, 10 in the Value_if_true field, and 0 in the Value_if_false field, then click OK.
Fully compatible with Microsoft Excel (.xlsx) file formats and functionsFree to use for everyday financial calculations and data analysisBuilt-in function library with syntax hints to prevent formula errors
microsoft office alternative - wps office

Frequently Asked Questions

What happens if I use OR instead of AND in this formula?

If you use OR (e.g., =IF(OR(B2>300, B2<1000), 10, 0)), the formula will return 10 for almost every value. For example, a balance of $100 is less than 1000, making the OR condition TRUE even though it is below 300.

How do I include exactly $300 and $1,000 in the charge range?

Modify the operators in the AND function to include the equals sign. Use =IF(AND(B2>=300, B2<=1000), 10, 0) to make the range inclusive.

Can I return a blank cell instead of a $0 charge?

Yes, you can replace the 0 at the end of the formula with two double quotes to return an empty string. The updated formula would be =IF(AND(B2>300, B2<1000), 10, "").