Use SUMIF in Excel to Add Values That Meet a Condition

Quickly total only the numbers that meet a specific condition using Excel’s SUMIF function. Ideal for sales, expenses, and any filtered totals without complex formulas.

What the video covers

Demonstrates the basic SUMIF function in Excel to add numbers based on a single condition (e.g., sum sales for a specific category). Does not cover SUMIFS (multiple conditions), array formulas, or pivot tables.

Watch the video on YouTube

Step-by-step instructions

  1. Select the cell for the total
    Click the worksheet cell where you want the SUMIF result to appear.
  2. Start the SUMIF formula
    Type =SUMIF( and then build the three parts: the range to check, the criterion, and the range to sum.
  3. Enter the range to check
    Select or type the range that contains the values to evaluate (for example the category column). This is the range Excel will test against your condition.
  4. Specify the criterion
    Enter the condition in quotes if it’s text (for example "Sales") or a comparison in quotes (for example "100"). You can also reference a cell that contains the condition instead of typing it directly.
  5. Specify the sum range
    Select or type the range that contains the numbers to add. This range should align with the criteria range (same number of rows). If you omit the sum range, Excel will sum the cells in the criteria range itself.
  6. Close and evaluate the formula
    Close the parentheses and press Enter. Excel will return the sum of values where the condition is met.
  7. Verify and adjust if needed
    Check that the returned total matches expected rows. If not, confirm ranges are the same size, criteria spelling is correct, and numeric cells are real numbers (not text).

Watch the video

Video thumbnail for Use SUMIF in Excel to Add Values That Meet a Condition Play tutorial

Watch on YouTube

Why it matters

SUMIF lets you compute totals that match a criterion (such as a category or threshold) so your reports and summaries reflect only the relevant data rather than one combined total.

Check your result

After completing the steps you should see a cell showing the sum of only the values whose corresponding entries meet the condition (for example, only rows labeled “Sales”). If incorrect, verify ranges, criteria syntax, and that matching cells actually contain the expected values.

Troubleshooting

– If the result is 0 or unexpected: check that the criteria spelling and casing match the source cells; SUMIF is not case-sensitive but exact text must match. – If you get #VALUE!: ensure the criteria range and sum range are the same size (same number of rows). – For partial matches use wildcards in the criteria ("*text*" for contains, "text*" for begins with). – To use logical comparisons, put the operator and number in quotes (for example "100" or "=50"). – If numbers are stored as text, convert them to numeric format so they sum correctly.