This problem can be solved with the COUNTIFS function or the SUMPRODUCT function, as explained below.

If you like, you could see the numbers underneath by temporarily formatting the dates with the Generalnumber format.

COUNTIFS function

TheCOUNTIFS functionis designed to count cells that meet multiple conditions.

Excel formula: Count between dates by age range

This syntax is specific toa group of eight functions in Excel.

Because the named rangedatecontains 12 dates, each expression inside SUMPRODUCT returns anarraywith 12 TRUE or FALSE values.

When these two arrays are multiplied together, they return an array of 1s and 0s.

Excel formula: Count cells between two numbers

The result is $630.

Excel formula: Highlight values between

Excel formula: Highlight dates between

Excel formula: Summary count by month with COUNTIFS

Excel COUNTIFS function

Excel SUMPRODUCT function

Article image