22.8 Healthcare
Hospital and clinic interviews ask bed occupancy, average length of stay (ALOS), and whether appointments were actually seen. Footfall on a poster is not a KPI. This is a fictional trust, not a named hospital's result.
| KPI | What the number means | Who uses it | Action it drives |
|---|---|---|---|
| Occupancy | Patient-days divided by beds times days in the period. | Medical superintendent | High occupancy with a long stay is blocked beds, not "success". |
| ALOS | Patient-days divided by discharges. | Ward in-charge | A rising ALOS on the same ward is a discharge-planning problem. |
| Show-up % | Appointments seen divided by appointments booked. | OPD manager | No-shows are a call list. Do not add a doctor for patients who did not come. |
About this data: The KPIs in this Healthcare lesson are worked out from a fictional hospital trust with six wards in Pune, Nashik, Kolhapur and Nagpur. The figures are made up for this lesson and do not come from any real company or person.
Fictional sample rows. One week (7 days). Type these rows into a new sheet from cell A1, press Ctrl + T, and name the table tblWards (Table Design › Table Name).
| Ward | City | Beds | Days | Patient-days | Discharges | Appointments | Seen |
|---|---|---|---|---|---|---|---|
| General | Pune | 20 | 7 | 112 | 28 | 200 | 160 |
| Maternity | Pune | 10 | 7 | 56 | 14 | 80 | 70 |
| General | Nashik | 16 | 7 | 98 | 20 | 120 | 110 |
| Children | Nashik | 8 | 7 | 28 | 10 | 60 | 40 |
| General | Kolhapur | 12 | 7 | 42 | 8 | 90 | 50 |
| General | Nagpur | 18 | 7 | 100 | 16 | 140 | 120 |
About this data: The tblWards table has one row per ward and the columns Ward, City, Beds, Days, Patient-days, Discharges, Appointments and Seen. The figures are made up for this lesson and do not come from any real company or person.
Excel formulas for the whole file (type them in empty cells below or beside the table):
| KPI | Excel formula | Result | Number format |
|---|---|---|---|
| Occupancy | =SUM(tblWards[Patient-days])/SUMPRODUCT(tblWards[Beds],tblWards[Days]) |
74.1% | 0.0% |
| ALOS | =SUM(tblWards[Patient-days])/SUM(tblWards[Discharges]) |
4.54 days | 0.00 |
| Show-up % | =SUM(tblWards[Seen])/SUM(tblWards[Appointments]) |
79.7% | 0.0% |
About this data: Each formula above reads whole columns of the tblWards table. Every column holds beds, days, patients and appointments, so no currency format is needed. The figures are made up for this lesson and do not come from any real company or person.
Calculated columns (one result per row). Click the first empty column of the table, type the header, then the formula. The Table fills every row by itself.
| New column | Formula in the first row |
|---|---|
| Occupancy | =[@[Patient-days]]/([@Beds]*[@Days]) |
| ALOS | =[@[Patient-days]]/[@Discharges] |
| Show-up % | =[@Seen]/[@Appointments] |
About this data: The calculated columns use the same six fictional rows of the tblWards table, so you can change any number and watch each row's result update. The figures are made up for this lesson and do not come from any real company or person.
Expected result per row:
| Ward | Occupancy | ALOS | Show-up % |
|---|---|---|---|
| General (Pune) | 80.0% | 4.00 days | 80.0% |
| Maternity | 80.0% | 4.00 days | 87.5% |
| General (Nashik) | 87.5% | 4.90 days | 91.7% |
| Children | 50.0% | 2.80 days | 66.7% |
| General (Kolhapur) | 50.0% | 5.25 days | 55.6% |
| General (Nagpur) | 79.4% | 6.25 days | 85.7% |
About this data: These results are worked out from the six fictional wards in the tblWards table above. They do not describe any real company or person.
One city with SUMIFS. Occupancy for Pune only:
=SUMIFS(tblWards[Patient-days],tblWards[City],"Pune")/SUMPRODUCT((tblWards[City]="Pune")*tblWards[Beds]*tblWards[Days])
Result for Pune: 80.0%. Change "Pune" to a cell reference (for example $K$1) and add a drop-down, and the same formula answers for any city.
| Good KPI | Vanity metric | |
|---|---|---|
| From the same rows | Nashik children show-up 66.7% and occupancy 50.0% | Pune general 200 appointments |
| Why | Twenty of sixty Nashik children did not come. The ward is half empty. | Pune's appointment card is the largest. Forty of those 200 also did not come, which the card hides. |
About this data: The good KPI and the vanity metric both come from the same fictional rows of the tblWards table, so the comparison is fair. The figures are made up for this lesson and do not come from any real company or person.
What the manager does. The Nashik manager calls the 20 missed children's appointments before asking for more beds. The Pune superintendent does not add a general-ward bed this week: occupancy is 80% and ALOS is 4 days, which is the planned stay in this file. The 40 Pune no-shows are a phone list, not a construction plan. Kolhapur general show-up is 50 ÷ 90 = 55.6% and occupancy is 42 ÷ 84 = 50.0%. Same action, different city.
Practice workbook and guide: Hospitals dashboard workbook (Excel) · How to build the Hospitals dashboard in Excel. The workbook data is also fictional.
Ravindra Bagale's Tip
Occupancy needs patient-days divided by beds × days. SUMPRODUCT does the beds × days part for the whole table in one step.
Ravindra Bagale's Tip – मराठी
Occupancy साठी patient-days भागिले beds × days लागतं. SUMPRODUCT पूर्ण table साठी beds × days चा भाग एकाच step मध्ये करतो.
Ravindra Bagale's Tip – हिंदी
Occupancy के लिए patient-days भाग beds × days चाहिए. SUMPRODUCT पूरी table के लिए beds × days वाला हिस्सा एक ही step में कर देता है.
Practice tasks (6)
Use the tblWards table from this lesson (6 fictional rows). Open a hint only if you are stuck, and check your result against the answer.
1. Write one formula that works out Show-up % for the whole tblWards table, and give it the number format 0.0%.
Hint: Read whole columns of the Table by name, such as tblWards[Beds], so new rows are included.
Answer: =SUM(tblWards[Seen])/SUM(tblWards[Appointments]) gives 79.7%.
2. Work out Show-up % for Pune only.
Hint: Replace each SUM with SUMIFS and add the condition tblWards[City] = "Pune".
Answer: =SUMIFS(tblWards[Seen],tblWards[City],"Pune")/SUMIFS(tblWards[Appointments],tblWards[City],"Pune") gives 82.1%.
3. Add a calculated column Occupancy to the Table. Which ward has the highest Occupancy?
Hint: Type the header in the first empty column, then the formula using [@column] references. The Table fills every row.
Answer: Maternity, with 80.0%.
4. Which ward has the lowest ALOS?
Hint: Add ALOS as a calculated column, then sort that column from smallest to largest.
Answer: Children, with 2.80 days.
5. What if Seen for Children changes from 40 to 48? Work out the new whole-table Show-up %.
Hint: Type the new value in the Table. Formulas that read whole columns update by themselves.
Answer: Show-up % changes from 79.7% to 80.9%.
6. How many wards have Occupancy above the whole-table Occupancy?
Hint: Compare each row of the Occupancy column with the whole-table result, 74.1%.
Answer: 2: General, Maternity.
Loading practice tasks...
- Total Beds (Easy): Add up the "Beds" column to get one total for all six wards.
- Average Patient-days (Easy): Work out the average of the "Patient-days" column across the six wards. Round the answer to 2 decimal places.
- Wards in Pune (Easy): Count how many rows have "Pune" in the "City" column.
- Largest Discharges (Easy): Find the largest value in the "Discharges" column.
- Beds for Pune (Medium): Add up the "Beds" column only for the rows where "City" is "Pune".
- Occupancy for all wards (Medium): Work out the Occupancy for all six wards. It is the total of "Patient-days" divided by the total of "Beds" times "Days" row by row. Round the answer to 3 decimal places, so 0.125 means 12.5%.
- Patient-days for General, Pune (Medium): Find the "Patient-days" value for the row where "Ward" is "General" and "City" is "Pune".
- Largest Patient-days in Pune (Medium): Find the largest "Patient-days" value among the rows where "City" is "Pune".
- Occupancy for General, Pune (Medium): Work out the Occupancy for the row where "Ward" is "General" and "City" is "Pune", using only the values in that one row. Round the answer to 3 decimal places, so 0.125 means 12.5%.
- ALOS for all wards (Hard): Work out the ALOS for all six wards. It is the total of "Patient-days" divided by the total of "Discharges". Round the answer to 2 decimal places.
- Show-up % for all wards (Hard): Work out the Show-up % for all six wards. It is the total of "Seen" divided by the total of "Appointments". Round the answer to 3 decimal places, so 0.125 means 12.5%.
- Above or below average (Hard): Show "Above" if the "Discharges" value for the row where "Ward" is "General" and "City" is "Pune" is more than the average of the "Discharges" column, and show "Below" if it is not.