Countifs for if either column is checked

I have two checkbox columns and need to get a count of how many rows have either or both of the check boxes checked. I am struggling on how the formula to accomplish this is the sheet summary.
Below is my current equation for getting the count of one of the columns, I am able to do this for both to get a count for each column, but if I add the numbers it ends up being higher due to some rows having both boxes checked.
=COUNTIFS([Date Submitted]:[ Date Submitted], AND(@cell >= [Previous Tuesday]#, @cell <= [Current Tuesday]#), [Check 1]:[Check 1], 1)
Answers
-
Hello @Nick0000
Try this:
=(COUNTIFS([Date Submitted]:[ Date Submitted], AND(@cell >= [Previous Tuesday]#, @cell <= [Current Tuesday]#), [Check 1]:[Check 1], 1) + COUNTIFS([Date Submitted]:[ Date Submitted], AND(@cell >= [Previous Tuesday]#, @cell <= [Current Tuesday]#), [Check 2]:[Check 2], 1)) - COUNTIFS([Date Submitted]:[ Date Submitted], AND(@cell >= [Previous Tuesday]#, @cell <= [Current Tuesday]#), [Check 1]:[Check 1], 1,[Check 2]:[Check 2], 1)
Melissa Yamada
melissa@insightfulsheets.com
Data made simple, spreadsheets reimagined
Help Article Resources
Categories
- All Categories
- 14 Welcome to the Community
- Customer Resources
- 67.2K Get Help
- 451 Global Discussions
- 155 Industry Talk
- 505 Announcements
- 5.4K Ideas & Feature Requests
- 85 Brandfolder
- 156 Just for fun
- 80 Community Job Board
- 514 Show & Tell
- 34 Member Spotlight
- 2 SmartStories
- 308 Events
- 36 Webinars
- 7.3K Forum Archives
Check out the Formula Handbook template!