How to Use SUMIFS with a Date Range in Google Sheets
To use SUMIFS with a date range in Google Sheets, follow these instructions:
- Organize your data with the date column, criteria columns, and the column containing the values to sum.
- Identify the date range you want to use for the sum.
- Use the SUMIFS function with the proper syntax. The syntax for the SUMIFS function is:
SUMIFS(sum_range, criteria_range1, criterion1, [criteria_range2, criterion2, ...])
where:
sum_range
: The range of cells containing the values you want to sum.criteria_range1
: The range of cells containing the criteria for the first condition.criterion1
: The first condition for the sum.[criteria_range2, criterion2, ...]
: Optional additional criteria for the sum.
- For the date range criterion, use the comparison operators (">", "<") along with the desired dates.
- Ensure that the date values in the date range criterion are recognized by Google Sheets as valid dates.
Example
Let's say we have the following data in Google Sheets:
Date | Category | Amount |
---|---|---|
01/01/2021 | A | 100 |
01/15/2021 | B | 150 |
02/05/2021 | A | 200 |
02/20/2021 | B | 250 |
03/10/2021 | A | 300 |
03/25/2021 | B | 350 |
We want to sum the "Amount" values for the "A" category that fall between January 1st, 2021, and February 28th, 2021.
- Identify the date range: January 1st, 2021, to February 28th, 2021.
- Use the SUMIFS function with the proper syntax:
=SUMIFS(C2:C7, A2:A7, ">=01/01/2021", A2:A7, "<=02/28/2021", B2:B7, "A")
where:
C2:C7
: The range of cells containing the values to sum (Amount).A2:A7
: The range of cells containing the dates.">=01/01/2021"
: The condition for the start of the date range."<=02/28/2021"
: The condition for the end of the date range.B2:B7
: The range of cells containing the categories."A"
: The condition for the "A" category.
- Press Enter to get the result. In this example, the result is 300, which is the sum of the "Amount" values for the "A" category between January 1st, 2021, and February 28th, 2021.
Did you find this useful?