Public Schedule Face-to-Face & Online Instructor-Led Training - View dates & book

What is the Excel SUMIF function?

Forum home » Topics » What is the Excel SUMIF function?

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).

Related forum posts:

What is the sumif functions?

What is the sumif function?

Read forum post

 

Formulas based on formats

Is is possible to relate a sum formula for cell format (i.e. sum all cells in x column where colour is red)

Read forum post

 

Excel 2007 - Addition of formatted cells

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.

Read forum post

 

Negative entries

How does one make Excel sum up only positive values and automatically ignore negative entries in a simple summation?

Read forum post

 

Number calculation

How do i calculate Various numbers in different fields

Read forum post

 

Related articles

How Reorganising Your Data Can Take Your Business to the Next Level

Read article

 

Want To Get To Grips With The Different SUM Functions In Excel?

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.

Read article

 

 

Training courses

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.

Connect with us:

0207 987 3777

Call for assistance

Request Callback

We will call you back

Server loaded in 0.08 secs.