← All comparisons

SUMIF vs SUMIFS: what's the difference?

SUMIFS does everything SUMIF does and handles multiple conditions — but the two put their arguments in OPPOSITE orders, which is the bug most people actually hit when switching between them.

The differences at a glance

SUMIFSUMIFS
Number of conditionsExactly oneOne or many (all ANDed)
Argument ordercriteria range, criteria, THEN sum range (last)sum range FIRST, then range/criteria pairs
Sum range optional?Yes — omit it to sum the criteria range itselfNo — always explicit
Wildcards and comparisons (">100", "Widg*")YesYes
CompatibilityUniversalUniversal (Excel 2007+, all Sheets & LibreOffice versions we test)

Which should you use?

Compatibility (Excel for the web, Sheets & LibreOffice executed; desktop Excel per docs)

Both execute correctly in every LibreOffice version we test (desktop Excel behavior per docs — we do not run desktop Excel; Google Sheets is executed separately, see each function page) — this choice is purely about syntax and conditions, not compatibility. The same relationship holds for COUNTIF/COUNTIFS and AVERAGEIF/AVERAGEIFS. Excel for the web is a separate application with its own calculation engine, and that one we do execute: all 9 corpus cases for these functions matched the documented values there (recalculated on OneDrive, 2026-09-01); the per-case values are on the individual function pages.

Example formulas

SUMIF (sum range LAST)=SUMIF(A2:A10,"East",C2:C10)
SUMIFS (sum range FIRST, two conditions)=SUMIFS(C2:C10,A2:A10,"East",B2:B10,"Widget")

Full per-version details on each function page: SUMIF · SUMIFS.

How-to recipes using these functions