How to Sum Patient Counts by Status in Excel
Question details
Calculate total patient counts for each well-being status without repeatedly filtering and using AutoSum.

- 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.
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.
Create an Excel PivotTable to sum counts by status
Use a PivotTable to see status totals and explore them by ward, shift, or date.
Click any cell in the patient data, or select the full range including the column headers.
Go to Insert > PivotTable, confirm the data range, choose a location, and click OK.
In the PivotTable Fields pane, drag the well-being status field to Rows and the patient count field to Values.
If the Values area shows Count instead of Sum, open the field's Value Field Settings and select Sum.
Drag Ward to Columns or Rows to break down totals by ward. Drag Shift and Date to Filters, Rows, or Columns as needed.

Use SUMIF to total one status
Use a formula when you need a total for a particular status without creating a PivotTable.
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. Open the workbook: In WPS Spreadsheets, open the workbook containing the patient data.
- 2. Insert a PivotTable: Select the data range with its headers, then choose Insert > PivotTable and select a location.
- 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. Add breakdowns: Drag Ward, Shift, or Date to Rows, Columns, or Filters to view the totals in the way you need.

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.




