CountIfs Dates with ISBLANK Continuation
I am having trouble with my formula. I'm a newbie and my logic be flawed and terrible. Learning in progress. I thought I had received the answer but as it turns out I was still trying to acquire more information. Essentially what I want to do is run the calculation below:
=COUNTIFS({Action Plan Week Requested Date}, <=[1]1, {Action Plan Week Finish}, >=[1]1)
The only issues is that I have to create two new columns that give me the Numberweek Dates and I have to drag the formulas down.
Essentially I was condensing everything into one formula on a seperate sheet so that way I do not produce extra columns on the smartsheet. I used the formula below but it did not work as I thought it would.
=COUNTIFS(Action Plan Request Date}, IFERROR(WEEKNUMBER(@cell), 0) <= [1]1, {Action Plan Actual Finish}, IFERROR(WEEKNUMBER(@cell), 0) >= [1]1) + COUNTIFS({Action Plan Request Date}, IFERROR(WEEKNUMBER(@cell), 0) <= [1]1, {Action Plan Actual Finish}, @cell = "", {Action Plan Finish Date}, IFERROR(WEEKNUMBER(@cell), 0) >= [1]1)
I'm basically doing a rolling count of an item from when it opens until it closes (ie. has a Plan Finish or Actual Finish Date). For Instance if the request date is week 3 then it count for week 4, week 5, week 6, etc. until the Plan finish or actual finish.
Answers
-
What do you want the formula to return if there is an error? The way this is written the value to return if it comes back with an error is another logical test and not a value.
-
ahh. I see. I'm a pretty green with smarthsheet. Essentially what I'm trying to do is the following:
I'm basically doing a rolling count of an item from when it opens until it closes (ie. has a Plan Finish or Actual Finish Date). For Instance if the request date is week 1 then it counts for week 2, week 3, week 4, etc. until the Plan finish Date or actual finish date which can be week 12. The tasks or item would count from week 1 through week 12 based on start and finish.
For instance: I look for the start date of a task/item, then look at plan finish date or actual finish date (if the Actual finish is blank then I use the plan finish Date. Thus: COUNTIFS({Action Plan Week Requested Date}, <=[1]1, {Action Plan Week Finish}, >=[1]1), essentially showing the count of task/items for week 1.
Based on this formula: COUNTIFS({Action Plan Week Requested Date}, <=[1]1, {Action Plan Week Finish}, >=[1]1) it seems to work but I have to create extra columns to create NumWeek to get the count.
I was trying to eliminate the creating of extra columns on the Main Smartsheet and do the calculation on another sheet and make a widget out of it.
I hope this makes sense.
Help Article Resources
Categories
- All Categories
- 14 Welcome to the Community
- Customer Resources
- 64.9K Get Help
- 440 Global Discussions
- 138 Industry Talk
- 471 Announcements
- 4.9K Ideas & Feature Requests
- 129 Brandfolder
- 148 Just for fun
- 68 Community Job Board
- 486 Show & Tell
- 33 Member Spotlight
- 2 SmartStories
- 300 Events
- 36 Webinars
- 7.3K Forum Archives
Check out the Formula Handbook template!