Pivot Table Issues

How to Sum Patient Counts by Status in Excel

Adam DavisAdam Davis Dec 2, 2026 869 views

Question details

Calculate total patient counts for each well-being status without repeatedly filtering and using AutoSum.

How to Sum Patient Counts by Status in Excel
Product
Microsoft Excel
Device & OS
not provided
Scenario
A worksheet contains patient counts organized by status, ward, shift, and date.
Observed behavior
The desired result is a summary of patient counts by status, with the option to view totals by ward, shift, or date.
Before you start

Make sure each column has a header and that patient counts are stored as numbers. Check that status labels are consistent, since different spellings will be summarized separately.

Solution 1Recommended

Create an Excel PivotTable to sum counts by status

Use a PivotTable to see status totals and explore them by ward, shift, or date.

1
Select the data

Click any cell in the patient data, or select the full range including the column headers.

2
Insert a PivotTable

Go to Insert > PivotTable, confirm the data range, choose a location, and click OK.

3
Add the status and counts

In the PivotTable Fields pane, drag the well-being status field to Rows and the patient count field to Values.

4
Confirm the sum calculation

If the Values area shows Count instead of Sum, open the field's Value Field Settings and select Sum.

5
Add other breakdowns

Drag Ward to Columns or Rows to break down totals by ward. Drag Shift and Date to Filters, Rows, or Columns as needed.

Create an Excel PivotTable to sum counts by status
Refresh after changes: After changing the source data, right-click the PivotTable and select Refresh. If new rows are outside the original source range, update the data source or use an Excel table as the source.
Summarize patient counts

Summarize patient counts with a WPS Spreadsheets PivotTable

Open your worksheet in WPS Spreadsheets and create a PivotTable to sum patient counts by status, with optional ward, shift, and date breakdowns.

  1. 1. Open the workbook: In WPS Spreadsheets, open the workbook containing the patient data.
  2. 2. Insert a PivotTable: Select the data range with its headers, then choose Insert > PivotTable and select a location.
  3. 3. Set up the summary: Drag the status field to Rows and the patient count field to Values. Set the Values calculation to Sum if necessary.
  4. 4. Add breakdowns: Drag Ward, Shift, or Date to Rows, Columns, or Filters to view the totals in the way you need.
Summarize patient counts by status without repeated filtering.Add ward, shift, and date fields to explore the totals.Open and save Microsoft Excel XLSX workbooks.Use a familiar spreadsheet interface for everyday analysis.
microsoft office alternative - wps office

Frequently Asked Questions

Why does my PivotTable show a count instead of a sum?

Excel may treat some patient count values as text. Check the source column for nonnumeric values, then open Value Field Settings in the PivotTable and select Sum.

How can I see totals for each ward and status?

In the PivotTable Fields pane, put Status in Rows, Ward in Columns, and Patient Count in Values. Make sure the Values calculation is set to Sum.

Can I use a cell reference instead of typing the status in SUMIF?

Yes. If the status is in A2, use =SUMIF(B:B,A2,G:G), assuming statuses are in column B and patient counts are in column G.

How do I update the totals after editing the source data?

Right-click the PivotTable and select Refresh. If you added rows outside the original source range, update the PivotTable's data source or use an Excel table as the source.