Calculate Monthly Project Totals and Averages in Excel
Question details
Calculate monthly totals and averages for projects active during each month.

- Product
- Microsoft Excel
- Device & OS
- not provided
- Scenario
- A project report contains start dates, end dates, and values, and needs formulas that include projects active in each reporting month.
- Observed behavior
- Each month's total and average should update as project data is added.
Enter valid Excel dates for every project start and end date, and make sure each end date is on or after its start date. The formulas below assume start dates are in column A, end dates in column B, project values in column E, and reporting months in column G.
Calculate totals and averages for projects active each month
Use SUMIFS and AVERAGEIFS to include projects whose date ranges overlap each reporting month.
These formulas include the full project value in every month the project is active. They do not prorate values by days or project duration, and projects without end dates are excluded.
In G2, enter a date within the first reporting month. Enter dates for subsequent months in G3 and below.
In H2, enter =SUMIFS($E$2:$E$100,$A$2:$A$100,"<= "&EOMONTH(G2,0),$A$2:$A$100,">0",$B$2:$B$100,">="&EOMONTH(G2,-1)+1). Remove the space after <= so the criterion reads "<="&EOMONTH(G2,0).
In I2, enter =IFERROR(AVERAGEIFS($E$2:$E$100,$A$2:$A$100,"<="&EOMONTH(G2,0),$A$2:$A$100,">0",$B$2:$B$100,">="&EOMONTH(G2,-1)+1),"").
Select H2:I2 and drag the fill handle down beside the reporting months in column G. Adjust all row ranges together if your project data extends beyond row 100.

Calculate monthly project totals in WPS Spreadsheets
Open your project workbook in WPS Spreadsheets and use date-based formulas to total and average values for projects active in each month.
- 1. Open the workbook: Open WPS Spreadsheets and select Open to load your Excel project workbook.
- 2. Check the project columns: Place valid start dates in column A, end dates in column B, and project values in column E. Enter reporting-month dates in column G.
- 3. Enter the formulas: In H2, enter =SUMIFS($E$2:$E$100,$A$2:$A$100,"<="&EOMONTH(G2,0),$A$2:$A$100,">0",$B$2:$B$100,">="&EOMONTH(G2,-1)+1). In I2, enter =IFERROR(AVERAGEIFS($E$2:$E$100,$A$2:$A$100,"<="&EOMONTH(G2,0),$A$2:$A$100,">0",$B$2:$B$100,">="&EOMONTH(G2,-1)+1),"").
- 4. Fill and save: Drag the fill handle from H2:I2 down through the reporting months, then select Save to update the workbook.

Frequently Asked Questions
Which projects are included in a month's total?
A project is included if it starts on or before the last day of the month and ends on or after the first day of the month. Projects that start or end on those boundary dates are included.
Will the formulas include projects added later?
Yes, if you enter them within rows 2 through 100. If you add projects beyond row 100, expand every referenced range in the formulas to cover the new rows.
What happens if a project has no end date?
The formulas exclude it because a blank end date does not meet the end-date criterion. Enter a valid end date, or modify the formula if blank end dates should represent ongoing projects.
Does the monthly total divide a project's value across its duration?
No. The full value is included in each month the project overlaps. A prorated report needs a different formula based on the allocation method, such as days active in each month.




