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
- 63.5K Get Help
- 402 Global Discussions
- 213 Industry Talk
- 450 Announcements
- 4.7K Ideas & Feature Requests
- 141 Brandfolder
- 135 Just for fun
- 56 Community Job Board
- 454 Show & Tell
- 31 Member Spotlight
- 1 SmartStories
- 296 Events
- 36 Webinars
- 7.3K Forum Archives
Check out the Formula Handbook template!