FormulaCraft

SUMPRODUCT vs SUMIFS: weighted and conditional sums in Excel and Sheets

Topic:SUMIF & SUMIFS
Excel & Google Sheets
=SUMPRODUCT(A2:A5,B2:B5)

Verified example

Computed by a real spreadsheet engine on the sample data below.

QtyPrice
210
320
130
45

=SUMPRODUCT(A2:A5,B2:B5)130

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

Step by step

  1. 1SUMPRODUCT multiplies quantity by price row-by-row, then adds the results: 2×10 + 3×20 + 1×30 + 4×5 = 130.
  2. 2SUMIFS cannot multiply two columns — it only sums one column where criteria match.
  3. 3Reach for SUMIFS for conditional totals; reach for SUMPRODUCT for weighted totals or multi-condition math.

Tips

Need it for your exact data?

Describe your columns in plain English and get the precise formula for your sheet, with the right Excel or Sheets syntax.

Frequently asked

When must I use SUMPRODUCT over SUMIFS?

When you need to multiply arrays (quantity × price), or apply OR-logic across criteria that SUMIFS' AND-only model can't express.

More on SUMIF & SUMIFS

See all →

Formulas used

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

Last reviewed: