How to Count Checkboxes in Google Sheets [2 Methods]

How to Count Checkboxes in Google Sheets 26
Key Takeaways: How to Count Checkboxes in Google Sheets

To Count Checkboxes in Google Sheets

  1. Select cells.
  2. Go to Data > Data Validation.
  3. Choose the tickbox from the criteria.
  4. Check “use custom cell values“.
  5. Input values for checked and unchecked states.
  6. Click Save.

OR

  1. Select a cell to count checkboxes.
  2. Use the COUNTIF function.
  3. Set the range with checkboxes as the first argument.
  4. For checked checkboxes, use “True” as the second argument.

Hi everyone. In this article, we will learn how to count checkboxes in Google Sheets. Checkboxes, as you know are very significant in today’s date. We use checkboxes to validate input from users in the form of checked and unchecked which logically means yes or no. We use them to take Boolean inputs such as yes or no, true or false, and so on.

We often need to count them like normal data. We have COUNT, COUNTA like functions to count normal data in Google Sheets, but checkboxes are not normal. They are logical and they may have checked or unchecked checkboxes, so counting them using a normal approach will probably not work ideally.

So, how to count checkboxes in Google Sheets? Well, it’s very easy and straightforward. Today, we are going to learn how to count checkboxes in Google Sheets using the count function and some variants of the count function. We will count checked and unchecked boxes separately so that we have a clear demonstration of our data.

Use case: Count Checkboxes in Google Sheets

Just like normal data, we also need to count the checkboxes in Google Sheets. When we have an extensive data set with checkboxes that take yes or no input from the users in an extensive list, it can be a checklist, a shopping list, or a to-do list. So, what we need, we need to see the user input for each item of the checkbox, so here we can simply count them. But, how? Simply, we will use COUNTIF to count all the checkboxes that are checked, and then all the unchecked checkboxes.

We can also build custom values for the checkboxes instead of True and False. We can set values like Yes and No, Accept or Reject, and so many combinations of it.

We will get a number such as 23 for the unchecked checkboxes, and another number such as 17 for the checked checkboxes, so there is how to count checkboxes in Google Sheets and its purpose. Therefore, we need to learn how to count checkboxes in Google Sheets.

How to Count Checkboxes in Google Sheets?

From this section, we will learn how to make checkboxes, then how to count checkboxes in Google Sheets are both checked and unchecked separately. We will also learn how to add custom logic to checkboxes in Google Sheets and then count customized checkboxes. So, without further delay, let’s get started.

How to Count Checkboxes in Google Sheets – Insert Tickbox

Let’s see how to create checkboxes in Google Sheets. It’s pretty easy to make checkboxes and use them as checked or unchecked checkboxes.

Step 1

Open a Google Sheets file, or launch a new Sheet with a blank template

How to Count Checkboxes in Google Sheets 1

Step 2

Select a cell, then go to Insert > Tickbox

How to Count Checkboxes in Google Sheets 2

Step 3

A tickbox is added to your selected cell, and now you check or uncheck it.

How to Count Checkboxes in Google Sheets 3

How to Count Checkboxes in Google Sheets 4

Here, we have another method to add a checkbox with custom validation. Let’s see how to do that.

How to Count Checkboxes in Google Sheets – Data Validation

In this section, we will learn how to count checkboxes in Google Sheets. We will see a method to add a checkbox with custom validation. Let’s go to the steps and see how it works.

Step 1

Select a cell or multiple cells in which you want to add checkboxes.

How to Count Checkboxes in Google Sheets 5

Step 2

Go to Data > Data Validation

How to Count Checkboxes in Google Sheets 6

Step 3

A new pop-up will appear, now in the criteria section, select the tickbox from the list

How to Count Checkboxes in Google Sheets 7

Step 4

Below you can see a checkbox named “use custom cell values”, check it to use custom values for True and False.

How to Count Checkboxes in Google Sheets 8

Step 5

You will get two input boxes, now here you can add two values one for the ticked, and the second for the unticked checkbox.

How to Count Checkboxes in Google Sheets 9

Step 6

Provide values, and click on the Save button

How to Count Checkboxes in Google Sheets 10

Step 7

Your checkboxes are added to the select cell(s).

How to Count Checkboxes in Google Sheets 11

Note: You may think, why do we need to use custom values when they are not visible at all? Yes, you’re right, custom values do not appear, but it is used logically when you apply a formula or function to them. We will see it in the below sections.

How to Count Checkboxes in Google Sheets – Using COUNTIF

Finally, in this section, we will learn how to count checkboxes in Google Sheets. We have already learned two methods to insert checkboxes in Google Sheets, now we will how to count them separately. Let’s see the below steps.

Step 1

Select a cell where you want to get the count of the checkbox.

How to Count Checkboxes in Google Sheets 12

Step 2

Add the COUNTIF Function

How to Count Checkboxes in Google Sheets 13

Step 3

Pass the data range having all the checkboxes as the first argument

How to Count Checkboxes in Google Sheets 14

Step 4

Pass the argument value you want to count, such as True or False (True if you want to count checked checkboxes, and False if you want to count the unchecked checkboxes)

How to Count Checkboxes in Google Sheets 15

