SUMIF
The SUMIF
function in Google Sheets is a powerful tool to return a conditional sum across a range. Whether you're calculating sales from specific regions, filtering data based on a certain criterion, or analyzing expenses based on specific categories, the SUMIF
function simplifies the task. Dive into our comprehensive guide to master its application.
Function Syntax and Parameters
Syntax: SUMIF(range, criterion, [sum_range])
Parameters:
range
: The range of cells to evaluate the criterion against.criterion
: The criterion or condition to be met.sum_range
: [Optional] The range of cells to sum if the corresponding cells in therange
match thecriterion
.
Step-by-Step Tutorial
-
Using
SUMIF
with a single criterion:- Example: If
A1:A5
has the valuesApples, Bananas, Apples, Oranges, Grapes
, andB1:B5
has the values5, 10, 7, 3, 9
, then=SUMIF(A1:A5, "Apples", B1:B5)
will return12
.
- Example: If
-
Using
SUMIF
with multiple criteria:- Example: If
A1:A5
has the valuesApples, Bananas, Apples, Oranges, Grapes
, andB1:B5
has the values5, 10, 7, 3, 9
, then=SUMIF(A1:A5, "Apples", B1:B5)
will return12
.
- Example: If
Use Cases and Scenarios
- Sales Analysis: Calculate the total sales for a specific product category.
- Expense Tracking: Determine the total expenses for a specific month or category.
- Data Filtering: Sum values that meet a certain condition in a dataset.
Related Functions
SUM
: Add up a series of numbers.IF
: Perform conditional calculations based on a given condition.COUNTIF
: Count cells that meet a specified criterion.