SUM Function in Excel

This post will guide you how to use Excel SUM function with syntax and examples in Microsoft excel.

Description

The Excel SUM function will adds all numbers in a range of cells and returns the sum of these values. You can add individual values, cell references or ranges in excel.

The SUM function is a build-in function in Microsoft Excel and it is categorized as a Math and Trigonometry Function.

The SUM function is available in Excel 2016, Excel 2013, Excel 2010, Excel 2007, Excel 2003, Excel XP, Excel 2000, Excel 2011 for Mac.

Syntax

The syntax of the SUM function is as below:

= SUM(number1,[number2],…)

Where the SUM function arguments are:

  • number1 -This is a required argument. A numeric value that you want to sum.
  • [number2],…– This is an optional argument.  Numbers that you want to find the sum of.

Note:

  • The SUM function can accept up to 255 arguments

Excel SUM Function Examples

The below examples will show you how to use Excel SUM Function to return the sum of a set of numbers.

#1 To get the sum value of Cell B1 and B2, just using the following excel formula:

=SUM(B1,B2)

excel sum function1

Related Functions


  • Excel SUMIF Function
    The Excel SUMIF function sum the numbers in the range of cells that meet a single criteria that you specify. The syntax of the SUMIF function is as below:=SUMIF (range, criteria, [sum_range])…
  • Excel SUMIFS Function
    The Excel SUMIFS function sum the numbers in the range of cells that meet a single or multiple criteria that you specify. The syntax of the SUMIFS function is as below:=SUMIFS (sum_range, criteria_range1, criteria1, [criteria_range2, criteria2], …)…
  • Excel SUMSQ Function
    The Excel SUMSQ function returns the sum of squares of a given set of arguments.The syntax of the SUMSQ function is as below:=SUMSQ(number1, [number2], …)…
  • Excel SUMX2MY2 Function
    The Excel SUMX2MY2 function returns the sum of the difference of squares between two supplied arrays.The syntax of the SUMX2MY2 function is as below:=SUMX2MY2 (array_x, array_y)…

Excel SUM Function Examples


  • Count Cells That Contain Specific Text
    This post will discuss that how to count the number of cells that contain specific text or certain text in a specified cells of range in Excel. How to get the total number of cells that contain certain text.……
  • Sum Same Cell Range on Multiple Worksheets
    This post will explains that how to use the Excel 3-D reference to reference the same cell or a range of cells on multiple worksheets, then try to sum the same cell range from multiple worksheet with an Excel formula..……
  • Using Data Validation to Limit Calculated Cell
    This post will explains that how to use the Excel 3-D reference to reference the same cell or a range of cells on multiple worksheets, then try to sum the same cell range from multiple worksheet with an Excel formula..……
  • Sort Cells by Specific word or words
    how to sort cells or text values in a column based on a specific word even if the word is in the text string in the cell. How do I sort cells in a column by the number of a specific word or words in excel……
  • Limit Formula Result to Maximum or Minimum Value
    You can use the MIN function or Max function to create a formula to limit a number within a minimum or maximum value. .….
  • Sum Specific Row or Column in Named Range
    Assuming that you have a name range “excelhow”, if you want to sum a specific row (row 2) in named range, you need to create a formula based on the SUM function and the OFFSET function and the COLUMNS function to achieve the reuslt….
  • Show Only Positive Values
    You can create a formula based on the IF function, and the SUM function to sum all values in the range A1:C5 and just show only positive values…
  • COUNTIF with Multiple Criteria
    To count the number based on multiple criteria in the same range or column in Excel, you can create a formula based on the SUMPRODUCT function and the COUNTIF function.….
  • Sum Multiple Columns based on One Criteria
    You need to create a formula based on the SUM function to sum sale values for all two months in a newly helper column. And then create another formula based on the SUMIF function to sum total values for product “excel”. ……
  • Sum Every Nth Row or Column
    If you want to sum every nth rows in Excel, you can create an Excel Array formula based on the SUM function, the MOD function and the ROW function..….
  • Count Dates in Given Year/Month/Day in Excel
    You can create a formula based on the SUMPRODUCT function and the YEAR function to count dates by a give year….
  • Sum the Absolute Values
    Assuming that you have a list of data in range B1:B6 that contain negative numbers and positive numbers, and you want to sum all absolute values in these range of cells, You can use a formula based on the SUMIF function to achieve the result….
Related Posts

If Cell Begins with One of Three Supplied Characters
If Cell Begins with One of Three Supplied Characters

If you want to test values to see if they begin with some given specific characters like “x”, ”y”, or “z”, you can create a formula with COUNTIF and SUM functions to return results. EXAMPLE You can see “TRUE” or ...

Average per Week by Formula in Excel
Average per Week 1

We usually apply AVERAGE function or relevant functions to return average directly in Excel worksheet. But in some situations, only applying average relevant functions cannot figure out our problem. Sometimes we can create a formula with functions and mathematical operation ...

How to Sum if Contains an Asterisk
How to Sum if Contains an Asterisk 7

To add numbers together we need to apply SUM function. And if we want to add numbers based on some conditions, we can add criteria with the help of SUMIFS function, SUMIFS can filter data with multiple criteria effectively. If ...

How to Sum in Vertical Range
How to Sum in Vertical Range 8

If we want to add numbers based on some conditions in Excel worksheet, we can add criteria with the help of SUMIFS function, SUMIFS can filter data with multiple criteria effectively. In this article, we will introduce you the method ...

How to Sum in Horizontal Range
How to Sum in Horizontal Range9

To add numbers together we need to apply SUM function. But if we want to add numbers based on some conditions, we can add criteria with the help of SUMIFS function, SUMIFS can filter data with multiple criteria effectively. In ...

How to Sum with Criteria and Or Logic in Excel
How to Sum with Criteria and Or Logic in Excel 8

To add numbers together we need to apply SUM function. And if we want to add numbers based on some conditions, we can add criteria with the help of SUMIFS function, SUMIFS can filter data with multiple criteria effectively. If ...

How To Sum the Largest N Values in Excel

Sometimes we may want to sum the largest N numbers or top N numbers in a range. In this article, we will show you the method of “SUM the Largest N Numbers” by a simple formula which consist of SUMPRODUCT ...

How to Sum for Cell Contains Formula Only in Excel
How to Sum for Cell Contains Formula Only in Excel 9

Sometimes values are created by formulas in cells. If we want to sum values which are created by formulas from a range, but some values which are hardcoded also list in the same range, how can we filter out matched ...

How to Sum the Smallest N Values in Excel
How to Sum the Smallest N Values in Excel 15

Sometimes we may want to sum the first smallest N numbers in a range in Excel. In this article, we will show you the method of “SUM the Smallest N Numbers” by a simple formula which consist of SUMPRODUCT and ...

How to Subtotal Values for Groups and Only Keep One Subtotal for A Group in Column
How to Subtotal Values for Groups and Only Keep One Subtotal for A Group in Column14

Sometimes we may meet the case that subtotal values for different groups and only record a subtotal value for one group in a column, for other cells in this group, keep them blank. Today we will introduce you how can ...

Sidebar