Sum of Values Between Two Dates
Hi All!
I am trying to write a formula that add up the total "crew size" required between two dates. I've created a metric sheet to hold the formula. See screenshot of parent sheet below.
Formula:
=SUMIFS({Shop Overall Schedule Range 1}, {Shop Overall Schedule Range 2}, >=DATE(2023, 9, 1), {Shop Overall Schedule Range 3}, <=DATE(2023, 9, 15))
Shop Overall Range 1: Crew Size
Shop Overall Range 2: Start
Shop Overall Range 3: Finish
The formula seems to be dropping out totals that are not associated with a start or finish date. For example, week of September 17th, it should show a total of (3), but it is showing (0). I've tried AVGCOLLECT and COUNTIFS, but haven't gotten anything to work.
Answers
-
Which columns are each of your ranges referencing?
-
It looks like the issue is with your date range, as in your shown formula, the SUMIFS will check that BOTH the start date is 9/1/23 or after AND that the finish date is less than or equal to 9/15/23.
Your screenshot doesn't show any project that matches this criteria.
Can you explain a little more about your context - for instance - is your time frame you're wanting to look at always (2) weeks or does it vary?; Are you trying to project capacity in terms of how many workers are needed/available?
Hope I can help with a bit more information.
-Jon
Help Article Resources
Categories
- All Categories
- 14 Welcome to the Community
- Smartsheet Customer Resources
- 63.6K Get Help
- 404 Global Discussions
- 215 Industry Talk
- 456 Announcements
- 4.7K Ideas & Feature Requests
- 141 Brandfolder
- 136 Just for fun
- 57 Community Job Board
- 459 Show & Tell
- 31 Member Spotlight
- 1 SmartStories
- 296 Events
- 36 Webinars
- 7.3K Forum Archives
Check out the Formula Handbook template!