Written and reviewed by FormulaCraft Team. Each formula on this page is run through our verification engine before publishing.
Last reviewed:
=SUMIF(A2:A6,"<>",B2:B6)Computed by a real spreadsheet engine on the sample data below.
| Label | Value |
| Alpha | 100 |
| 50 | |
| Beta | 200 |
| Gamma | 80 |
| 30 |
=SUMIF(A2:A6,"<>",B2:B6)→380
Edit the grid or formula, then run it through a real spreadsheet engine — no signup.
Sample data — click any cell to edit
Working on a sheet you inherited? Run the Auditor on the whole file first — it flags every #REF!, #N/A, broken column pattern, and inconsistent formula in seconds, free, no signup.
In SUMIF criteria, "<>" and "<>""" are equivalent — both mean not equal to an empty string. The shorter "<>" is conventional and clearer.
=SUMIF(B2:B6, "<>") — only two arguments. When sum_range is omitted, SUMIF sums the criteria_range itself, so this sums non-blank cells in B. Or just use =SUM(B2:B6) since SUM already skips blanks; the SUMIF version only matters if you also want to exclude zeros: =SUMIF(B2:B6, "<>0").
That cell probably holds a formula that returns "" — like =IF(condition,"",X). SUMIF treats those as non-blank because they have content (a formula). Either replace those cells with truly empty cells (delete the formula), or wrap with SUMIFS adding ="" exclusion if your engine supports it.
Use SUMIFS with multiple criteria pairs: =SUMIFS(C2:C6, A2:A6, "<>", B2:B6, "<>"). SUMIFS uses AND logic — both conditions must be true.
Standard SUMIF: =SUMIF(A2:A6, "Sales", B2:B6) sums B where A equals "Sales". Use wildcards for partial matches: =SUMIF(A2:A6, "*West*", B2:B6) sums where A contains "West".
Yes — =SUMIF(A2:A6, "", B2:B6) sums B where A is blank. Useful for catching mis-categorized rows that should have a label but don't.
Multiply ranges together row by row and sum the result — ideal for weighted totals.
How-toAdd up an entire column with SUM. Total a whole column or a fixed range — identical in Excel and Google Sheets.
Error fixSUM returns 0 or the wrong total in Excel and Google Sheets — fix numbers stored as text, filtered ranges, manual calculation mode, and circular references.
ReferenceAggregate a range (sum, average, count…) while ignoring other SUBTOTALs and, optionally, hidden rows. Ideal under filters.
How-toBuild a cumulative running total with a SUM and a clever anchored reference that grows as you copy it down. Works in both apps.
How-toTotal amounts that fall in a given month with SUMIFS and two date bounds. Works the same in Excel and Google Sheets.
Written and reviewed by FormulaCraft Team. Each formula on this page is run through our verification engine before publishing.
Last reviewed: