# Excel SUMIF Function

The Excel SUMIF function returns the sum of cells that supplied criteria. Criteria can be applied to dates, numbers, and text using logical operators (>,<,<>,=) and wildcards (*,?) for partial matching.

**range**- The range of cells that you want to apply the criteria against.**criteria**- The criteria used to determine which cells to add.**sum_range**- [optional] The cells to add together. If sum_range is omitted, the cells in range are added together instead.

The SUMIF function returns the sum of cells in a range based on supplied criteria. The first argument is the range to apply criteria to, the second argument is the actual criteria to apply, and the last argument is the range containing values to sum. SUMIF supports logical operators (>,<,<>,=) and wildcards (*,?) for partial matching. If you need to apply more than one criteria, use the SUMIFS function.

### Examples

In the example shown, there are three SUMIF examples. In the first example (G6), SUMIF is configured to sum values greater than 100. In the second example (G7), SUMIF returns the sum of values where the color is "red". In the last example (G8), SUMIF is configured to sum values where the state is "CA" (California).

Notice SUMIF is not case-sensitive. You can sum values where the Rep is Jim using "jim" or "Jim" for criteria.

### Notes

- When
**sum_range**is omitted, the cells in**range**will be summed. - Text criteria, or criteria that includes math symbols, must be enclosed in double quotation marks (").
- Numeric criteria can be supplied without quotation marks.
- The wildcard characters ? and * can be used in
**criteria**. A question mark matches any one character and an asterisk matches any sequence of characters. - To find a literal question mark or asterisk, use a tilde (~) in front question mark or asterisk (i.e. ~?, ~*).

## Excel Formula Training

Formulas are the key to getting things done in Excel. In this accelerated training, you'll learn how to use formulas to manipulate text, work with dates and times, lookup values with VLOOKUP and INDEX & MATCH, count and sum with criteria, dynamically rank values, and create dynamic ranges. You'll also learn how to troubleshoot, trace errors, and fix problems. Instant access. See details here.