Function Problems

How to Copy COUNTIF Formulas Across Excel Sheets by Date in WPS Office

Steve KSteve K Nov 13, 2026 869 views

Question details

The user needs a COUNTIF formula copied on a Summary sheet to reference different daily worksheet names by date, because ordinary relative references do not automatically increment worksheet names.

How to Copy COUNTIF Formulas Across Excel Sheets by Date in WPS Office
Product
WPS Office Spreadsheets
Device & OS
not provided
Scenario
The user is summarizing daily worksheets into a Summary sheet row by row or column by column.
Observed behavior
When the COUNTIF formula is copied down, it keeps pointing to the same daily worksheet instead of moving to the next date sheet.
Before you start

Open the workbook in WPS Spreadsheets and check whether your daily records are in separate tabs or can be combined into one master table. Verify that date values are actual dates and that every daily sheet uses the same column layout.

Solution 1Recommended

Consolidate data into a master table and summarize with COUNTIFS or a PivotTable

Use this when you need a stable, non-volatile way to summarize daily worksheets by date and want formulas that copy correctly down and across.

Ordinary cell references change row and column addresses, not worksheet names. A master table with a Date column lets COUNTIFS filter by date and category, so the summary remains reliable as daily data grows.

1
Create a master data table

In WPS Office Spreadsheets, click the plus icon next to the sheet tabs, name the new sheet Master, and copy the daily records into one table with a Date column and the column you want to count.

2
Enter a COUNTIFS summary formula

On the Summary sheet, click the cell where the first daily total should appear, click the Formulas tab, then choose Insert Function, search for COUNTIFS, and build this formula: =COUNTIFS(Master!$A:$A,$A2,Master!$B:$B,B$1).

3
Fill the formula across the summary grid

Press Enter, then drag the fill handle down and right. The locked master range stays fixed while $A2 and B$1 move with each date row and criteria column.

4
Create a date summary with a PivotTable instead

Select the master table, click Insert > PivotTable, place Date in the Rows area and the criteria field in the Columns and Values areas to generate a cross-tab summary by date without copying formulas.

Consolidate data into a master table and summarize with COUNTIFS or a PivotTable
Result: With this structure, WPS Spreadsheets recalculates COUNTIFS instantly when you add new dated rows to the master table, and you do not need volatile INDIRECT formulas.
WPS Spreadsheets formula fix

Summarize Daily Sheets by Date in WPS Spreadsheets Without Broken COUNTIF References

Use WPS Office Spreadsheets to consolidate daily data into one master table and summarize it by date with COUNTIFS or PivotTables, so copied formulas and reports update correctly as dates change.

  1. 1. Open the workbook: Launch WPS Office Spreadsheets and open the Excel workbook that contains the daily sheets and Summary sheet.
  2. 2. Merge daily records into a master table: Insert a new sheet, name it Master, and copy the daily records into one table; include a Date column and the criteria column.
  3. 3. Create a COUNTIFS summary by date: On the Summary sheet, select the first result cell and enter =COUNTIFS(Master!$A:$A,$A2,Master!$B:$B,B$1), then press Enter.
  4. 4. Fill the formula across the summary grid: Drag the fill handle down and right to adjust the date row and criteria column references while keeping the master table range locked.
  5. 5. Check totals: Review a few daily totals against the original sheets to confirm the summary updates correctly as new dated rows are added.
Fixes COUNTIF references across multiple sheets by moving data into a date-driven master tableSupports Microsoft Excel .xlsx files, so existing COUNTIF/COUNTIFS workbooks open and save compatibly in WPS OfficeUses COUNTIFS and PivotTables for faster, non-volatile daily summariesFree, familiar ribbon interface makes it easy to reorganize workbook data and formulas
microsoft office alternative - wps office

Frequently Asked Questions

Why does my COUNTIF formula keep referencing the same daily worksheet after I copy it?

WPS Spreadsheets follows the same Excel behavior: relative references change cell addresses, not worksheet names. To change the worksheet by date, you need either a helper sheet-name list with INDIRECT or a master data table summarized by COUNTIFS.

Can I use INDIRECT to make COUNTIF use a different sheet name in each row?

Yes. Enter the exact sheet names or matching date values in a helper column, then use an INDIRECT COUNTIF formula that points to that helper cell. Keep in mind that INDIRECT is volatile and can slow large workbooks.

What is the recommended way to summarize daily sheets by date in WPS Office?

Combine the daily records into one master table with a Date column, then use COUNTIFS or a PivotTable. This avoids broken sheet references and updates cleanly when data changes.

Does WPS Office support COUNTIFS and PivotTables like Microsoft Excel?

Yes. WPS Office Spreadsheets opens, edits, and saves .xlsx workbooks and supports COUNTIFS, PivotTables, and other summary formulas, so you can use the same analysis workflow.

How do I create a PivotTable in WPS Spreadsheets to summarize dates?

Select the master data, click Insert > PivotTable, choose a new worksheet, then drag Date to Rows and the criteria field to Columns and Values to create the daily summary.