How to Use IF and OR Formulas for TRUE/FALSE Cell Changes in Excel
Question details
The user needs a spreadsheet formula that checks five weekday cells and returns "Collected" only when all five cells are FALSE, and "Not collected" if any of the cells remain TRUE.

- Product
- Spreadsheet
- Device & OS
- not provided
- Scenario
- Tracking weekly data collection using boolean (TRUE/FALSE) values to trigger a final status update.
- Observed behavior
- A logical test is required to output a specific status based strictly on the absence of TRUE values within a specified data range.
Ensure your weekday cells contain proper boolean TRUE or FALSE values rather than text strings, as logical functions evaluate boolean values directly.
Use the IF and OR Functions Together
Combine the IF and OR functions to check the entire range of cells simultaneously for any remaining TRUE values.
The OR function evaluates a range of cells and returns TRUE if at least one cell is TRUE. By nesting OR inside an IF function, you can output specific text based on whether any TRUE values remain in the targeted range.
Click on the cell where you want the final status result (e.g., "Collected" or "Not collected") to appear.
Type the formula =IF(OR(A2:E2),"Not collected","Collected"), adjusting A2:E2 to match the actual range of your weekday cells.
Press Enter to apply the formula. If every single cell in the designated range is FALSE, the cell will display "Collected".

Use the COUNTIF Function as an Alternative
Count the total number of TRUE values in the range to determine the final output.
Use WPS Spreadsheet to Handle Logical Formulas
WPS Spreadsheet provides a comprehensive library of logical functions, including IF, OR, AND, and COUNTIF, allowing you to easily manage data tracking, condition testing, and status updates.
- 1. Open your document: Launch WPS Spreadsheet and open the data file containing your weekday tracking.
- 2. Access the Formulas tab: Select the cell for your result, click the 'Formulas' tab on the top ribbon, and click 'Insert Function'.
- 3. Insert the logical formula: Choose the 'Logical' category to find IF and OR, or simply type =IF(OR(A2:E2),"Not collected","Collected") into the formula bar.
- 4. Apply and drag: Press Enter to execute the formula, then drag the fill handle down to apply it to other rows.

Frequently Asked Questions
Why does my formula return an error instead of 'Collected'?
This usually happens if the range contains text strings that look like "TRUE" or "FALSE" rather than actual boolean values, or if there is a typo in the formula syntax. Ensure there are no quotation marks around TRUE/FALSE in your source cells.
Can I use this formula if my cells are initially blank instead of TRUE?
Yes, but be aware that blank cells are evaluated as FALSE by the OR function. If you need to distinguish between blank cells (data not yet received) and FALSE cells, you may need to use a more complex formula combining IF and COUNTBLANK.
How can I apply this formula to an entire column of weekly rows?
After entering the formula in the first row's result cell, click the small square at the bottom-right corner of the cell and drag it down the column. WPS Spreadsheet will automatically adjust the row references (e.g., A2:E2 automatically becomes A3:E3 for the next row).
What if I want to check for a specific text value instead of TRUE/FALSE?
If you are checking for a specific text string like "Pending", you cannot use the OR function alone. Instead, replace it with a COUNTIF function, such as =IF(COUNTIF(A2:E2,"Pending")>0,"Not collected","Collected").




