count number of rows with dates that fall between start and finish date which have box unchecked
I have a sheet which is referencing another sheet. We would like to count the number or rows which have a date (on the referencing sheet) that falls between the start & finish date but the checkbox (on the referencing sheet) is unchecked. I have the countifs formula for counting the number of rows between the date. But not sure how to include the next part of the equation.
=COUNTIFS({Referencing Sheet Range 1}, >=[Start Date]@row, {Referencing Sheet Range 1}, <=[Finish Date]@row)
Best Answer
-
Hi @B Young,
You would just need to add another portion to the formula to check the column being unchecked:
=COUNTIFS({Referencing Sheet Range 1}, >=[Start Date]@row, {Referencing Sheet Range 1}, <=[Finish Date]@row, {Referencing Sheet Range 2}, 0)
Where {Referencing Sheet Range 2} is the checkbox column.
If you wanted it for checked, change the final 0 to 1.
Hope this helps; if you've any questions then just ask! 😊
Answers
-
Hi @B Young,
You would just need to add another portion to the formula to check the column being unchecked:
=COUNTIFS({Referencing Sheet Range 1}, >=[Start Date]@row, {Referencing Sheet Range 1}, <=[Finish Date]@row, {Referencing Sheet Range 2}, 0)
Where {Referencing Sheet Range 2} is the checkbox column.
If you wanted it for checked, change the final 0 to 1.
Hope this helps; if you've any questions then just ask! 😊
-
Thank you this does help - appreciate it!
Help Article Resources
Categories
- All Categories
- 14 Welcome to the Community
- Smartsheet Customer Resources
- 62.5K Get Help
- 367 Global Discussions
- 202 Industry Talk
- 432 Announcements
- 4.4K Ideas & Feature Requests
- 137 Brandfolder
- 129 Just for fun
- 128 Community Job Board
- 447 Show & Tell
- 29 Member Spotlight
- 1 SmartStories
- 285 Events
- 36 Webinars
- 7.3K Forum Archives
Check out the Formula Handbook template!