Formula for counting dates in a month
I need to count how many jobs there were per month on another sheet, any tips on how to make the "COUNTIF" or "DATE"
My current formula for the month of January that comes up as "Unparseable"
=COUNTIFS({Date}, AND((>=DATE(2024,1,1), <=DATE(2024,1,31))))
{Date} is the column from the other sheet
Help would be appreciated
Best Answer
-
Since you are using COUNTIFS, AND function is no longer needed. Can you try this -
=COUNTIFS( {Date}, >=DATE(2024,1,1), {Date}, <=DATE(2024,1,31)
...
Answers
-
Since you are using COUNTIFS, AND function is no longer needed. Can you try this -
=COUNTIFS( {Date}, >=DATE(2024,1,1), {Date}, <=DATE(2024,1,31)
...
-
You can use the AND function to avoid having to repeat the {Range}. You just had some extra parenthesis and needed "@cell" references.
=COUNTIFS({Date}, AND(@cell >= DATE(2024,1,1), @cell <=DATE(2024,1,31)))
But since it looks like you are trying to pull everything for the entire year, you could also use
=COUNTIFS({Date}, IFERROR(YEAR(@cell), 0) = 2024)
Help Article Resources
Categories
- All Categories
- 14 Welcome to the Community
- Smartsheet Customer Resources
- 62.4K Get Help
- 364 Global Discussions
- 201 Industry Talk
- 430 Announcements
- 4.4K Ideas & Feature Requests
- 137 Brandfolder
- 129 Just for fun
- 128 Community Job Board
- 446 Show & Tell
- 28 Member Spotlight
- 1 SmartStories
- 284 Events
- 35 Webinars
- 7.3K Forum Archives
Check out the Formula Handbook template!