FormulaCraft

SUMIF

SUMIF totals values where a matching condition is true — for example, summing all amounts tagged "Sales".

Topic:SUMIF & SUMIFS
Excel
=SUMIF(A:A, "Sales", B:B)
Google Sheets
=SUMIF(A:A, "Sales", B:B)

Try it with your data

Edit the grid or formula, then run it through a real spreadsheet engine — no signup.

Sample data — click any cell to edit

Runs server-side · free · no signup

How it works

  1. 1A:A is the range to test.
  2. 2"Sales" is the condition.
  3. 3B:B is the range whose matching values are summed.

Need a version for your data?

Try: “Sum column B where column A equals Sales

More on SUMIF & SUMIFS

See all →

Related

Written and reviewed by FormulaCraft Team. Each formula on this page is run through our verification engine before publishing.

Last reviewed: