How do I count how many rows where today falls between the Start Date and the End Date?
I'm trying to count how many rows of the sheet fall between the Start Date and the End date.
I've tried various formulas, including ones that I've found online. This is the one I'm currently trying and its coming up as #UNPARSEABLE. Can someone tell me what I'm doing wrong? I'd like to use this formula in a summary sheet.
=COUNTIFS([Start Date], @row <=TODAY(), [End Date], @row >=TODAY())
Best Answer
-
The problem is the ranges. You need to use [Column Name]:[Column Name] to reference an entire column.
=COUNTIFS([Start Date]:[Start Date], @cell<=TODAY(), [End Date]:[End Date], @cell>= TODAY())
Answers
-
@SembraMartin Have you tried using @cell instead? COUNTIFS([START Date], @cell <= TODAY(), [END Date], @cell >= TODAY())
-
@Razetto Yes, I have. It comes up with the same #UNPARSEABLE error.
-
@SembraMartin I used a small sample of your data and plug the formula with @cell in the summary sheet (text/number field) and got a 2 so I'm not sure where the problem is.
-
Hello, I tried using the formula above but things got a bit more tricky than I think they needed to. This probably isn't exactly what you're looking for but I like to keep things as simple as possible and still meet my needs so here is an option for you.
in column "Fall between the Start Date and the End date" I just used an if statement
=IF(AND([Start Date]@row <= Today@row, [End Date]@row >= Today@row), "Yes", "No")
then I created a space at the top of my sheet and used a simple Count if
=COUNTIF([fall between the Start Date and the End date.]2:[fall between the Start Date and the End date.]16, "Yes")
I like filters and this way you have a filter, you can rename the "Yes" or "No" to whatever you want.
Just in case you wanted the total count to display on every row:
=[fall between the Start Date and the End date.]$1
^Don't for get the $ sign before the 1 though^
In your example you already had "Today's" date so there is no need to use "Today()" in the formula. Hopefully you find this useful if not feel free to reply and I will try a different method figured I would start with the easiest one first.
-
The problem is the ranges. You need to use [Column Name]:[Column Name] to reference an entire column.
=COUNTIFS([Start Date]:[Start Date], @cell<=TODAY(), [End Date]:[End Date], @cell>= TODAY())
-
I got it! thanks everyone!
-
Happy to help. 👍️
Help Article Resources
Categories
- All Categories
- 14 Welcome to the Community
- Smartsheet Customer Resources
- 62.2K Get Help
- 360 Global Discussions
- 199 Industry Talk
- 427 Announcements
- 4.4K Ideas & Feature Requests
- 136 Brandfolder
- 127 Just for fun
- 128 Community Job Board
- 444 Show & Tell
- 28 Member Spotlight
- 1 SmartStories
- 283 Events
- 35 Webinars
- 7.3K Forum Archives
Check out the Formula Handbook template!