Formula Errors

How to Use an Excel IF Formula with an Alternative Qualification Condition in WPS Office

Tauseeq MagsiTauseeq Magsi Nov 13, 2026 869 views

Question details

The user needs to write an Excel/WPS spreadsheet formula that returns "Yes" when either a full set of primary qualification conditions is met or a shorter alternative pathway is met.

How to Use an Excel IF Formula with an Alternative Qualification Condition in WPS Office
Product
WPS Office Spreadsheets
Device & OS
not provided
Scenario
A candidate qualification worksheet uses several cells: B17, B18, B19, B20, B21, and B25. The user wants a single formula to check the primary qualification criteria or the alternative pathway.
Observed behavior
The formula should return "Yes" when the primary criteria are met, or when B20 is greater than 49 and B18 is less than 6; otherwise it should return "No".
Before you start

Open the workbook that contains the candidate data and confirm that the referenced cells B17, B18, B19, B20, B21, and B25 contain the expected values or are empty. Make sure the result cell is selected and ready for formula entry.

Solution 1Recommended

Use a Nested IF Formula for Primary and Alternative Qualification Tests

Use this when you need one formula that first evaluates the full primary criteria and then falls back to the shorter alternative pathway.

The formula first tests the primary qualification set. If that full test is not met, it evaluates the alternative pathway. If neither condition set is met, it returns No.

1
Select the result cell

Click the cell where you want the qualification result to appear, such as C2 or the first candidate row.

2
Enter the nested IF formula

Type or paste the following formula and press Enter: =IF(AND(B17="Yes",B18>2.9,B19="Yes",OR(B21>19,AND(B20>24,B20<50)),B25>0),"Yes",IF(AND(B20>49,B18<6),"Yes","No"))

3
Copy the formula to other rows

If the same logic applies to other candidates, drag the fill handle from the result cell down through the remaining data rows.

Use a Nested IF Formula for Primary and Alternative Qualification Tests
Formula returns Yes or No correctly: The nested IF returns Yes when either qualification pathway passes and No when both the primary and alternative pathways fail.
WPS Spreadsheets formula help

Build a Reliable Excel IF Formula in WPS Office Spreadsheets

Open your workbook in WPS Office Spreadsheets and apply a nested IF formula to evaluate primary and alternative qualification conditions. The formula editor accepts the same Excel IF, AND, and OR functions, so you can return Yes or No without changing your existing layout.

  1. 1. Open the candidate workbook in WPS Office: Launch WPS Office Spreadsheets, click Menu > Open, and select the Excel workbook that contains the qualification cells.
  2. 2. Select the result cell: Click the cell where the Yes/No result should appear, such as C2.
  3. 3. Type the nested IF formula: Enter =IF(AND(B17="Yes",B18>2.9,B19="Yes",OR(B21>19,AND(B20>24,B20<50)),B25>0),"Yes",IF(AND(B20>49,B18<6),"Yes","No")) and press Enter.
  4. 4. Copy the formula to other rows: Drag the fill handle down to apply the same primary and alternative qualification test to additional candidates.
Full compatibility with Microsoft Excel workbooks and .xlsx filesFree access to WPS Spreadsheets for editing nested IF, AND, and OR formulasFamiliar Excel-style ribbon and formula bar for quick formula entryCalculates primary and alternative qualification conditions in one cell
microsoft office alternative - wps office

Frequently Asked Questions

Why does my IF formula show No even when one condition is true?

Check the order and logic. The nested IF first tests the primary AND set; if one required cell is not true, it moves to the alternative AND test. You can select the cell and use Formulas > Evaluate Formula in WPS Spreadsheets to inspect which part is failing.

Can I use OR and AND together inside one Excel IF formula in WPS Office?

Yes. WPS Spreadsheets supports Excel logical functions. Use OR(condition1,condition2) when any condition can be true, and AND(condition1,condition2) when all conditions must be true inside IF.

How do I copy the formula to multiple candidate rows without breaking cell references?

The formula uses relative references such as B17 and B18, so dragging the fill handle adjusts them row by row. For fixed references, select the reference in the formula and press F4 to add dollar signs.

What does the alternative part B20>49 and B18<6 mean?

It means the alternative pathway is true only when B20 is greater than 49 and B18 is less than 6. Both must be true because they are wrapped in the AND function.

Can I return 1/0 or other text instead of Yes/No?

Yes. Replace the "Yes" and "No" text in the formula with your desired values, such as 1 and 0, without changing the logical structure.