WPS Spreadsheet IF OR Formula with Greater-Than and SUM Criteria
Question details
The user needs a formula that returns 1 when either a cell meets a threshold or a range adds up to a specified number, and returns 0 when neither condition is true.
- Product
- WPS Spreadsheet
- Device & OS
- not provided
- Scenario
- A worksheet must evaluate a greater-than-or-equal comparison and a SUM result together using OR logic.
- Observed behavior
- The desired result is 1 when at least one condition is true and 0 when both conditions are false.
Confirm that C3 contains the value to compare and that A42:A46 is the intended sum range. Verify the threshold and target sum values before entering the formula.
Use IF with OR to return 1 or 0
Use this formula when the worksheet must display numeric 1 or 0 based on either of two conditions.
The OR function checks whether C3 is at least 2.7 or whether the values in A42:A46 total 5. IF returns 1 when either test is true and 0 when both tests are false.
Click the cell where you want the result to appear.
Type =IF(OR(C3>=2.7,SUM(A42:A46)=5),1,0) in the formula bar or directly in the selected cell.
Press Enter. WPS Spreadsheet returns 1 if either condition is true; otherwise, it returns 0.
Return the OR result as a numeric value
Use this shorter formula when you want the OR result converted directly from TRUE or FALSE into 1 or 0.
Build IF OR and SUM Criteria Formulas in WPS Spreadsheet
WPS Spreadsheet lets you combine IF, OR, and SUM functions to test multiple criteria and return a clear numeric result. Enter the formula in a cell, confirm the referenced ranges, and reuse it across your worksheet.
- 1. Open WPS Spreadsheet: Launch WPS Office and open an existing workbook or create a new spreadsheet.
- 2. Choose the output cell: Select the cell where you want the IF and OR result to appear.
- 3. Enter the criteria formula: Type =IF(OR(C3>=2.7,SUM(A42:A46)=5),1,0) in the formula bar and press Enter.
- 4. Check and reuse the result: Verify the returned value, then drag the fill handle or copy the formula to other rows if the references should be adjusted.

Frequently Asked Questions
What does =IF(OR(C3>=2.7,SUM(A42:A46)=5),1,0) return?
It returns 1 when C3 is greater than or equal to 2.7 or when the sum of A42:A46 equals 5. It returns 0 only when both conditions are false.
Can I use a different threshold or target sum?
Yes. Replace 2.7 with the required threshold and replace 5 with the target sum, while keeping the cell and range references that match your worksheet.
Why does the formula use OR instead of AND?
OR returns TRUE when at least one condition is true. Use AND only when both the threshold comparison and the SUM condition must be true before returning 1.
How can I return TRUE or FALSE instead of 1 or 0?
Enter =OR(C3>=2.7,SUM(A42:A46)=5) without the IF wrapper. This returns TRUE when either condition is met and FALSE when neither is met.
What is the shorter formula for the same numeric result?
Use =--OR(C3>=2.7,SUM(A42:A46)=5). The double unary converts the OR function's TRUE or FALSE result into 1 or 0.




