How to Use SUMIF in Google Sheets (Conditional Sum)

Quickly sum numbers in Google Sheets only when they meet a condition using SUMIF. Use this guide to total sales, expenses, or scores that match a rule.

What the video covers

This guide shows how to write a SUMIF formula to sum values in one range based on a single condition applied to another range in Google Sheets. It covers basic operators and text criteria; it does not cover SUMIFS, array formulas, or advanced wildcard patterns.

Watch the video on YouTube

Step-by-step instructions

  1. Select the result cell
    Click the cell where you want the conditional total to appear.
  2. Start the SUMIF formula
    Type =SUMIF( and begin building the function.
  3. Specify the condition range
    Select the range that contains the values to test (the cells that will be compared to your condition), then type a comma.
  4. Enter the condition
    Type the condition in quotes (for example "100" or "Apples") or point to a cell that holds the criterion, then type a comma.
  5. Specify the sum range
    Select the range of numbers you want to add. This range should align row-by-row with the condition range.
  6. Close and evaluate
    Type ) and press Enter. The cell will display the sum of values where the condition is true.

Watch the video

Video thumbnail for How to Use SUMIF in Google Sheets (Conditional Sum) Play tutorial

Watch on YouTube

Why it matters

SUMIF lets you compute totals that meet a rule (for example, sales over 100 or totals for a specific product) so you can create clean, focused summaries without manual filtering.

Check your result

The result cell shows the expected total. Verify by filtering the condition range and summing visible values or by spot-checking individual matching rows.

Troubleshooting

– If the result is 0 or unexpected: check that the condition range and the sum range align row-for-row and include numeric values. – If text criteria are used, ensure exact spelling or use quotes around the criterion (e.g., "Apples"). – For operators use quotes: "100" or "=50". – If numbers are stored as text, convert them to numeric values (Value or Paste special values). – For multiple conditions use SUMIFS instead of SUMIF.