Google Sheets SUMIF Function: Syntax, Examples & Tips

The SUMIF function adds up values in a range that meet specified criteria, allowing for conditional summation based on defined conditions.
Google Sheets
SUMIF(range, criterion, [sum_range])

One free generation or explanation per browser, shared across Excel and Google Sheets. Account usage limits apply afterward.

On this page
  1. Parameters
  2. What is a SUMIF?
  3. A Practical Example
  4. SUMIF Formula
  5. Result of the Formula
  6. Why Use SUMIF?
  7. Key Takeaways:
  8. Example use case

Parameters

range:
The range of cells that you want to evaluate for the specified criteria.

criteria:
The condition or value that you want to count occurrences of within the specified range. This can be a number, text, expression, or a cell reference that defines which cells will be counted.

sum_range:
The actual cells to sum if the corresponding cells in the range meet the specified criteria. If omitted, Google Sheets sums the cells in the range itself.

What is a SUMIF?

The SUMIF function in Google Sheets is a useful tool that allows you to sum values based on a specific condition or criteria. This function is particularly helpful when you want to aggregate data selectively, making it easier to analyze and interpret your datasets. Unlike the basic SUM function, which adds all values in a range, SUMIF lets you focus on specific entries that meet your defined criteria.

In simpler terms, SUMIF helps you calculate the total of a range of numbers while applying a filter to include only those numbers that meet certain conditions.

A Practical Example

Imagine you are managing a sales report for a small business, and you want to calculate the total sales for a specific product:

Sales Table:

ProductAmount
Widget A100
Widget B150
Widget A200
Widget C300
Widget B100

You want to find the total sales amount for "Widget A".

SUMIF Formula

To achieve this, you would use the SUMIF function as follows:

Google Sheets
=SUMIF(A2:A6, "Widget A", B2:B6)

In this formula:

  • A2:A6 is the range where the function will look for the product names.
  • "Widget A" is the criteria that specifies which product's sales you want to sum.
  • B2:B6 is the range from which the function will sum the corresponding amounts.

Result of the Formula

When you apply the SUMIF formula to the Sales Table, the output would be:

Google Sheets
Total Sales for Widget A: 300

This result indicates that the total sales amount for "Widget A" is 300, which is the sum of the two entries (100 + 200).

Why Use SUMIF?

SUMIF is beneficial because it simplifies the process of aggregating data based on specific criteria. It allows you to focus on relevant data points without manually filtering or sorting your dataset. This function is especially useful for financial analysis, inventory management, and any scenario where conditional summation is required.

Key Takeaways:

  • SUMIF: A Google Sheets function that sums values based on a specified condition.
  • Conditional Summation: Focuses on specific entries that meet defined criteria, enhancing data analysis.
  • Simplicity: Eliminates the need for complex formulas or manual calculations, making it user-friendly.
  • Common Use Cases: Ideal for sales reports, budget tracking, and any situation where conditional aggregation is necessary.

SUMIF is an essential function for anyone working with data in Google Sheets, providing a powerful way to enhance data analysis and reporting capabilities.

Happy spreadsheeting!

Example use case

You have a sales data table where Column A lists product categories and Column B shows sales amounts. You can use the SUMIF formula to calculate total sales for a specific category, enabling quick analysis of performance by category without manual summation.

Need more help with Google Sheets formulas?

Sign up for Better Analyst and get unlimited AI-powered formula generation, explanations, and advanced data analysis.

Explore all Google Sheets formulas

Browse our complete library of Google Sheets formula guides

Compare your options

Decide with evidence, not a sales pitch.

Open a neutral research prompt in the AI tool you already use. Compare capabilities, limitations, and fit before you choose.

  1. 01ChatGPTOpen a balanced comparison prompt in ChatGPT.
  2. 02ClaudeOpen the same research prompt in Claude.
  3. 03PerplexityResearch the comparison with linked web sources.

AI answers can be incomplete. Check source links, current pricing, and product documentation before deciding.