Calculate occurrences in last 12 months AND in current year
Hello!
I am working on a dashboard that is focused on our tour program. I need a formula/function to show the amount of tours in the last 12 months and the amount of tours in the current year. Any help with this is greatly appreciated!
Shannon
Best Answer
-
Hi @SOmalley1124,
On a sheet summary you could use the following formulas:
- =COUNTIF([Tour Date]:[Tour Date],>TODAY(-365))
- =COUNTIF([Tour Date]:[Tour Date], >DATE(YEAR(TODAY()), 1, 1))
Hope this helps!
Best,
Zach Hall
Training Delivery Manager / Charter Communications
Answers
-
Hey @SOmalley1124
I'm sure the Community would love to help! However it would be useful if we could see a screen capture of your source sheet (blocking out sensitive data). The structure of your source sheet will determine the structure of the formula.
For example, do you have a Date column that records the tour, or are there two dates? (Start and End). If there are two, but the tour crosses over a year, do you want that tour counted or not? Is each unique tour recorded on its own unique row, or are there duplicate rows?
Thanks,
Genevieve
Need more help? 👀 | Help and Learning Center
こんにちは (Konnichiwa), Hallo, Hola, Bonjour, Olá, Ciao! 👋 | Global Discussions
-
Hi Genevieve!
I have a tour database sheet that has one column showing the date of the tour. Each unique tour is recorded on its own row. Here is a snip of what it looks like:
-
Hi @SOmalley1124,
On a sheet summary you could use the following formulas:
- =COUNTIF([Tour Date]:[Tour Date],>TODAY(-365))
- =COUNTIF([Tour Date]:[Tour Date], >DATE(YEAR(TODAY()), 1, 1))
Hope this helps!
Best,
Zach Hall
Training Delivery Manager / Charter Communications
-
Thank you Zach! I always forget about the amazing sheet summary option!!!
Help Article Resources
Categories
- All Categories
- 14 Welcome to the Community
- Customer Resources
- 64.9K Get Help
- 441 Global Discussions
- 139 Industry Talk
- 471 Announcements
- 4.9K Ideas & Feature Requests
- 129 Brandfolder
- 148 Just for fun
- 68 Community Job Board
- 496 Show & Tell
- 33 Member Spotlight
- 2 SmartStories
- 300 Events
- 36 Webinars
- 7.3K Forum Archives
Check out the Formula Handbook template!