Which function is used to find the sum of the given numbers or a series of cells?

Returns a conditional sum across a range.

Examples

Make a copy

Sample Usage

SUMIF(A1:A10,">20")

SUMIF(A1:A10,"Paid",B1:B10)

Syntax

SUMIF(range, criterion, [sum_range])

  • range - The range which is tested against criterion.

  • criterion - The pattern or test to apply to range.

    • If range contains text to check against, criterion must be a string. criterion can contain wildcards including ? to match any single character or * to match zero or more contiguous characters. To match an actual question mark or asterisk, prefix the character with the tilde (~) character (i.e. ~? and ~*). A string criterion must be enclosed in quotation marks. Each cell in range is then checked against criterion for equality (or match, if wildcards are used).

    • If range contains numbers to check against, criterion may be either a string or a number. If a number is provided, each cell in range is checked for equality with criterion. Otherwise, criterion may be a string containing a number (which also checks for equality), or a number prefixed with any of the following operators: = (checks for equality), > (checks that the range cell value is greater than the criterion value), or < (checks that the range cell value is less than the criterion value)

  • sum_range - The range to be summed, if different from range.

Notes

  • SUMIF can only perform conditional sums with a single criterion. To use multiple criteria, use the database function DSUM.

See Also

SUMSQ: Returns the sum of the squares of a series of numbers and/or cells.

SUM: Returns the sum of a series of numbers and/or cells.

SERIESSUM: Given parameters x, n, m, and a, returns the power series sum a1xn + a2x(n+m) + ... + aix(n+(i-1)m), where i is the number of entries in range `a`.

QUOTIENT: Returns one number divided by another, without the remainder.

PRODUCT: Returns the result of multiplying a series of numbers together.

MULTIPLY: Returns the product of two numbers. Equivalent to the `*` operator.

MINUS: Returns the difference of two numbers. Equivalent to the `-` operator.

DSUM: Returns the sum of values selected from a database table-like array or range using a SQL-like query.

DIVIDE: Returns one number divided by another. Equivalent to the `/` operator.

COUNTIF: Returns a conditional count across a range.

ADD: Returns the sum of two numbers. Equivalent to the `+` operator.

Was this helpful?

How can we improve it?

Lesson 5: Functions

/en/excelformulas/relative-and-absolute-cell-references/content/

Introduction

A function is a predefined formula that performs calculations using specific values in a particular order. All spreadsheet programs include common functions that can be used for quickly finding the sum, average, count, maximum value, and minimum value for a range of cells. In order to use functions correctly, you'll need to understand the different parts of a function and how to create arguments to calculate values and cell references.

Watch the video below to learn more about using functions in Excel.

The parts of a function

In order to work correctly, a function must be written a specific way, which is called the syntax. The basic syntax for a function is an equals sign (=), the function name (SUM, for example), and one or more arguments. Arguments contain the information you want to calculate. The function in the example below would add the values of the cell range A1:A20.

Which function is used to find the sum of the given numbers or a series of cells?

Working with arguments

Arguments can refer to both individual cells and cell ranges and must be enclosed within parentheses. You can include one argument or multiple arguments, depending on the syntax required for the function.

For example, the function =AVERAGE(B1:B9) would calculate the average of the values in the cell range B1:B9. This function contains only one argument.

Which function is used to find the sum of the given numbers or a series of cells?

Multiple arguments must be separated by a comma. For example, the function =SUM(A1:A3, C1:C2, E2) will add the values of all cells in the three arguments.

Which function is used to find the sum of the given numbers or a series of cells?

Using functions

There are a variety of functions. Here are some of the most common functions you'll use:

  • SUM: This function adds all the values of the cells in the argument.
  • AVERAGE: This function determines the average of the values included in the argument. It calculates the sum of the cells and then divides that value by the number of cells in the argument.
  • COUNT: This function counts the number of cells with numerical data in the argument. This function is useful for quickly counting items in a cell range.
  • MAX: This function determines the highest cell value included in the argument.
  • MIN: This function determines the lowest cell value included in the argument.

To use a function:

In our example below, we'll use a basic function to calculate the average price per unit for a list of recently ordered items using the AVERAGE function.

  1. Select the cell that will contain the function. In our example, we'll select cell C11.

    Which function is used to find the sum of the given numbers or a series of cells?

  2. Type the equals sign (=) and enter the desired function name. In our example, we'll type =AVERAGE.

    Which function is used to find the sum of the given numbers or a series of cells?

  3. Enter the cell range for the argument inside parentheses. In our example, we'll type (C3:C10). This formula will add the values of cells C3:C10 and then divide that value by the total number of cells in the range to determine the average.

    Which function is used to find the sum of the given numbers or a series of cells?

  4. Press Enter on your keyboard. The function will be calculated, and the result will appear in the cell. In our example, the average price per unit of items ordered was $15.93.

    Which function is used to find the sum of the given numbers or a series of cells?

Your spreadsheet will not always tell you if your function contains an error, so it's up to you to check all of your functions. To learn how to do this, check out the Double-Check Your Formulas lesson.

Working with unfamiliar functions

If you want to learn how a function works, you can start typing that function in a blank cell to see what it does.

Which function is used to find the sum of the given numbers or a series of cells?

You can then type an open parenthesis to see what kind of arguments it needs.

Which function is used to find the sum of the given numbers or a series of cells?

Understanding nested functions

Whenever a formula contains a function, the function is generally calculated before any other operators, like multiplication and division. That's because the formula treats the entire function as a single value—before it can use that value in the formula, it needs to run the function. For example, in the formula below, the SUM function will be calculated before division:

Which function is used to find the sum of the given numbers or a series of cells?

Let's take a look at a more complicated example that uses multiple functions:

=WORKDAY(TODAY(),3)

Here, we have two different functions working together: the WORKDAY function and the TODAY function. These are known as nested functions, since one function is placed, or nested, within the arguments of another. As a rule, the nested function is always calculated first, just like parentheses are performed first in the order of operations. In this example, the TODAY function will be calculated first, since it's nested within the WORKDAY function.

Other common functions

There are many other functions you can use to quickly calculate different things with your data. Learning how to use other functions will allow you to solve complex problems with your spreadsheets, and we'll be talking more about them throughout this tutorial. You can also check out our articles below to learn about specific functions:

  • How to Use Excel's VLOOKUP Function
  • How to Count Cells with COUNTA
  • Use SUMPRODUCT to Calculate Weighted Averages
  • CONCATENATE: Excel's Duct Tape
  • Use the PROPER Function to Capitalize Names in Excel

/en/excelformulas/solving-reallife-problems-in-excel/content/

Which function can be used to get the total of series of numbers in Excel?

Use the COUNT function to get the number of entries in a number field that is in a range or array of numbers. For example, you can enter the following formula to count the numbers in the range A1:A20: =COUNT(A1:A20).

What is the formula for sum in Excel?

One of the common Excel functions is SUM, which totals the values in a range of cells. For example, the formula =SUM(A2:A10) totals the values in the cell range A2:A10. The AVERAGE function is similar to SUM, except it finds the average of values in a cell range.

How many methods to add or find the sum of a series of numbers in Excel?

You can sum numbers in Excel automatically or manually. It's easy to sum in Excel in two different ways to add a series of numbers together. You can add two or more numbers using the AutoSum tool, or by manually totaling them with plus signs.

Which of the common function is used to get the total of the given numbers?

Sum a range of cells -- SUM Function The quickest and easiest way to sum a range of cells is to use the Excel AutoSum button. It automatically enters an Excel SUM function in the selected cell. The SUM function totals one or more numbers in a range of cells.