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
- 64K Get Help
- 410 Global Discussions
- 220 Industry Talk
- 459 Announcements
- 4.8K Ideas & Feature Requests
- 143 Brandfolder
- 137 Just for fun
- 57 Community Job Board
- 459 Show & Tell
- 31 Member Spotlight
- 1 SmartStories
- 298 Events
- 37 Webinars
- 7.3K Forum Archives
Check out the Formula Handbook template!