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())
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
Want to practice working with formulas directly in Smartsheet?
Check out the Formula Handbook template!
Check out the Formula Handbook template!