Count if Specific Text within a Date Range
I'm trying to create a formula to count a specific text within a column only when it's during a specific date range. I can't figure out where my error is.
=COUNTIFS([Branch Selected]:[Branch Selected], "East Branch", [Date]:[Date], >= [2020-08-01], [Date]:[Date], <=[2020-08-31])
Best Answers
-
You can try this:
=COUNTIFS([Branch Selected]:[Branch Selected], "East Branch", [Date]:[Date], MONTH(@cell)=8)
Hope it helped!
-
Hello @Stacy Hammons ,
I was able to replicate the error you are facing when the Date Column was a Text/Number type, rather that a Date type, but I was also able to have the above Formula return a result when having the Date Column as a Date Type.
With this, you may want to view the Properties of your Column named Date to verify this is a Date type.
Kindest Regards
Sean
-
Thank you @Sean Morgan. I checked that. After digging a little deeper I think my problem is how it flows into the worksheet. It's not picking the date up as a date. I will reach out to get this fixed.
Answers
-
You can try this:
=COUNTIFS([Branch Selected]:[Branch Selected], "East Branch", [Date]:[Date], MONTH(@cell)=8)
Hope it helped!
-
@David Joyeuse Thanks, I tried that and it didn't work. It says Invalid data type. My form format is 2020-09-28. Would that make a difference?
-
Hello @Stacy Hammons ,
I was able to replicate the error you are facing when the Date Column was a Text/Number type, rather that a Date type, but I was also able to have the above Formula return a result when having the Date Column as a Date Type.
With this, you may want to view the Properties of your Column named Date to verify this is a Date type.
Kindest Regards
Sean
-
Thank you @Sean Morgan. I checked that. After digging a little deeper I think my problem is how it flows into the worksheet. It's not picking the date up as a date. I will reach out to get this fixed.
Help Article Resources
Categories
- All Categories
- 14 Welcome to the Community
- Smartsheet Customer Resources
- 64.2K Get Help
- 419 Global Discussions
- 221 Industry Talk
- 461 Announcements
- 4.8K Ideas & Feature Requests
- 143 Brandfolder
- 142 Just for fun
- 58 Community Job Board
- 462 Show & Tell
- 32 Member Spotlight
- 1 SmartStories
- 299 Events
- 38 Webinars
- 7.3K Forum Archives
Check out the Formula Handbook template!