How to Count Dates Within 15 Days When an Adjacent Cell Is FALSE in WPS Spreadsheets
Question details
The user needs a COUNTIFS formula that counts dates in a selected 15-day window while requiring the adjacent checkbox or TRUE/FALSE column to be FALSE, with variants for future-only and past-only date ranges.
- Product
- WPS Spreadsheets
- Device & OS
- not provided
- Scenario
- A user is working with a date column and an adjacent TRUE/FALSE column and wants to conditional-count rows that meet both the date-window and FALSE conditions.
- Observed behavior
- The goal is to return a correct count using a formula rather than manual filtering.
Make sure the date column contains real date values and the adjacent column contains actual TRUE/FALSE values, not text. Confirm that both ranges in the formula cover the same number of rows.
Use COUNTIFS to count dates within 15 days when the adjacent cell is FALSE
Use this solution when you need one count that combines a 15-day date range with a FALSE condition in the adjacent column.
COUNTIFS counts rows only when every criterion is true. The date criteria can be changed to include the past 15 days, the next 15 days, or a combined window around today.
Select an empty cell for the result and type =COUNTIFS(D6:D15,">="&TODAY()-15,D6:D15,"<="&TODAY()+15,E6:E15,FALSE), then press Enter. This counts dates from 15 days before today through 15 days after today where column E is FALSE.
For today through the next 15 days, use =COUNTIFS(D6:D15,">="&TODAY(),D6:D15,"<="&TODAY()+15,E6:E15,FALSE). For the previous 15 days through today, use =COUNTIFS(D6:D15,">="&TODAY()-15,D6:D15,"<="&TODAY(),E6:E15,FALSE).
Make sure D6:D15 and E6:E15 contain the same number of rows, and confirm column E returns TRUE/FALSE values so the COUNTIFS criteria match correctly.
Count date windows with COUNTIFS in WPS Spreadsheets
Use WPS Spreadsheets to apply COUNTIFS date-window and TRUE/FALSE criteria so you can tally rows that meet both conditions without manual filtering or extra helper columns.
- 1. Open your workbook in WPS Spreadsheets: Launch WPS Spreadsheets and open the file that contains the date column and adjacent TRUE/FALSE column.
- 2. Select the result cell: Click the empty cell where you want the COUNTIFS result to appear.
- 3. Enter the COUNTIFS formula: Type =COUNTIFS(D6:D15,">="&TODAY()-15,D6:D15,"<="&TODAY()+15,E6:E15,FALSE) and press Enter.
- 4. Adjust the date window if needed: Use =COUNTIFS(D6:D15,">="&TODAY(),D6:D15,"<="&TODAY()+15,E6:E15,FALSE) for future-only counts or =COUNTIFS(D6:D15,">="&TODAY()-15,D6:D15,"<="&TODAY(),E6:E15,FALSE) for past-only counts.
- 5. Review the returned count: Check that the result updates when dates or adjacent TRUE/FALSE values change, and confirm both ranges are the same size.

Frequently Asked Questions
How do I count only future dates within the next 15 days when the adjacent cell is FALSE?
Use =COUNTIFS(D6:D15,">="&TODAY(),D6:D15,"<="&TODAY()+15,E6:E15,FALSE). This counts rows where the date is from today through 15 days after today and column E is FALSE.
Why does my COUNTIFS return 0 even though there are matching rows?
Check that both ranges cover the same number of rows, the adjacent column contains real TRUE/FALSE values rather than text, and the date cells are actual dates. If dates are text, COUNTIFS cannot evaluate them against TODAY().
Can I reference a cell that contains FALSE instead of typing FALSE in the formula?
Yes. Put FALSE in a cell, such as F6, and use E6:E15,F6 as the last criterion. This makes the condition easier to update.
Does WPS Spreadsheets use the same COUNTIFS syntax as Excel for this formula?
Yes. WPS Spreadsheets supports COUNTIFS with the same comparison operators and criteria syntax, so workbooks using these formulas are compatible between WPS Office and Microsoft Excel.
What should I do if my date column is formatted as text?
Convert the text to real dates with Text to Columns, DATEVALUE, or by re-entering the dates. COUNTIFS date criteria only work correctly when the range contains serial date values.




