Tutor 5 (55 Reviews)
Excel Tutor
Still stuck with a Excel question
Ask this expertAnswer
SUMIF is a function in Excel that adds the values in a range that meet a specific condition. It is used to perform conditional summing without manually filtering or calculating values.
Syntax of SUMIF
The basic syntax is:
SUMIF(range, criteria, [sum_range])
-
range – The cells to evaluate against the criteria.
-
criteria – The condition that determines which cells to sum. This can be a number, text, expression, or even a cell reference.
-
sum_range – Optional. The actual cells to sum. If omitted, Excel sums the cells in the range itself.
How to Use SUMIF in Excel
-
Sum values based on a number condition
To sum sales greater than 500 in column B:=SUMIF(B2:B10, ">500")
Excel adds all numbers in B2:B10 that are greater than 500.
-
Sum values based on text criteria
To sum sales where the region is "East" in column A, and the sales values are in column B:=SUMIF(A2:A10, "East", B2:B10)
Excel checks each cell in A2:A10 for "East" and sums the corresponding values in B2:B10.
-
Sum values using a cell reference for criteria
Suppose D1 contains the value "West", and you want to sum sales for "West":=SUMIF(A2:A10, D1, B2:B10)
Excel dynamically uses the value in D1 as the condition.
-
Sum values with comparison operators and cell references
To sum sales greater than the value in D2:=SUMIF(B2:B10, ">" & D2)
Excel concatenates the operator with the cell reference to apply the condition.
Important Notes
-
SUMIF works for a single condition. To use multiple conditions, use SUMIFS.
-
Wildcards can be used in text criteria:
-
?matches any single character. -
*matches any sequence of characters.
Example:=SUMIF(A2:A10, "E*", B2:B10)
Sums values where column A starts with "E".
-
-
SUMIF ignores empty cells and text in the sum_range if the criteria is numeric.
-
On Mac, the formula works identically to Windows Excel. Differences appear only in interface navigation, not in formula syntax.
Example Scenario
| Region | Sales |
|---|---|
| East | 400 |
| West | 600 |
| East | 700 |
| South | 200 |
-
Formula:
=SUMIF(A2:A5, "East", B2:B5)
-
Result: 400 + 700 = 1100
This sums only the sales values where the region is "East".
. Was this Helpful?Get Online Tutoring or Questions answered by Experts.
You can post a question for a tutor or set up a tutoring session
Answers · 1
Why is today function not working
Answers · 1
How to extract date from datetime in excel
Answers · 1
Why is the date value not working
Answers · 1
How to create a date formula
Answers · 1