Math and Trignometric - SUMIF Function



Description

You can use the SUMIF Function to sum the values in a range that meet criteria that you specify.

Syntax

SUMIF (range, criteria, [sum_range])

Arguments

Argument Description Required/Optional
range

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.

Required
criteria

The criteria in the form of a number, expression, a cell reference, text, or a Function that defines which cells will be added.

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.

Required
sum_range

The actual cells to add, if you want to add cells other than those specified in the range argument.

If sum_range is omitted, Excel adds the cells that are specified in the range (the same cells to which the criteria is applied).

Optional

Notes

  • You can use the wildcard characters—the question mark (?) and asterisk (*) - as the criteria argument. A question mark matches any single character and an asterisk matches any sequence of characters. If you want to find an actual question mark or asterisk, type a tilde (~) preceding the character.

  • The SUMIF function returns incorrect results when you use it to match strings longer than 255 characters or to the string #VALUE!

  • The sum_range argument does not have to be the same size and shape as the range argument. The actual cells that are added are determined by using the upper leftmost cell in the sum_range argument as the beginning cell, and then including cells that correspond in size and shape to the range argument.

  • However, when the range and sum_range arguments in the SUMIF function do not contain the same number of cells, worksheet recalculation may take longer than expected.

Applicability

Excel 2007, Excel 2010, Excel 2013, Excel 2016

Example

SUMIF Function
advanced_excel_math_trigonometric_functions.htm
Advertisements