How to Sum Values If Checkbox Is Checked in Google Sheets

Table of Contents

Table of Contents

When managing approvals, budgets, or expenses in Google Sheets, itโ€™s common to track items using checkboxes. For example, you might have a list of reimbursements where a checkbox in the “Approved” column indicates whether the expense is approved. In such cases, you may want to calculate the total amount of approved entries only.

In this article, weโ€™ll explore four effective methods to sum values based on whether a checkbox is checked (TRUE) or unchecked (FALSE). Using a real-world example of employee expense reports, youโ€™ll learn how to apply the SUMIFS function, the FILTER and SUM functions, the ARRAYFORMULA and IF functions, and the QUERY function to calculate totals based on checkbox status.

Key Takeaways

Steps to sum amounts only when checkboxes are checked using SUMIFS in Google Sheets:

โžค Select a blank cell for the result (e.g., C10).
โžค In cell C10, enter this formula:
=SUMIFS(C2:C8, D2:D8, TRUE)
โžค Press Enter to calculate the total of only approved entries.
โžค The formula dynamically sums values in the โ€œAmountโ€ column where the โ€œApprovedโ€ checkbox is TRUE.

overview image


1

Use SUMIFS to Sum Amounts If Checkbox Is Checked in Google Sheets

The SUMIFS function is one of the easiest ways to calculate totals based on specific conditions. In this case, weโ€™ll use it to sum only those rows where the checkbox in the โ€œApprovedโ€ column is checked (TRUE). This is a common need in budgeting sheets, reimbursement logs, or approval workflows.

We will be using this dataset to demonstrate the methods:

Use SUMIFS to Sum Amounts If Checkbox Is Checked in Google Sheets

After applying this method, youโ€™ll get the total amount of all approved expenses, without needing to filter or hide data manually.

Steps:

โžค Select the cell where you want the total (e.g., C10).
โžค Enter the following formula:

=SUMIFS(C2:C8, D2:D8, TRUE)

Use SUMIFS to Sum Amounts If Checkbox Is Checked in Google Sheets

Explanation
โžง C2:C8 is the range containing the Amount values.
โžง D2:D8 is the Approved column with checkboxes (TRUE or FALSE).
โžง TRUE tells the formula to only include rows where the checkbox is checked.

โžค Press Enter.

Use SUMIFS to Sum Amounts If Checkbox Is Checked in Google Sheets

The total will dynamically change whenever you check or uncheck the boxes in Column D.

The result will display the sum of amounts for all approved entries, a clean and accurate total with no need for filtering or extra columns.


2

Utilize FILTER & SUM to Sum Amounts When Checkbox Is Checked in Google Sheets

The FILTER function can extract only the rows that meet specific criteria, like having the โ€œApprovedโ€ checkbox checked. By combining FILTER with SUM, you can dynamically sum just the approved amounts.

After applying this method, youโ€™ll get the total of all amounts where the approval checkbox is TRUE, giving you a flexible way to sum filtered data without extra columns.

Steps:

โžค Click on the cell where you want to display the total sum of approved amounts (for example, C10).
โžค Type the following formula exactly:

=SUM(FILTER(C2:C8, D2:D8=TRUE))

Utilize FILTER & SUM to Sum Amounts When Checkbox Is Checked in Google Sheets

Explanation
โžง FILTER(C2:C8, D2:D8=TRUE) selects amounts from the range C2:C8 but only includes those rows where the Approved column (D2:D8) is TRUE.
โžง SUM(...) adds all the filtered amounts to return the total approved sum.

โžค Press Enter to apply the formula.

Utilize FILTER & SUM to Sum Amounts When Checkbox Is Checked in Google Sheets

The formula will sum only the values in the Amount column (C2:C8) where the corresponding Approved checkbox in column D (D2:D8) is checked (TRUE).

โžค If you add more rows or change the checkboxes, the total will update automatically.

Utilize FILTER & SUM to Sum Amounts When Checkbox Is Checked in Google Sheets

This method is perfect for summing data based on checkboxes without needing helper columns or complicated formulas. Itโ€™s clean, dynamic, and easy to maintain.


3

Combine ARRAYFORMULA with IF to Sum Amounts When Checkbox Is Checked

This method uses ARRAYFORMULA combined with IF to create a dynamic, row-by-row check of the Approved column. It multiplies the amounts by TRUE/FALSE values, treating TRUE as 1 and FALSE as 0, then sums the results. This approach automatically adjusts as you add or update data.

After applying this formula, youโ€™ll get the total sum of all approved amounts, updated instantly when checkboxes change.

Steps:

โžค Select the cell where you want the total approved amount to appear (e.g., C10).
โžค Enter this formula:

