Forum home » Topics » What is the Excel SUMIF function?
You use the Excel SUMIF function to sum the values in a range that meet criteria that you specify.
The SUMIF function allows you to find the total of one group of data from a table that has a number of groups of data.
An example would be to use a SUMIF function to get the total sum of salaries paid to people that worked in the marketing department (1 variable of group) from a table that held this information on a number of departments, i.e., marketing, finance, HR, and Sales (multiple variables or groups).
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")
The syntax for SUMIF is as follows:
SUMIF(range, criteria, [sum_range])
The SUMIF function syntax has the following arguments:
Range: This is Required. It is 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.
Criteria: This is Required. The criteria in the form of a number, expression, a cell reference, text, or a function that defines which cells will be added.
For example, criteria can be expressed as 32, ">32", B5, 32, "32", "apples", 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: This is optional and will be 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).
What is the sumif function?
Is is possible to relate a sum formula for cell format (i.e. sum all cells in x column where colour is red)
Hi, after i have formatted cells, how do then add up only some of the proceeds... i.e. if i have inserted a formula to turn them yellow... how do i only add the yellow cells? thank you.
How does one make Excel sum up only positive values and automatically ignore negative entries in a simple summation?
How do i calculate Various numbers in different fields
Once you've worked with Excel for a bit, you'll no doubt have come across different functions all containing SUM such as SUM, SUMIF, SUMIFs and DSUM. This article describes how these different functions are used to help you carry out various data analysis tasks which all involve summing. These functions differ in how you can use criteria with the SUM.
Welcome. Please choose your application (eg. Excel) and then post your question.
Our Microsoft Qualified trainers will then respond within 24 hours (working days).
Frequently Asked Questions
What does 'Resolved' mean?
Any suggestions, questions or comments? Please post in the Improve the forum thread.
Call for assistance
We will call you back