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
- Smartsheet Customer Resources
- 62.8K Get Help
- 376 Global Discussions
- 207 Industry Talk
- 440 Announcements
- 4.5K Ideas & Feature Requests
- 139 Brandfolder
- 129 Just for fun
- 130 Community Job Board
- 449 Show & Tell
- 30 Member Spotlight
- 1 SmartStories
- 284 Events
- 33 Webinars
- 7.3K Forum Archives
Check out the Formula Handbook template!