SUMIF Dropdown in Google Sheets: How to Use

How-to basics · Updated November 23, 2026

To use SUMIF with a dropdown in Google Sheets, reference the dropdown cell as the criterion in the SUMIF formula. For example, if your dropdown is in cell E1 and your amounts are in B2:B100 with categories in A2:A100, the formula =SUMIF(A2:A100, E1, B2:B100) sums all amounts whose category matches the selected dropdown value.

Why Combine SUMIF with a Dropdown?

Dropdowns (data validation) let you pick a value from a preset list instead of typing it. When you pair that with SUMIF, the formula automatically updates based on your selection. This turns a static spreadsheet into an interactive summary: choose “Q1” from a dropdown and the total changes instantly. It’s a common pattern for dashboards, expense trackers, and budget sheets because it reduces typos and makes the sheet usable by people who don’t know the underlying data.

How SUMIF Works in Google Sheets

SUMIF has three arguments: range, criterion, and sum_range. The range is the cells you want to check against the criterion. The criterion is what you’re looking for—it can be a number, text, or a cell reference. The sum_range is the cells to add if the corresponding cell in range matches. If you omit sum_range, it sums the range itself.

For example, with categories in A2:A20 and amounts in B2:B20, =SUMIF(A2:A20, "Food", B2:B20) adds all amounts where column A says “Food”. When you replace “Food” with a cell reference like E1, it uses whatever value is in E1—that’s the dropdown cell.

Step-by-Step: Create a Dropdown and Use SUMIF

  1. Select the cell where you want the dropdown (e.g., E1).
  2. Go to Data > Data validation.
  3. Under “Criteria,” choose List from a range and select the list of categories (e.g., A2:A20), or choose List of items and type the values separated by commas.
  4. Click Save.
  5. In the cell where you want the total (e.g., F1), enter =SUMIF(A2:A20, E1, B2:B20).
  6. Press Enter. Now change the dropdown selection and the total updates.

Using Dropdowns with Multiple Criteria: SUMIFS

If you need to sum based on more than one condition, use SUMIFS. The syntax is =SUMIFS(sum_range, criteria_range1, criterion1, [criteria_range2, criterion2, ...]). For example, with dates in A2:A100, categories in B2:B100, and amounts in C2:C100, you could have two dropdowns: one for month (E1) and one for category (E2). The formula =SUMIFS(C2:C100, A2:A100, E1, B2:B100, E2) sums amounts where the date matches the selected month and the category matches the selected category.

Note that SUMIFS requires the sum_range to be the first argument, unlike SUMIF. Also, in Google Sheets, you can use wildcards with text criteria: an asterisk (*) matches any sequence of characters, and a question mark (?) matches any single character. For a dropdown that contains “*” as a literal, you’d need to escape it with a tilde (~).

Common Problems and Solutions

  • Dropdown values don’t match data exactly: SUMIF is case-insensitive but not space-tolerant. If your dropdown has “Food ” with a trailing space, it won’t match “Food”. Check for extra spaces or use =TRIM() in a helper column.
  • Numbers stored as text: If your dropdown contains numbers but the data is text (or vice versa), SUMIF may return 0. Use =VALUE() or format the cells consistently.
  • Dropdown list from a range includes blanks: This can cause the dropdown to show empty options. Use a named range or filter the source list with =FILTER() to exclude blanks.
  • SUMIF returns 0 when it should return a value: Check that the criteria range and sum range are aligned (same number of rows). Also verify that the criterion cell isn’t empty—if it is, SUMIF treats it as matching blank cells, which may sum nothing.

Dropdown in a Formula vs. Data Validation

Some users ask if they can put a dropdown directly inside a SUMIF formula. That’s not possible—dropdowns are a data validation feature, not a formula. You create the dropdown in a cell, then reference that cell in the formula. Alternatively, you can use a helper cell with a formula that returns a list (e.g., =UNIQUE(A2:A100)) and then use that range in data validation, but the dropdown itself remains a separate feature.

Alternatives: Pivot Tables and QUERY

If you need more complex summaries, consider a pivot table or the QUERY function. A pivot table lets you group by category and sum amounts, and you can filter using a slicer (which acts like a visual dropdown). QUERY is more flexible: =QUERY(A2:B100, "select A, sum(B) where A = '"&E1&"' group by A label sum(B) ''") returns a table of sums for the selected category. However, for a single total, SUMIF is simpler and faster.

Frequently Asked Questions

Can I use a dropdown to sum across multiple sheets?

Yes, but you need to reference each sheet in the range. For example, =SUMIF(Sheet1!A2:A20, E1, Sheet1!B2:B20) + SUMIF(Sheet2!A2:A20, E1, Sheet2!B2:B20). Or use a helper column that combines data from all sheets with =VSTACK() (if you have the latest Sheets) and then apply SUMIF to that combined range.

Why does my SUMIF not update when I change the dropdown?

Google Sheets recalculates automatically when a cell changes, so it should update instantly. If it doesn’t, check that the dropdown cell is actually changing (maybe you have two cells with the same name). Also, ensure you haven’t accidentally set calculation to “on change and every minute” in File > Settings—though that’s rare.

Can I make the dropdown show “All” to sum everything?

Yes. Add “All” as an option in your dropdown list. Then use a formula like =IF(E1="All", SUM(B2:B20), SUMIF(A2:A20, E1, B2:B20)). This checks if the dropdown says “All” and sums the entire column, otherwise it uses the specific criterion.

Is SUMIF case-sensitive?

No, SUMIF in Google Sheets is not case-sensitive by default. “food” and “Food” are treated the same. If you need case-sensitive matching, you’d have to use a more complex formula with ARRAYFORMULA and EXACT, but that’s rarely necessary.

Can I use a dropdown with a date range?

Yes. For example, if your dropdown contains a start date, you can use =SUMIF(A2:A100, ">="&E1, B2:B100) to sum all amounts on or after that date. For a date range, use SUMIFS with two criteria: =SUMIFS(B2:B100, A2:A100, ">="&E1, A2:A100, "<="&E2) where E1 and E2 are dropdown cells for start and end dates.

What if my dropdown is in a cell that is part of the sum range?

That would cause a circular reference because the formula depends on the dropdown cell, and the dropdown cell is also in the sum range. Avoid placing the dropdown inside the range you’re summing. Keep it in a separate cell, typically at the top or to the side of your data.

Related

Try it: the Date Difference Calculator: days, months, years and weekdays between two dates, with the DATEDIF formulas.

More in How-to basics

Sources: Function behaviour and menu paths: Microsoft Support documentation for Excel. Method & sources

Spotted an error in this guide? Let us know.