Step 5

Hit Enter, and you’re done. Now, try checking and unchecking different checkboxes, and you will see the resultant value will be changed.

How to Count Checkboxes in Google Sheets 16

This is how to count checkboxes in Google Sheets with default cell values.

How to Count Checkboxes in Google Sheets – Using COUNTIF for Custom Values

So, when we add use custom fields then we have to change the function as well. The input fields do not appear on the sheets, but they are used in the background for logic building. Also, note that we cannot use more than two custom values because understandably a checkbox can have only two states, one is checked, and the other is unchecked, so we have only two corresponding values for True and False.

Step 1

Add COUNTIF function

How to Count Checkboxes in Google Sheets 17

Step 2

Pass the range as the first argument

How to Count Checkboxes in Google Sheets 18

Step 3

Pass the name of the custom values in double quotes, for the value you want to count such as “Yes”.

How to Count Checkboxes in Google Sheets 19

How to Count Checkboxes in Google Sheets 20

Step 4

Add another COUNTIF function to count the other inputs such as “No”

How to Count Checkboxes in Google Sheets 21

This is how you have to change the String value in the second argument to count the custom values for the checkboxes.

How to Count Checkboxes in Google Sheets – Conditionals

In this section, we will learn how to count checkboxes in Google Sheets using conditional. Yes, using COUNTIF is also a condition, but this is a function-based condition, what if we want to count checkboxes based on custom conditions as per our data requirements? Yes, it’s possible, so in this section, we will learn how to count checkboxes in Google Sheets based on outer conditions and we will use COUNTIFS instead of COUNTIF, you will see how this method helps us. Let’s see the steps.

Step 1

Sample data

How to Count Checkboxes in Google Sheets 22

Step 2

Write the formula COUNTIFS (plural of COUNTIF)

How to Count Checkboxes in Google Sheets 23

Step 3

Now pass two arguments just like you did in the previous section

How to Count Checkboxes in Google Sheets 24

Step 4

In the second iteration, you need to pass another set of arguments for the second IF. So here, we will pass the sections that have tasks inside, and then the first address of the resultant cell.

How to Count Checkboxes in Google Sheets 25

Step 5

So here, you can see we have got the distributed values for the count checkboxes because we used TRUE.

How to Count Checkboxes in Google Sheets 26

We can similarly use FALSE instead of TRUE to count them based on unchecked checkboxes.

So, this is how to count checkboxes in Google Sheets using different methods and using different scenarios. I hope you find the above article helpful.

Get a Free Template used in this Article

Useful Notes

  • The custom values cannot be exceeded by two, because the checkbox has only two possible states
  • The cell values must be used inside String, double or single quotes if they are custom, although default True and False values can also be used without double or single quotes.
  • You can set a wrong input warning when a user attempts a wrong input, but it’s only possible when a user is using a function, it is not possible directly. You can either show a warning or reject input on the invalid input.

Frequently Asked Questions

How to Count all checkboxes in Google Sheets?

There is no direct method to count all the checkboxes together, but there is an easy workaround to do this. Sometimes, we need to count all the checkboxes together to verify if the required checkboxes are added or not. So, what we can do, we can simply apply a COUNTIF function to count checked checkboxes, and then another COUNTIF function to count unchecked checkboxes, then we will sum both of the resultant cells. This gives us a total count of all the checkboxes in the selected cell range

How to Count checked tickboxes in Google Sheets?

We can count checked tickboxes in Google Sheets by using a COUNTIF function with the first argument as the cell range (having tickboxes), and the second argument as a “True” Boolean value. Note: False value will give you to count for all unchecked checkboxes.

Can we add custom input values to checkboxes in Google Sheets?

Yes, we can add custom input values to checkboxes in Google Sheets using data validation features. We can pass any String value corresponding to the checked state, and another different String value corresponding to the unchecked state. These values must be used as a String inside double or single quotes when you are using them inside a function or custom formula.

What is the Purpose of Adding Checkboxes in Google Sheets?

The purpose of adding checkboxes in Google Sheets is to facilitate data organization and simplify the tracking process. By adding checkboxes in google sheets, users can quickly mark completed tasks, track progress, or create to-do lists. This functionality streamlines workflows and enhances productivity.

What is the difference between Tickbox, and Checkbox?

There is no difference between Tickbox and Checkbox, both are identical, and they are only two names of the same thing.

Conclusion

This was all about how to count checkboxes in Google Sheets. We learned various methods and workaround to count checkboxes, we learned what’s the logic behind them, and how to count unchecked and checked checkboxes separately. I also tried to solve some common problems in the FAQs section, so having that said. I am ending this tutorial here. I hope you find it useful and helpful. I will see you soon with another helpful guide. Keep learning with Office Demy.

Content Protection by DMCA.com

M. Shaiq Ansari

Hi, I am Shaiq, I am a highly skilled technical writer working full-time for Office Demy. I am specialized in Google Workspace and Microsoft Office applications. With a background in Software Engineering, I possess a deep understanding of the intricate functionalities and features of these productivity tools. Connect me on Linkedin https://www.linkedin.com/in/shaiq-ansari/

OfficeDemy.com
Logo
Enable registration in settings - general