Formula to count media in market
Hello,
I'm looking for a formula to count media based on their date range.
1) Count media where date range (start & end date columns) are in the PAST
2) Count media where date range (start & end date columns) include TODAY
3) Count media where date range (start & end date columns) are in the FUTURE
I believe I have 1 & 3 down, and I really just need help with #2.
Any ideas?
Thanks!
Best Answer
-
Hi @Kaitlyn Carroll,
I think the following does what you're looking for with #2:
=COUNTIFS([Start Date]:[Start Date], <=TODAY(), [End Date]:[End Date],
Sample data:
I hope this is correct - if I've misunderstood something then let me know!
Answers
-
There are a few ways to do this, 1 being in reports. You can actually point a report at a sheet and use the filters to get the date ranges you want, then use the Group and Summary options to return live counts of your media elements.
To do this as a metric or with formulas you would need to do something like the formula below. Also, I am assuming that you require BOTH the start & end dates to include TODAY, but if that is different you might need to modify the formula slightly.
=COUNTIFS(Start:Start, TODAY(), End:End, TODAY())
This formula will count each entry where the Start date and End date for an entry is equal to TODAY().
-
Hi there!
The date would need to be either the start or the end date, or in between those dates.
So, if we had a billboard up from February 1, 2023 until April1, 2023, I would count that as a piece of media currently in market. So the start / end date won't always be today, but would be in between the date range.
Is there a formula for something like that?
-
Hi @Kaitlyn Carroll,
I think the following does what you're looking for with #2:
=COUNTIFS([Start Date]:[Start Date], <=TODAY(), [End Date]:[End Date],
Sample data:
I hope this is correct - if I've misunderstood something then let me know!
-
I believe this solves it @Nick Korna ! Thanks!
Help Article Resources
Categories
- All Categories
- 14 Welcome to the Community
- Smartsheet Customer Resources
- 63.1K Get Help
- 382 Global Discussions
- 212 Industry Talk
- 444 Announcements
- 4.6K Ideas & Feature Requests
- 140 Brandfolder
- 129 Just for fun
- 130 Community Job Board
- 451 Show & Tell
- 30 Member Spotlight
- 1 SmartStories
- 291 Events
- 35 Webinars
- 7.3K Forum Archives
Check out the Formula Handbook template!