# Excel SUMIFS Function

SUMIFS is a function to sum cells that meet multiple criteria. SUMIFS can be used to sum values when adjacent cells meet criteria based on dates, numbers, and text. SUMIFS supports logical operators (>,<,<>,=) and wildcards (*,?) for partial matching.

**sum_range**- The range to be summed.**range1**- The first range to evaulate.**criteria1**- The criteria to use on range1.**range2**- [optional] The second range to evaluate.**criteria2**- [optional] The criteria to use on range2.

The SUMIFS function sums cells in a range using supplied criteria. Unlike the SUMIF function, SUMIFS can apply more than one set of criteria, with more than one range. The first range is the range to be summed. The criteria are supplied in *pairs* (range/criteria) and only the first pair is required. To apply additional criteria, provide an additional range/criteria pair. Up to 127 range/criteria pairs are allowed.

Criteria can include logical operators (>,<,<>,=) and wildcards (*,?) for partial matching. Criteria can also be based on a value from another cell, as explained below.

SUMIFS is in a group of eight functions in Excel that split logical criteria into two parts (range + criteria). As a result, the syntax used to construct criteria is different, and SUMIFS *requires* a cell range for range arguments, you can't use an array.

If you need to manipulate values that appear in a *range* argument (i.e. extract the year from dates to use in criteria), see the SUMPRODUCT and/or FILTER functions.

### Examples

In the first example (I5), SUMIFS is configured to sum values in column F when the color in column C is "red". In the second example (I6), SUMIFS is set to sum values in column F only when the color is "red" and the state is Texas (TX).

### Notes

- Multiple conditions are applied using AND logic, i.e. condition 1
*AND*condition 2, etc. - Each additional range must have the same number of rows and columns as
*sum_range*, but ranges do not need to be adjacent. If you supply ranges that don't match, you'll get a #VALUE error. - Text strings in criteria must be enclosed in double quotes (""), i.e. "apple", ">32", "jap*"
- Cell references in criteria are
*not*enclosed in quotes, i.e. "<"&A1 - The wildcard characters ? and * can be used in criteria. A question mark (?) matches any one character and an asterisk (*) matches any sequence of characters (zero or more).
- To find a literal question mark or asterisk, use a tilde (~) in front question mark or asterisk (i.e. ~?, ~*).
- SUMIF and SUMIFS can handle ranges, but not arrays. This means you can't use other functions like YEAR on the criteria range, since the result is an array. If you need this functionality, use the SUMPRODUCT function.
- The order of arguments is different between the SUMIFS and SUMIF functions.
*Sum_range*is the__first__argument in SUMIFS, but the__third__argument in SUMIF.

## Download 200+ Excel Shortcuts

Get over 200 Excel shortcuts for Windows and Mac in one handy PDF.