Formula Errors

Fix Nested IF, AND, and OR Formulas for Multiple Conditions in WPS Spreadsheets

Kushani NimanthikaKushani Nimanthika Nov 13, 2026 869 views

Question details

The user needs to create a formula that evaluates every combination of A2 and A3 thresholds in WPS Spreadsheets so boundary values do not return #N/A or unexpected results.

How to Fix Nested IF, AND, and OR Formula Errors for Multiple Conditions in WPS Spreadsheets
Product
WPS Spreadsheets
Device & OS
not provided
Scenario
Calculating a value based on multiple conditions, including the A2 100/101 boundary and A3 thresholds around 137 and 150.
Observed behavior
Nested IF or IFS formulas may return #N/A or wrong values when combinations such as A3 between 137 and 150 are not explicitly defined.
Before you start

Check that A2 and A3 contain numeric values and decide the exact result for each threshold: A2 below 101 versus above 100, and A3 below 150, equal to 150, or above 150. Then select an empty cell where the calculated result should appear.

Solution 1Recommended

Use IFS with Explicit AND Branches and a TRUE Fallback

Best when you want a readable formula that lists each possible A2/A3 combination and prevents unmatched combinations from becoming #N/A.

IFS evaluates each AND test in order and returns the value for the first TRUE test. If no test matches and no final TRUE condition is supplied, WPS Spreadsheets and Excel return #N/A.

1
Select the result cell

Click the empty cell in WPS Spreadsheets where you want the calculated result.

2
Enter the IFS formula

Type =IFS(AND(A2<101,A3<150),7500,AND(A2<101,A3=150),9500,AND(A2<101,A3>150),14000,AND(A2>100,A3<150),7500/100*A2,AND(A2>100,A3=150),9500/100*A2,AND(A2>100,A3>150),14000/100*A2,TRUE,"Review conditions") and press Enter.

3
Verify boundary combinations

Test key values such as A2=100, A2=101, A3=137, A3=149, and A3=150 to confirm each branch returns the expected result.

Use IFS with Explicit AND Branches and a TRUE Fallback
#N/A prevented: The TRUE fallback returns "Review conditions" for any unmatched combination instead of #N/A.
WPS Spreadsheets formula fix

Build Multi-Condition Nested IF and IFS Formulas in WPS Spreadsheets Without #N/A Errors

WPS Spreadsheets lets you write nested IF, IFS, AND, and OR formulas that explicitly handle multiple A2 and A3 combinations and prevent #N/A results.

  1. 1. Open WPS Spreadsheets: Launch WPS Office and open the workbook containing A2 and A3.
  2. 2. Click the result cell: Select the empty cell where you want the calculated result.
  3. 3. Enter the formula: Type the IFS or nested IF formula, for example =IFS(AND(A2<101,A3<150),7500,AND(A2<101,A3=150),9500,AND(A2<101,A3>150),14000,AND(A2>100,A3<150),7500/100*A2,AND(A2>100,A3=150),9500/100*A2,AND(A2>100,A3>150),14000/100*A2,TRUE,"Review conditions").
  4. 4. Press Enter: Press Enter to apply the formula and verify the result for known A2/A3 combinations.
  5. 5. Adjust thresholds if needed: If your business rule uses 137 rather than 150 as the base boundary, change A3<150 to A3<137 or add an explicit A3>=137,A3<150 branch.
Explicitly handles boundary combinations around A2 100/101 and A3 137/150Prevents #N/A errors with branch-based formulas and a TRUE fallbackFull compatibility with Microsoft Excel .xlsx formulas and functionsFree and lightweight spreadsheet editing with a familiar formula interface
QA img-9

Frequently Asked Questions

Why does my IFS formula return #N/A when A3 is 140?

Because no earlier branch matches 140 if you only use A3<137, A3=150, and A3>150. Add an explicit branch such as AND(A2<101,A3>=137,A3<150) for the base value, or end the IFS formula with TRUE,"Review conditions" so unmatched values have a defined result.

How do I make the formula switch at 100/101 without overlapping branches?

Use A2<101 for the fixed-result branch and A2>100 for the percentage branch. This avoids overlap at the boundary and ensures values 100 and 101 follow the correct intended rule.

Can I use OR inside the nested IF formula?

Yes. If multiple conditions should return the same result, wrap them in OR, for example OR(A3<137,A3>=137,A3<150) can represent the base A3 range. Keep branches mutually exclusive so WPS Spreadsheets does not match two results at once.

Does WPS Spreadsheets support IFS and nested AND/OR functions?

Yes, WPS Spreadsheets supports IFS, IF, AND, OR, and nested combinations. Workbooks saved as .xlsx retain formula compatibility with Microsoft Excel.

What should I do if the formula returns the "Review conditions" fallback?

Check the values in A2 and A3 against your thresholds. If the fallback appears for a valid combination, add that missing branch before the TRUE fallback or correct the operator, such as changing <137 to <150 if needed.