How-Tos Productivity Downloads About

SUMIF vs SUM: When Each One Is Right

SUM adds everything, while SUMIF adds only the rows that meet a condition. Use SUM for a plain total and SUMIF when the total should include only some rows.

a calm adult at a desk with a real Windows laptop, the screen showing a spreadsheet with a SUMIF formula and fully legible totals, the person comparing the results. No black screen, no blank white screen, no fake or g...

TL;DR / Quick Fix

Quick fix: decide whether every row counts or only matching ones. Use SUM for the plain total, then try SUMIF with one condition on a copy of the data, and compare the two results and test both on a tiny example first.

Follow these steps

  1. Understand SUM. SUM adds every number in a range, with no questions asked. It is the right tool for a plain total of a column.
  2. Understand SUMIF. SUMIF adds only the numbers whose row meets a condition, like region equals West. The condition is what makes it selective.
  3. Use SUM for plain totals. When every row belongs in the total, SUM is simpler and clearer. Do not add a condition that matches everything.
  4. Use SUMIF for filtered totals. When only some rows count, like one region or one month, SUMIF does the filtering and the adding in one step.
  5. Test with a tiny example. Try both on five rows where you know the answer. A tiny test proves you understand the condition before trusting it on thousands of rows.
  6. Check the condition quotes and ranges. Text conditions need quotes, and the sum range must line up with the condition range. Most SUMIF errors live in those two spots.
A person performing step 1 of the guide: Understand SUM. SUM adds every number in a range, with no questions asked. It is the right tool for a plain total of a column.
Step 1 in action: Understand SUM. SUM adds every number in a range, with no questions asked. It is the right tool for a plain total of a column.

What NOT to do

  • Do not use SUMIF with a condition that matches everything. A plain SUM says the same thing more clearly.
  • Do not guess the condition syntax. Test on a tiny example, since a wrong condition silently totals the wrong rows.
  • Do not mix up the ranges. The condition range and the sum range must align row for row, or the total answers a different question.
  • Do not nest SUMIFs when one will do. One clear SUMIF beats three clever ones stacked together.

Frequently asked questions

What is the difference between SUM and SUMIF?

SUM adds everything in a range, while SUMIF adds only the numbers whose rows meet a condition.

When should I use SUMIF?

When the total should include only some rows, like sales from one region or one month.

Why does my SUMIF return zero?

Usually the condition text does not match the data exactly, so check spelling and quotes.

What to read next

About the author

By Juan Ibarra · Google IT Support Certified (Verified on Credly). See the About page for full author details.

Share this guide