Sumproduct with dates issue

New Contributor
Require to check dates and get number of requests by month but result is 0

Screenshot from 2022-09-19 16-50-52.pngScreenshot from 2022-09-19 16-50-10.png
3 Replies
If column A is an actual date then you need to use that same TEXT(A7,"YYYY-MM") function to convert it to text before (actually instead of) taking LEFT(xxx, 7).
Also are you aware you are doing a COUNTIF()? basically you are summing up the number of cases that the left and right are equal?
best response confirmed by igrigorjevs (New Contributor)


The problem is that Excel stores dates as numbers. The LEFT function looks at these numbers, not at the formatted dates. Moreover, the result of the comparison is TRUE or FALSE, and SUMPRODUCT ignores such values.





Adjust the range as needed.

Thanks a lot
Working perfectly!