Function Problems

WPS Spreadsheets: Count Staff Names by Month on Another Sheet

Natalie TaylorNatalie Taylor Nov 12, 2026 868 views

Question details

The user needs to count staff requests by name and month when the source dates and monthly summary are on different worksheets.

Product
WPS Spreadsheets
Device & OS
not provided
Scenario
A request log contains staff names and request dates on the FACILITY REQUESTS sheet, while a monthly staff summary is being created on the TOTALS sheet.
Observed behavior
The user needs a formula that matches the staff name and counts dates from the beginning of each month up to, but not including, the beginning of the next month.
Before you start

Confirm that the request-date column contains real spreadsheet dates rather than text, and that staff names in the summary match the source names. In TOTALS!B1:M1, enter actual month-start dates such as 1/1/2024 and 2/1/2024 before formatting them as month names.

Solution 1Recommended

Use COUNTIFS with month-start dates across worksheets

Use this solution when the summary needs to count each staff member for each month and update as the source request list changes.

The formula uses the staff name in column A and two date conditions: greater than or equal to the selected month start and less than the next month start. This approach counts all dates in a month, including times stored with the dates, without relying on text month labels.

1
Add month-start dates

Open the TOTALS sheet and enter real dates in B1:M1, such as 1/1/2024, 2/1/2024, and 3/1/2024. Select the cells, open the Home tab, choose Number Format, and display them as month names if desired.

2
Enter the monthly formula

In TOTALS!B2, enter =COUNTIFS('FACILITY REQUESTS'!$G$2:$G$1000,$A2,'FACILITY REQUESTS'!$B$2:$B$1000,">="&B$1,'FACILITY REQUESTS'!$B$2:$B$1000,"<"&EDATE(B$1,1)). Adjust columns B and G if your request dates or staff names are stored elsewhere.

3
Fill the summary table

Select the formula cell, use the fill handle or Copy, and paste it across the month columns and down the staff-name rows. The mixed references keep the month header and staff name aligned as the formula moves.

4
Check the result

Compare a result with the FACILITY REQUESTS sheet by filtering the staff-name column and date column for one month. If the count is zero unexpectedly, check for text dates or inconsistent staff-name spelling.

Use COUNTIFS with month-start dates across worksheets
Use dates, not text month names: Month headers such as Jan or February must be formatted real dates for the >=B$1 and <EDATE(B$1,1) criteria to work reliably.

Build a Cross-Sheet Monthly Staff Request Summary in WPS Spreadsheets

WPS Spreadsheets can create the same cross-sheet COUNTIFS summary with real month-start dates, fillable formulas, and PivotTable support. Build the formula-based report for precise control or group request dates in a PivotTable for a faster interactive view.

  1. 1. Open the workbook in WPS Spreadsheets: Launch WPS Office, choose Spreadsheets, and open the workbook containing the FACILITY REQUESTS and TOTALS sheets.
  2. 2. Prepare the monthly headers: On the TOTALS sheet, enter month-start dates in B1:M1 and use Home > Number Format to display them as month names.
  3. 3. Create the cross-sheet count: In TOTALS!B2, enter the COUNTIFS formula using the staff-name range, request-date range, B1 month start, and EDATE(B1,1) as the next-month boundary.
  4. 4. Copy and verify the report: Copy the formula across and down, then compare one staff member and month against filtered records on the FACILITY REQUESTS sheet.
Count staff requests by name and month with COUNTIFS across worksheets.Use real date criteria to handle monthly boundaries and dates that include times.Create a PivotTable to group request dates by month and year.Open and save Microsoft Excel XLSX workbooks with compatible spreadsheet formulas.Use a familiar, lightweight spreadsheet interface for maintaining monthly summaries.
microsoft office alternative - wps office

Frequently Asked Questions

Why should the month headers be real dates instead of Jan or February text?

COUNTIFS needs numeric date boundaries for the >= and < criteria. Enter a date such as 1/1/2024 in B1, then use Home > Number Format to display it as Jan while keeping its date value.

How does the formula count an entire month?

The formula includes dates greater than or equal to the current month start and less than EDATE of that date by one month. For January, it counts from January 1 through every moment before February 1.

Which columns should replace G and B in the formula?

Replace 'FACILITY REQUESTS'!$G$2:$G$1000 with the source staff-name range and 'FACILITY REQUESTS'!$B$2:$B$1000 with the source request-date range if your workbook uses different columns.

Why does COUNTIFS return zero when the records appear to match?

Check that the request dates are stored as actual dates, not text, and that the staff names match exactly. Also verify that B1 contains a valid month-start date and that the worksheet name is spelled correctly.

Can I use a PivotTable instead of COUNTIFS?

Yes. Choose Insert > PivotTable, place staff names in Rows, request dates in Columns, and a name or request-ID field in Values. Right-click a date heading, choose Group, and select Months and Years.