Excel SUMIFS with Dates (Table of Contents)
SUMIFS with Dates in Excel
SUMIFS is an excel function used to find conditional sum with multiple conditions. Logical operators are mostly used to compare the different conditions. This is a function that adds values which meets multiple criteria. Logical operators like greater than, less than, greater than or equal to, less than or equal to, not equal to, are used to compare the different criteria. While processing a sales report or banking transactions there will be situations to deal with dates. The SUMIFS will be used with dates in this condition. Here we may calculate the sum of product sales within a particular date or sum the sales done after a particular date etc. SUMIFS can consider as a plural form of SUMIF. Where single criteria will be checked in SUMIF and multiple in SUMIFS.
Syntax of the SUMIFS Function
- Sum_range the cells to sum once the criteria are satisfied
- Criteria_range1 the first range to be evaluated according to the criteria
- Criteria 1 the first condition that should meet the criteria
- Criteria_range2, criteria 2 additional range and criteria for the specified range
The result will depend on all the criteria given. If anyone is not satisfied it will not produce a result. SUMIFS works on AND logic so if any criteria does not match it won’t produce a result. The text and null values won’t be counted only numeric values will be added to give the sum.
How to Use SUMIFS with Dates in Excel?
When you have a single condition to check within a single range of cell SUMIF function is preferred. If the criteria are multiple and with a different range of cells SUMIFS function is used. Similar to the name it will make the sum of cells or range of cells only if the conditions are satisfied. Let’s understand how to use SUMIFS with Dates in Excel with some examples.
SUMIFS with Dates – Example #1
Below is the list of products shipped in different dates and Qty shipped. We need to find the sum of shipped quantity for a particular period.
- List of the product is given in column B, Product shipped date in column C and Qty shipped in column D are as below.
- We need to find the Qty shipped up to 18-Mar (consider as today) and after Jan-31. Here we apply multiple conditions. Select the column D13 and apply the formula to find the sum of Qty which satisfies both the conditions.
=SUMIFS (D2:D11, C2:C11,”<=”&TODAY (), C2:C11,”>=”&”01/31/2019″)
- Here D2: D1 is the range of Qty shipped C2: C1 is the range of dates shipped. Today () is the function to get the current day that is 18-3-2019. Logical operators are concatenated using “&” symbol with the function or date.
- The first criteria will be “<=” &Today (). This will check the given dates with 18- Mar. Since this satisfies with an entire column in the date the Qty will be selected as below to find the sum.
- For the second criteria,”>=”&”01/31/2019″, the date greater than or equal to 31-Jan the Qty shipped will select and make the sum as below
- The result will be the sum of Qty which comes under both, it will be from the shipped date 1-31-2019 to 3-18-2019. And the sum is 1755 as shown in the 1st screenshot.
SUMIFS with Dates – Example #2
Another set of data is given below. Order number, date of delivery and Bill Amount is given. We need to find the Bill amount after 3-25-2016 and before 12-25-2016
- Here we need to find the bill amount between the two mentioned dates. Select F3 and apply the formula
=SUMIFS (D2:D12, C2:C12,”>”&”3/25/2016”, C2:C12,”<“&”12/25/2016”)
- D2: D12 is the sum_range, C2: C12 is the criteria range. The two different criteria are given as ‘>3/25/2016’ and ‘<12/25/2016’.
- According to the criteria given, sum the bill amount after ‘3/25/2016’ for the first criteria given.
- And for the second criteria before ‘12/25/2016’ the amounts will be selected as below.
- So when both the criteria are satisfied the amount we will get, is shown in the 1st screenshot. That is after 25-Mar and before 25-Dec. And the sum will be 3583.95.
SUMIFS with Dates – Example #3
In this example, we can use SUMIFS with blank and non-blank criteria.
4.8 (1,875 ratings)
- Order date and delivery date of some products are given with Qty.
- Need to find the Qty of product which is not delivered yet. Applied the formula in the cell D13.
=SUMIFS (E2:E11, C2:C11,”<>”, D2:D11,”=”)
- In the first condition ‘C2: C11,”<>”’ we will select the non-empty cells in order date. And in the second condition, we will select the blank cells in the delivery.
- So both criteria satisfying cells will be as below.
- So the sum of both criteria satisfying cells will be 188 given in D13.
Things to Remember About SUMIFS with Dates
- The SUMIFs formula returns an error value ‘#VALUE!’ when the criteria do not match with the criteria range.
- Use the ‘&’ symbol to concatenate an excel function with a criteria string.
- SUMIFS function works according to the AND logic which means the range will be summed only if it meets all the given conditions.
- Whenever you enter an array formula that means a long formula press Ctrl + Shift + Enter which will enclose your formula within a curly brace that will help you to manage the long formula easily.
- The answer will be ‘0’ when the criteria do not match with each other.
This is a guide to SUMIFS with Dates in Excel. Here we discuss how to use SUMIFS Function with Dates in Excel along with practical examples and downloadable excel template. You can also go through our other suggested articles–