SUMIF Multiple Columns in Google Sheets: How-To

How-to basics · Updated November 23, 2026

To sum multiple columns with a single condition in Google Sheets, use SUMIF with an array of column ranges inside the sum_range argument, like =SUMIF(A2:A10, "North", B2:D10), which adds all matching values across columns B, C, and D. This works because Google Sheets accepts a multi-column range as the sum_range, and it returns a single total (not an array).

Why SUMIF Normally Handles Only One Column

In its basic form, SUMIF(range, criterion, [sum_range]) is designed to check a single condition range and sum a single parallel range. For example, =SUMIF(A2:A10, "North", B2:B10) sums only column B where column A equals “North”. If you try to sum columns B and C separately, you’d normally write two SUMIFs and add them: =SUMIF(A2:A10, "North", B2:B10) + SUMIF(A2:A10, "North", C2:C10). That works but gets tedious with many columns.

The key insight is that Google Sheets’ SUMIF accepts a multi-column range for the sum_range argument, even though the help documentation often shows single columns. When you provide B2:D10, it sums every cell in that rectangle that aligns with a row where the criterion matches. This behavior is unique to Google Sheets; Excel’s SUMIF does not allow multi-column sum ranges—it returns a #VALUE! error.

How to Use SUMIF with Multiple Columns (Step-by-Step)

Here’s the exact method, assuming your data has categories in column A (rows 2–10) and values in columns B, C, and D (rows 2–10).

  1. Click an empty cell where you want the total, say F2.
  2. Type =SUMIF(A2:A10, "North", B2:D10) and press Enter.
  3. The result is the sum of all cells in B2:D10 where the corresponding row in A2:A10 equals “North”.

For a numeric criterion, use =SUMIF(A2:A10, 100, B2:D10) or with a comparison like =SUMIF(A2:A10, ">100", B2:D10). For a cell reference, use =SUMIF(A2:A10, F1, B2:D10) where F1 contains the criterion.

Example: If A2:A10 has “North” in rows 2, 5, and 8, and B2:D10 has values 10, 20, 30; 40, 50, 60; 70, 80, 90 respectively, then the formula sums 10+20+30+40+50+60+70+80+90 = 450. In this case, the result is 450.

Using SUMIFS with Multiple Criteria and Multiple Columns

If you need to apply more than one condition, use SUMIFS. The syntax is SUMIFS(sum_range, criteria_range1, criterion1, [criteria_range2, criterion2, ...]). For multiple columns, you still put the multi-column range as the first argument. For example, to sum columns B:D where column A equals “North” and column E equals “2024”, use:

=SUMIFS(B2:D10, A2:A10, "North", E2:E10, 2024)

Note that the criteria ranges must be single columns (or single rows) and must have the same number of rows as the sum_range. This works in both Google Sheets and Excel, but Excel still requires the sum_range to be a single column unless you use a different approach.

Common Problems and How to Fix Them

  • Wrong total or #VALUE! error: In Google Sheets, if you get #VALUE!, check that the sum_range dimensions match the criteria range rows. Also ensure no merged cells in the range.
  • Summing entire rows accidentally: If you use B2:D (open-ended) it may include extra rows. Always specify the exact row range.
  • Text numbers not summing: If your values are stored as text, SUMIF ignores them. Use VALUE() or convert to numbers.
  • Criterion with wildcards: Use asterisk (*) for partial matches: =SUMIF(A2:A10, "Nor*", B2:D10) sums all rows where column A starts with “Nor”.
  • Case sensitivity: SUMIF is not case-sensitive. For case-sensitive matches, use SUMPRODUCT with EXACT.

Alternatives: SUMPRODUCT and QUERY

For more flexibility, SUMPRODUCT can sum multiple columns with multiple conditions. For example, to sum columns B:D where column A is “North” and column E is “2024”, use:

=SUMPRODUCT((A2:A10="North")*(E2:E10=2024)*B2:D10)

This works because the multiplication converts TRUE/FALSE to 1/0, and the range B2:D10 is multiplied element-wise. Note that this requires the ranges to be the same size, and it handles arrays natively.

Another alternative is QUERY, which is powerful for complex aggregations. For example:

=QUERY(A1:D10, "select sum(B), sum(C), sum(D) where A='North' label sum(B) '', sum(C) '', sum(D) ''")

This returns separate sums per column, which you can then add. QUERY is more verbose but allows grouping and other SQL-like operations.

Comparing SUMIF and SUMIFS for Multi-Column Sums

In Google Sheets, both SUMIF and SUMIFS can handle multi-column sum ranges. The difference is the number of criteria. Use SUMIF for a single condition; use SUMIFS for two or more conditions. If you have a single condition but want to sum multiple columns, SUMIF is shorter. If you have multiple conditions, SUMIFS is necessary. In Excel, neither function supports multi-column sum ranges directly, so you’d need to use SUMPRODUCT or combine multiple SUMIFS.

Performance and Best Practices

When working with large datasets (thousands of rows), multi-column SUMIF can be slower than SUMPRODUCT because it scans the entire range. For best performance, limit the range to the actual data size, avoid full-column references like B:D, and consider using FILTER or QUERY for very large data. Also, note that using array formulas with ARRAYFORMULA can sometimes cause issues with SUMIF; if you need to sum each column separately, use BYCOL or MMULT.

Frequently Asked Questions

Can I use SUMIF with multiple columns in Excel? No, Excel’s SUMIF does not allow a multi-column sum_range; it returns #VALUE!. Use SUMPRODUCT or add multiple SUMIFS instead.

Does SUMIF work with entire columns like B:D? Yes, in Google Sheets you can use =SUMIF(A:A, "North", B:D) but it will sum all rows in B:D where A matches. Be careful with header rows—they might be included if they match the criterion.

How do I sum multiple columns with multiple criteria? Use SUMIFS with a multi-column sum_range, e.g., =SUMIFS(B2:D10, A2:A10, "North", E2:E10, "2024").

Why does my SUMIF return 0? Check that the criterion matches exactly, including spaces, and that the values are numeric. Also ensure the ranges are aligned correctly.

Can I use wildcards with SUMIF on multiple columns? Yes, wildcards like * and ? work in the criterion, e.g., =SUMIF(A2:A10, "Nor*", B2:D10) sums all rows where column A starts with “Nor”.

Is there a way to sum only visible cells with multiple columns? SUMIF does not ignore hidden rows. Use SUBTOTAL or AGGREGATE with a helper column, but those work on single columns. For multiple columns, you’d need to use a filter and then sum manually.

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.