Formula Errors

WPS Spreadsheets: Correct an IF Formula for Risk Status by Sales Percentage

Phi Hung VoPhi Hung Vo Nov 12, 2026 869 views

Question details

The user needs to correct a nested IF formula that assigns risk statuses based on event type, sales percentage, and elapsed days.

Product
WPS Spreadsheets
Device & OS
not provided
Scenario
A worksheet uses columns E, F, G, and I to evaluate event types A or B, sales percentages, and elapsed days before returning a status.
Observed behavior
The formula does not evaluate the conditions correctly because comparisons were grouped incorrectly inside AND expressions.
Before you start

Confirm that event type is in column E, sales percentage is in column F, and the date or day values are in columns G and I. Select the target result cell and check whether the sales percentages are stored as decimal values such as 0.69 or 69%.

Solution 1Recommended

Replace the nested IF formula with separate AND conditions

Use this formula when each risk status depends on a specific combination of event type, sales range, and elapsed days.

Each comparison must be supplied as its own argument to AND. The formula below checks the high-risk rules first, then the low-risk and successful outcomes, and returns Unknown when no rule matches.

1
Select the result cell

Open the worksheet in WPS Spreadsheets and click the cell where the risk status should appear, such as the result cell on row 2.

2
Enter the corrected formula

In the formula bar or directly in the selected cell, enter: =IF(OR(AND(E2="A",F2<0.69,G2-I2>1),AND(E2="B",F2<=0.49,G2-I2>3)),"High Risk",IF(AND(E2="A",F2>=0.69,F2<0.99),"Low Risk",IF(AND(E2="A",F2=1),"Great Job",IF(AND(E2="B",F2>0.5,F2<0.99),"Low Risk",IF(AND(E2="B",F2=1),"Great Job","Unknown"))))).

3
Confirm and fill the formula

Press Enter to calculate the result. If the same column layout continues down the sheet, drag the fill handle from the formula cell to copy the formula to the required rows.

4
Test the status rules

Change a test row's event type, sales percentage, or day values and verify that WPS Spreadsheets returns High Risk, Low Risk, Great Job, or Unknown according to the matching condition.

Why the correction works: AND must receive separate logical tests, such as F2>=0.69 and F2<0.99. This prevents comma-separated comparisons from being interpreted as one invalid or incomplete condition.

Build and test nested IF risk formulas in WPS Spreadsheets

WPS Spreadsheets lets you enter, inspect, copy, and test nested IF formulas with familiar formula-bar and worksheet controls. Use it to classify risk statuses while preserving compatibility with common Excel workbook formats.

  1. 1. Open WPS Spreadsheets: Launch WPS Office and choose Spreadsheets, then open the workbook containing the risk-status table.
  2. 2. Select the output cell: Click the cell used for the status result and review the referenced event, percentage, and day columns.
  3. 3. Enter the corrected formula: Paste the corrected nested IF formula into the formula bar and press Enter to calculate the status.
  4. 4. Copy and validate: Drag the fill handle down the result column, then test representative rows for High Risk, Low Risk, Great Job, and Unknown.
Create nested IF and AND conditions for sales-based risk status calculations.Use the formula bar and fill handle to test and apply corrected formulas quickly.Open and save Microsoft Excel .xlsx and .xls workbooks with familiar spreadsheet formatting.Work with a lightweight spreadsheet interface for reviewing formula results.
microsoft office alternative - wps office

Frequently Asked Questions

Why does the original nested IF formula return an incorrect risk status?

The conditions inside AND were not consistently provided as separate logical arguments. Enter each comparison separately, such as AND(F2>=0.69,F2<0.99), so WPS Spreadsheets can evaluate both limits.

Which cells does the corrected formula use?

The formula checks E2 for event type, F2 for sales percentage, and G2-I2 for the elapsed-day calculation. Update these references if your worksheet uses different columns or rows.

What result is returned when no condition matches?

The final nested IF returns "Unknown" when the row does not meet any High Risk, Low Risk, or Great Job condition.

How are percentages represented in this formula?

The formula uses decimal equivalents: 0.69 means 69%, 0.99 means 99%, and 1 means 100%. If your cells contain whole numbers such as 69, change the thresholds to match that format.