COUNTIFS with month and year
The data that I have is on the Date:Date column. I want the formula to return the amount of cells that meet the month and year criteria. I have the following formula and I'm not sure what's wrong but it gives the #unparseable error. I have tried many different formulas from other posts but can't get it right.
=COUNTIFS(Date:Date, IFERROR(MONTH(@cell), 0) = 6), IFERROR(YEAR(@cell), 0)=2022))
Thanks!
Best Answer
-
Hope this helps
=COUNTIFS(Date:Date, IFERROR(MONTH(@cell), 0) = 6, Date:Date, IFERROR(YEAR(@cell), 0) = 2022)
Answers
-
You have an extra parentheses
=COUNTIFS(Date:Date, IFERROR(MONTH(@cell), 0) = 6, Date:Date, IFERROR(YEAR(@cell), 0)=2022)
Edit: good call @Dan W - also need the criteria range again.
-
Hope this helps
=COUNTIFS(Date:Date, IFERROR(MONTH(@cell), 0) = 6, Date:Date, IFERROR(YEAR(@cell), 0) = 2022)
Help Article Resources
Categories
- All Categories
- 14 Welcome to the Community
- Customer Resources
- 67.1K Get Help
- 450 Global Discussions
- 155 Industry Talk
- 505 Announcements
- 5.4K Ideas & Feature Requests
- 85 Brandfolder
- 156 Just for fun
- 80 Community Job Board
- 514 Show & Tell
- 34 Member Spotlight
- 2 SmartStories
- 308 Events
- 36 Webinars
- 7.3K Forum Archives
Check out the Formula Handbook template!