Function Problems

Sum Excel Values Between Start and End Dates by Name

Ayan MasoodAyan Masood Dec 2, 2026 869 views

Question details

Calculate the total project modification value for a matching name when a target date falls between each project's start and completion dates.

Sum Excel Values Between Start and End Dates by Name
Product
Microsoft Excel
Device & OS
not provided
Scenario
A worksheet contains assigned names, project start dates, completion dates, and modification values. A target date is provided in a header or cell.
Observed behavior
The desired total includes values only for the selected name and projects active on the target date.
Before you start

Check that the start, completion, and target dates are stored as actual spreadsheet dates and that the values to sum are numeric. In the examples below, names are in A2:A16, start dates in B2:B16, completion dates in C2:C16, and values in D2:D16.

Solution 1Recommended

Use SUMIFS to total values for a name and target date

Use this formula when each project occupies one row and you want to include both start and completion dates.

1
Enter the criteria

Enter the name to match in A20 and the target date in B20.

2
Enter the formula

Select C20 and enter =SUMIFS($D$2:$D$16,$A$2:$A$16,A20,$B$2:$B$16,"<="&B20,$C$2:$C$16,">="&B20).

3
Check the result

Press Enter. Excel sums values in column D where the name matches A20, the start date is on or before B20, and the completion date is on or after B20.

Use SUMIFS to total values for a name and target date
Adjust the references: Replace the example ranges and criteria cells with those in your worksheet. Keep all SUMIFS ranges the same size.
Calculate project totals in WPS Spreadsheets

Sum project values by name and date in WPS Spreadsheets

Use SUMIFS in WPS Spreadsheets to total project values for a matching name when a target date falls within each project's date range.

  1. 1. Open the spreadsheet: Open WPS Spreadsheets and use File > Open to select your workbook.
  2. 2. Enter the criteria: For the example layout, enter the name in A20 and the target date in B20.
  3. 3. Add the formula: Select C20 and enter =SUMIFS($D$2:$D$16,$A$2:$A$16,A20,$B$2:$B$16,"<="&B20,$C$2:$C$16,">="&B20). Adjust the references if your data is in different cells.
  4. 4. Calculate and save: Press Enter to calculate the total, then use File > Save to save the workbook.
Apply name and inclusive date-range criteria in one SUMIFS formula.Open and edit Microsoft Excel XLSX and XLS files.Use a familiar spreadsheet interface to review and update project data.
microsoft office alternative - wps office

Frequently Asked Questions

Are the start and completion dates included in the total?

Yes. The <= and >= conditions include a project when the target date is the same as its start or completion date.

Why does my SUMIFS formula return zero?

Check that the name in A20 matches the source names, that B20 and the source dates are actual dates, and that column D contains numbers. Also check that the referenced ranges cover the relevant rows.

How do I use a date in a column header as the target date?

Replace B20 in the formula with the header cell reference. For example, use E1 if the target date is in E1, while keeping the start-date condition <= and the completion-date condition >=.

Can I use the same formula in WPS Spreadsheets?

Yes. Open the workbook in WPS Spreadsheets, select the result cell, and enter the SUMIFS formula with references adjusted to your data.