Counting dates 180 days from today's date
I would like to count the number of absences L6:K6 between today's date and the last 180 dates then multiply it by 2 plus add the number of late arrivals/early exits L6:AC6 between today's date and the last 180 dates.
I tried the formula below in excel and it works correctly but can't get it to work in smartsheets:
=COUNTIFS(F6:K6,">="&TODAY()-180, F6:K6,"<="&TODAY()) * 2 + COUNTIFS(L6:AC6,">="&TODAY()-180, L6:AC6,"<="&TODAY())
Answers
-
The syntax between Excel and Smartsheet is a bit different.
=COUNTIFS(F6:K6, >= TODAY(-180), F6:K6, <= TODAY()) * 2 + COUNTIFS(L6:AC6, >= TODAY(-180), L6:AC6, <= TODAY())
Come see me in Seattle at ENGAGE 2024! I will be at the 10xViz partner booth throughout as well as the "Lets Talk About Community" Meet & Eat table on Tuesday from 11:45am - 12:45pm!
Help Article Resources
Categories
- All Categories
- 14 Welcome to the Community
- Smartsheet Customer Resources
- 63K Get Help
- 379 Global Discussions
- 212 Industry Talk
- 442 Announcements
- 4.6K Ideas & Feature Requests
- 140 Brandfolder
- 129 Just for fun
- 130 Community Job Board
- 449 Show & Tell
- 30 Member Spotlight
- 1 SmartStories
- 304 Events
- 34 Webinars
- 7.3K Forum Archives
Check out the Formula Handbook template!