=SUM(ARRAYFORMULA(IF(D2:D8=TRUE, C2:C8, 0)))

Combine ARRAYFORMULA with IF to Sum Amounts When Checkbox Is Checked in Google Sheets

Explanation
โžง IF(D2:D8=TRUE, C2:C8, 0) creates an array where each amount is included only if its corresponding Approved checkbox is TRUE; otherwise, itโ€™s zero.
โžง ARRAYFORMULA(...) applies this check across the whole range without needing to copy the formula down each row.
โžง SUM(...) adds all the filtered amounts, returning the total approved sum.

โžค Press Enter to apply the formula.

Combine ARRAYFORMULA with IF to Sum Amounts When Checkbox Is Checked in Google Sheets

โžค This formula automatically updates as you check or uncheck boxes or add more data within the specified range.

Combine ARRAYFORMULA with IF to Sum Amounts When Checkbox Is Checked in Google Sheets

This method provides a clean, formula-driven way to dynamically calculate totals based on checkboxes, without helper columns or extra steps. Itโ€™s especially useful for datasets where rows are frequently added or updated.


4

Sum Values If Checkbox Is Checked Using the QUERY Function

The QUERY function lets you apply powerful SQL-like commands to your data, making it easy to filter and sum amounts based on checkbox status. This method sums all amounts where the Approved column is TRUE by querying your dataset dynamically.

After applying this method, you will see a clean summary showing the total sum of approved amounts without needing extra columns or complicated formulas.

Steps:

โžค Select the cell where you want the result to appear (e.g., F1).
โžค Enter the following formula:

=QUERY(A1:D8, “SELECT SUM(C) WHERE D = TRUE LABEL SUM(C) ‘Total Approved Amount'”, 1)

Sum Values If Checkbox Is Checked Using the QUERY Function in Google Sheets

Explanation
โžง QUERY(A1:D8, ...) processes the data in range A1:D8 (including headers).
โžง SELECT SUM(C) WHERE D = TRUE tells QUERY to sum values in column C where the Approved column D is TRUE.
โžง LABEL SUM(C) Total Approved Amount renames the output column header for clarity.
โžง The final 1 indicates that the first row contains headers.

โžค Press Enter to run the query.

Sum Values If Checkbox Is Checked Using the QUERY Function in Google Sheets

The formula scans the range A1:D8, selecting rows where the Approved column (D) is TRUE, and sums the corresponding Amount values from column C.. The result will be displayed as a single cell showing the total approved amount with a clear header โ€œTotal Approved Amount.โ€

โžค The total amount will dynamically change as you click on the checkboxes.

Sum Values If Checkbox Is Checked Using the QUERY Function in Google Sheets


Practice Resources

Get our practice workbook or necessary files that we have worked with to prepare this article.

Sum Values If Checkbox Is Checked in Google Sheets [Make a Copy]


Frequently Asked Questions

How do I sum values based on a checked checkbox in Google Sheets?

Use =SUMIF(range_checkbox, TRUE, range_values) to sum amounts where the checkbox column is TRUE. It sums only the rows with checked boxes efficiently.

Why is my SUMIF not working with checkboxes?

Check that checkboxes return TRUE/FALSE, not text. Also, ensure ranges are the same size and formatted properly. Using SUMPRODUCT with (checkbox_range) can help as an alternative.

Can I sum with multiple conditions including a checkbox in Google Sheets?

Yes! Use SUMIFS with criteria like SUMIFS(amount_range, checkbox_range, TRUE, other_range, “criteria”) to sum only checked rows that meet extra conditions.

How to sum values dynamically with checkboxes using ARRAYFORMULA?

Combine ARRAYFORMULA with IF like =ARRAYFORMULA(SUM(IF(checkbox_range, amount_range, 0))) to sum values for checked boxes without dragging formulas down.


Wrapping Up

Summing amounts based on checked checkboxes in Google Sheets is easy with the right formula. Whether you prefer the straightforward SUMIFS function, the flexible FILTER and SUM method, the dynamic ARRAYFORMULA and IF approach, or the powerful QUERY function, each method helps you efficiently calculate totals only for approved entries. Select the one that best fits your workflow, and maintain clean and accurate data analysis with these straightforward, effective techniques.

Facebook
X
LinkedIn
WhatsApp
Picture of Mohammed Shafin Arshad

Mohammed Shafin Arshad

Mohammed Shafin Arshad is a Computer Science student and cybersecurity enthusiast in Malaysia with 6 years of Excel and Google Sheets experience. He specializes in VBA, macro automation, and SaaS-focused workflow guides. His background includes university data science projects, and he enjoys using macros to solve complex spreadsheet problems.
We will be happy to hear your thoughts

      Leave a reply


      Excel Insider
      Logo