Calculation Issues

Update Future Patient Counts in an Excel Projection

Rana GarciaRana Garcia Nov 18, 2026 869 views

Question details

Create formulas that apply patient-count changes for a specified number of treatment days and show the results in a projection chart.

Update Future Patient Counts in an Excel Projection
Product
Microsoft Excel
Device & OS
not provided
Scenario
A worksheet lists treatment days and baseline patient counts, and a user needs temporary count changes reflected in future projections.
Observed behavior
The desired projection applies each change only to the specified treatment-day rows and displays the calculated counts in a chart.
Before you start

Confirm that each worksheet row represents one consecutive treatment day and that the baseline count for each day is already in the sheet. Decide whether the effective day counts toward the duration; the formula below includes it.

Solution 1Recommended

Use helper columns to calculate the projected patient counts

Use this method to apply one or more temporary changes to their specified treatment-day rows and keep the chart linked to the results.

The example uses column A for treatment dates, B for baseline counts, C for signed patient-count changes, D for the number of affected days, E for the exclusive end row, F for the worksheet row, and G for the projected count. Adjust the references if your layout differs.

A duration of 3 applies the change to the entry row and the next two treatment-day rows. Overlapping changes are added together.

1
Enter changes and durations

In column C, enter a positive or negative patient-count change on its effective row. In column D, enter the number of affected treatment days as a positive whole number.

2
Add row helpers

In E2, enter =D2+ROW(). In F2, enter =ROW(). Fill both formulas down through the last projection row.

3
Calculate the projection

In G2, enter =B2+SUMIF(E$2:E2,">"&F2,C$2:C2). Fill the formula down column G, then check that each change starts and ends on the intended rows.

4
Update the chart

Select the existing chart, open Chart Design > Select Data, and edit its patient-count series to use the calculated cells in column G. Set the horizontal axis labels to the treatment dates in column A if needed.

Use helper columns to calculate the projected patient counts
Keep the baseline separate: Leave column B as the baseline while column G contains formulas. Replacing the baseline with calculated values can cause changes to be counted again. For patient-specific data, protect access to the workbook and consider a secure database.
Calculate projections in WPS Spreadsheets

Update patient-count projections with WPS Spreadsheets

Open the workbook in WPS Spreadsheets, use row helpers and SUMIF to calculate temporary patient-count changes, and link the projection chart to the results.

  1. 1. Open the workbook: Open WPS Spreadsheets and select Menu > Open to load the Excel workbook.
  2. 2. Enter the inputs: Use column A for dates and B for baseline counts. Enter signed changes in column C and their durations in column D on the effective rows.
  3. 3. Calculate projected counts: Enter =D2+ROW() in E2, =ROW() in F2, and =B2+SUMIF(E$2:E2,">"&F2,C$2:C2) in G2. Fill the formulas down through the projection rows.
  4. 4. Create or update the chart: Select the dates in column A and calculated counts in column G, then use Insert > Chart to create a projection chart. For an existing chart, select it and use Select Data to change the series to column G.
Apply changes for a specified number of treatment-day rowsOpen and edit Microsoft Excel XLSX workbooksUse familiar spreadsheet formulas and chartsWork with a free, easy-to-use office suite
microsoft office alternative - wps office

Frequently Asked Questions

Does the duration include the day I enter the change?

Yes. A duration of 3 in column D applies the change on that row and the next two treatment-day rows.

Can I enter a decrease in patient count?

Yes. Enter a negative number in column C on the effective row and a positive duration in column D. The projection formula subtracts that change for the specified rows.

What happens when two changes overlap?

The SUMIF formula adds all changes that are still active on each row. Check column G against the baseline in column B to verify the combined result.

Will the formula count calendar days that are missing from the sheet?

No. The formula counts worksheet rows, not elapsed calendar days. Use one row per consecutive treatment day, or use a date-based formula if the duration must account for missing dates.

Why isn't my chart showing the new counts?

Select the chart and open Chart Design > Select Data in Excel. Make sure the patient-count series points to the calculated range in column G rather than the baseline range in column B.