SUMPRODUCT For counting date cells using month & year only, and Yes/No criteria.

CarlStephens

Board Regular
Joined
Sep 25, 2020
Messages
128
Office Version
  1. 2016
Platform
  1. Windows
Is Sumproduct the right formula to count how many cells have the month October and the year 2021 in the date, and have a "Yes" in the following column? I cannot work it out.

1634770620087.png
 

Excel Facts

Create a Pivot Table on a Map
If your data has zip codes, postal codes, or city names, select the data and use Insert, 3D Map. (Found to right of chart icons).
Upvote 0
You could also combine the month/year check into a single comparison.

21 10 21.xlsm
EFGHIJ
1
2DateOutcomeMonthYear
325 October 2021YesOct2021
426 October 2021YesYes3
527 October 2021NoNo4
628 October 2021No
729 October 2021No
830 October 2021Yes
931 October 2021No
1001 November 2021Yes
1102 November 2021Yes
Sumproduct
Cell Formulas
RangeFormula
I4:I5I4=SUMPRODUCT((TEXT(E$3:E$11,"mmmyyyy")=I$3&J$3)*(F$3:F$11=H4))
 
Upvote 0
Solution
You're welcome. Glad we could help. Thanks for the follow-up. :)
 
Upvote 0

Forum statistics

Threads
1,213,553
Messages
6,114,279
Members
448,562
Latest member
Flashbond

We've detected that you are using an adblocker.

We have a great community of people providing Excel help here, but the hosting costs are enormous. You can help keep this site running by allowing ads on MrExcel.com.
Allow Ads at MrExcel

Which adblocker are you using?

Disable AdBlock

Follow these easy steps to disable AdBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the icon in the browser’s toolbar.
2)Click on the "Pause on this site" option.
Go back

Disable AdBlock Plus

Follow these easy steps to disable AdBlock Plus

1)Click on the icon in the browser’s toolbar.
2)Click on the toggle to disable it for "mrexcel.com".
Go back

Disable uBlock Origin

Follow these easy steps to disable uBlock Origin

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back

Disable uBlock

Follow these easy steps to disable uBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back
Back
Top