The SUMIF Function is categorized under Excel Math and Trigonometry functions. It will sum up cells that meet the given criteria. The criteria are based on dates, numbers, and text. It supports logical operators such as (>, <, <>, =) and also wildcards (*, ?). This guide to the SUMIF Excel function will show you how to use it, step-by-step.
As a financial analyst, SUMIF is a frequently used function. Suppose we are given a table listing the consignments of vegetables from different suppliers. The names of the vegetable, names of suppliers, and quantity are in column A, column B, and column C, respectively. In such a scenario, we can use the SUMIF function to find out the sum of the amount related to a particular vegetable from a specific supplier.
=SUMIF(range, criteria, [sum_range])
The formula uses the following arguments:
Range (required argument) – This is the range of cells that we want to apply the criteria against.
Criteria (required argument) – This is the criteria which are used to determine which cells need to be added.
When we provide the criteria argument, it can either be:
A numeric value (which may be an integer, decimal, date, time, or logical value) (e.g. 10, 01/01/2018, TRUE) or
A text string (e.g. “Text”, “Thursday”) or
An expression (e.g. “>12”, “<>0”).
Sum_range (optional argument) – This is an array of numeric values (or cells containing numeric values) that are to be added together if the corresponding range entry satisfies the supplied criteria. If the [sum_range] argument is omitted, the values from the range argument are summed instead.
How to use the SUMIF Excel Function
To understand the uses of the SUMIF function, let’s consider a few examples:
Suppose we are given the following data:
We wish to find total sales for the East region and the total sales for February. The formula to use to get the total sales for East is:
Text criteria, or criteria that includes math symbols, must be enclosed in double quotation marks (” “).
We get the result below:
The formula for total sales in February is:
We get the result below:
A few notes about the SUMIF Excel Function
#VALUE! error – Occurs when the criteria provided is a text string that is more than 255 characters long.
When sum_range is omitted, the cells in range will be summed.
The following wildcards can be used in text-related criteria:
? – matches any single character
* – matches any sequence of characters
To find a literal question mark or asterisk, use a tilde (~) in front of the question mark or asterisk (i.e. ~?, ~*).
Thanks for reading CFI’s guide to important Excel functions! By taking the time to learn and master these functions, you’ll significantly speed up your financial analysis. To learn more, check out these additional CFI resources:
Take your learning and productivity to the next level with our Premium Templates.
Upgrading to a paid membership gives you access to our extensive collection of plug-and-play Templates designed to power your performance—as well as CFI's full course catalog and accredited Certification Programs.
Already have a Self-Study or Full-Immersion membership? Log in
Access Exclusive Templates
Gain unlimited access to more than 250 productivity Templates, CFI's full course catalog and accredited Certification Programs, hundreds of resources, expert reviews and support, the chance to work with real-world finance and research tools, and more.