# 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)

Tags:

• ✭✭✭✭✭✭

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! 😊

• ✭✭✭✭✭✭

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

Want to practice working with formulas directly in Smartsheet?

Check out the Formula Handbook template!