Sum up values if it falls within a period
Hi all
Im trying to have a formula to sum up the allocation % if it falls within a specific date range with the sheet summary function. However, I returned an error. Im not exactly sure where i went wrong.
Formula used:
=SUM(COLLECT([Allocation % - SS]:[Allocation % - SS], [Start Date]:[Start Date], >=(2023, 1, 1), [End Date]:[End Date], <=DATE(2023, 3, 31)))
Thank you for advising!
Cheers
HuiXian
Answers
-
You forgot to include the DATE function for the first date criteria.
-
Hi Paul, sharp eyes! i corrected the formula but i got an invalid value :(
is it the way the formula is constructed?
Corrected formula
SUM(COLLECT([Allocation % - SS]:[Allocation % - SS], [Start Date]:[Start Date], >=DATE(2023, 1, 1), [End Date]:[End Date], <=DATE(2023, 3, 31)))
-
Do you have that error in any cell within any of the ranges?
Are the Start Date and End Date columns both set as date type columns?
How are each of the date type columns being populated?
-
Hi Paul, im actually trying to do a sheet summary.
Start and End date column is setup as date type.
-
What formula exactly are you using to populate the % column?
-
im trying to sum up the allocation % that is between the period of time, say between 1 Quarter
-
I understand what you are trying to accomplish here. What I am asking is regarding the data itself. It looks like you have either a formula with a cross sheet reference or a cell link coming into that column.
-
ahhh sorry i misunderstood.. So the % column is populated within this column formula.
-
Ok. And how is it being calculated on the other sheet?
-
The other sheet is actually a consolidated sheet (ie it pulls the data from another sheet and summarizes the information, making it a central repository - Sheet 3).
i tried to provide an overview of how the sheets are linked to see if its causing the error observed
-------------
Intent is to create a visual tool to automate resource estimation based on a set of criteria against a timeframe:
#1. A Questionnaire is setup for intake to take in the requirements
#2. Sheet 1: Questionnaire is being scored against an "answer" sheet which will provide the resource level base on the response selection
#3. Sheet 2: Responses from the Questionnaire is extracted to another sheet where it is populated against a timeframe and the resource level is being averaged
#4. Sheet 3: Central repository of all the responses with the averaged resource and this will be come the source of Sheet 4
#5. Sheet 4: Looks up sheet 3 base on the requirements to show the average resource requirements. There is a section for user to populate the project timeline.
Data flow is as above and i actually got into the above error at #5 - Sheet 4
-
That still doesn't tell me exactly how the % is being calculated at the source.
Help Article Resources
Categories
- All Categories
- 14 Welcome to the Community
- Customer Resources
- 65.1K Get Help
- 444 Global Discussions
- 142 Industry Talk
- 472 Announcements
- 5K Ideas & Feature Requests
- 83 Brandfolder
- 150 Just for fun
- 71 Community Job Board
- 489 Show & Tell
- 33 Member Spotlight
- 2 SmartStories
- 301 Events
- 36 Webinars
- 7.3K Forum Archives
Check out the Formula Handbook template!