Home › Functions › Math & Trig › SUMIF
fx
SUMIF
Math & Trig  ·  Since: Excel 2003  ·  9 languages

You use the SUMIF function to sum the values in a range that meet criteria that you specify. For example, suppose that in a column that contains numbers, you want to sum only the values that are larger than 5. You can use the following formula: =SUMIF(B2:B25,">5")

🌐 Translations

English SUMIF
Deutsch SUMMEWENN
Français SOMME.SI
Español SUMAR.SI
Italiano SOMMA.SE
Português SOMASE
Nederlands SOM.ALS
Polski SUMA.JEŻELI
Русский СУММЕСЛИ

📦 Availability

Excel versionAvailable
Excel 2007 ✓
Excel 2013 ✓
Excel 2019 ✓
Excel 2021 ✓
Microsoft 365 ✓
Translate a formula with this function
fx EN
fx DE

⌨ Syntax

SUMIF(range,criteria,[sum_range])

Arguments

range (required) — The range of cells that you want evaluated by criteria. Cells in each range must be numbers or names, arrays, or references that contain numbers. Blank and text values are ignored. The selected range may contain dates in standard Excel format (examples below).
criteria (required) — The criteria in the form of a number, expression, a cell reference, text, or a function that defines which cells will be added. Wildcard characters can be included - a question mark (?) to match any single character, an asterisk (*) to match any sequence of characters. If you want to find an actual question mark or asterisk, type a tilde ( ⁠~⁠ ) preceding the character. For example, criteria can be expressed as 32, ">32", B5, "3?", "apple*", "*~?", or TODAY(). Important Any text criteria or any criteria that includes logical or mathematical symbols must be enclosed in double quotation marks ( " ). If the criteria is numeric, double quotation marks are not required.
sum_range (optional) — The actual cells to add, if you want to add cells other than those specified in the range argument. If the sum_range argument is omitted, Excel adds the cells that are specified in the range argument (the same cells to which the criteria is applied). Sum_range should be the same size and shape as range . If it isn't, performance may suffer, and the formula will sum a range of cells that starts with the first cell in sum_range but has the same dimensions as range . For example: range sum_range Actual summed cells A1:A5 B1:B5 B1:B5 A1:A5 B1:K5 B1:B5

▶ Examples

=SUMIF(B2:B25,">5")
=SUMIF(A2:A7,"",C2:C7)
=SUMIF(A2:A5,">160000")

Related functions

Copied to clipboard