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
- 64.3K Get Help
- 423 Global Discussions
- 221 Industry Talk
- 461 Announcements
- 4.8K Ideas & Feature Requests
- 143 Brandfolder
- 143 Just for fun
- 59 Community Job Board
- 462 Show & Tell
- 32 Member Spotlight
- 1 SmartStories
- 300 Events
- 39 Webinars
- 7.3K Forum Archives
Check out the Formula Handbook template!