Count if dates are within the next 7 days
Hello,
I'm trying to use the COUNTIFS function to search a reference column full of dates to count how many are within the next 7 days. For the criteria portion of the formula, I've tried using, "<TODAY(7)", "<TODAY() + 7", but they are not providing me with the correct (if any) result. I would like to avoid having to create a workaround by adding a new column to identify if the aforementioned criteria is true, then counting it that way.
What am I missing? HELP!
Comments
-
Hello,
If you're only using one criteria, you'll want to use COUNTIF instead of COUNTIFS.
For example:
=COUNTIF(Start:Start, <=TODAY(7))
The above function will count all of the dates if the start date is less than or equal to the current date + 7 days. You'll want to change the Start:Start to the range of your own column in your sheet.
If you're still experiencing issues, let me know what formula you're using and the errors or behavior you're expecting.
-
Perfect, thank you Shaine!
-
Hi Shaine,
I am using this
=COUNTIF([Production Move Date]:[Production Move Date], <=TODAY(7))
to get the count for how many will be in production in next 7 days but getting count of 0 though I have 3 that has production date in tomorrow and day after tomorrow.Appreciate your help!
Thanks,
Rafsun
-
Hi Rafsun,
Did you get it working because what I can see it should?
Happy Holidays & Happy New Year!
Best,
Andrée Starå
Workflow Consultant @ Get Done Consulting
SMARTSHEET EXPERT CONSULTANT & PARTNER
Andrée Starå | Workflow Consultant / CEO @ WORK BOLD
W: www.workbold.com | E:andree@workbold.com | P: +46 (0) - 72 - 510 99 35
Feel free to contact me for help with Smartsheet, integrations, general workflow advice, or anything else.
Help Article Resources
Categories
- All Categories
- 14 Welcome to the Community
- Smartsheet Customer Resources
- 63K Get Help
- 380 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
- 305 Events
- 34 Webinars
- 7.3K Forum Archives
Check out the Formula Handbook template!