COUNTIF Between Date Range
Hello,
I am trying to see how many projects were completed in in 2021. I have several different dates and years within the column, but I'm looking for a count of all projects with a 2021 date. The below formula is what I'm using but I am getting #UNPARSEABLE.
=COUNTIFS([NOC Recorded Date]:[NOC Recorded Date], >=DATE(2021, 1, 1) [NOC Recorded Date]:[NOC Recorded Date], <=DATE(2021, 12, 31))
I'd love help fixing if anyone can offer tips.
Best Answer
-
Use the AND function to give it two criteria to analyze from one single range. The @cell reference evaluates every cell at once. You were also missing a comma between your range/criteria sets.
=COUNTIFS([NOC Recorded Date]:[NOC Recorded Date], AND(@cell >=DATE(2021, 01, 01), @cell <= DATE(2021, 12, 31)))
Regards,
Jeff Reisman
Link: Smartsheet Functions Help Pages Link: Smartsheet Formula Error Messages
If my answer helped solve your issue, please mark it as accepted so that other users can find it later. Thanks!
Answers
-
Use the AND function to give it two criteria to analyze from one single range. The @cell reference evaluates every cell at once. You were also missing a comma between your range/criteria sets.
=COUNTIFS([NOC Recorded Date]:[NOC Recorded Date], AND(@cell >=DATE(2021, 01, 01), @cell <= DATE(2021, 12, 31)))
Regards,
Jeff Reisman
Link: Smartsheet Functions Help Pages Link: Smartsheet Formula Error Messages
If my answer helped solve your issue, please mark it as accepted so that other users can find it later. Thanks!
-
@Jeff Reisman thank you for your help! That worked perfectly for me.
Help Article Resources
Categories
- All Categories
- 14 Welcome to the Community
- Customer Resources
- 65.4K Get Help
- 447 Global Discussions
- 144 Industry Talk
- 479 Announcements
- 5.1K Ideas & Feature Requests
- 85 Brandfolder
- 151 Just for fun
- 72 Community Job Board
- 490 Show & Tell
- 33 Member Spotlight
- 2 SmartStories
- 302 Events
- 36 Webinars
- 7.3K Forum Archives
Check out the Formula Handbook template!