Trying to count if data range falls between two dates.
I have a sheet with StartDate and EndDate fields. I want to count actual items opened on a separate sheet if the date falls between the start date and end date. The below formula keeps returning #UNPARSEABLE and I suspect its something minor.
=COUNTIFS({Request Tracker with Form Range 1}, "<=" & (EndDate@row),{Request Tracker with Form Range 1}, ">=" & (StartDate@row))
Best Answers
-
=COUNTIFS( {Request Tracker with Form Range 1}, <= (EndDate@row), {Request Tracker with Form Range 1}, >= (StartDate@row))
and make sure that the date columns and actually formatted as DATE in their properties.
...
-
=COUNTIFS({Request Tracker Form StartDate},>=[StartDate]@row,{Request Tracker Form EndDate},<=[EndDate]@row)
I think that should work or something similar. If not a way to surely accomplish this would be to add a column to your other sheet. Make that column have a text like "Between"
=IF(AND(DATE@row>=[StartDate]@row, DATE@row <= [EndDate]@row),"Between","")
On the separate Sheet your equation can now be
=COUNTIF({Between?},"Between")
Hope this helps.
Answers
-
=COUNTIFS( {Request Tracker with Form Range 1}, <= (EndDate@row), {Request Tracker with Form Range 1}, >= (StartDate@row))
and make sure that the date columns and actually formatted as DATE in their properties.
...
-
=COUNTIFS({Request Tracker Form StartDate},>=[StartDate]@row,{Request Tracker Form EndDate},<=[EndDate]@row)
I think that should work or something similar. If not a way to surely accomplish this would be to add a column to your other sheet. Make that column have a text like "Between"
=IF(AND(DATE@row>=[StartDate]@row, DATE@row <= [EndDate]@row),"Between","")
On the separate Sheet your equation can now be
=COUNTIF({Between?},"Between")
Hope this helps.
-
That worked, thanks! There is enough of a difference in syntax from what I'm use to I get stuck on some trivial stuff sometimes.
Help Article Resources
Categories
- All Categories
- 14 Welcome to the Community
- Customer Resources
- 64.8K Get Help
- 434 Global Discussions
- 138 Industry Talk
- 470 Announcements
- 4.9K Ideas & Feature Requests
- 129 Brandfolder
- 148 Just for fun
- 65 Community Job Board
- 486 Show & Tell
- 33 Member Spotlight
- 2 SmartStories
- 300 Events
- 36 Webinars
- 7.3K Forum Archives
Check out the Formula Handbook template!