How to use the SUM function to calculate totals in Excel

SUM is a popular and very useful Excel function, and is also a basic arithmetic function. As its name suggests, the SUM function is used to calculate totals in Excel. And the parameters can be single parameters or ranges of cells. In this article, TipsMake.com will guide you to use the SUM function to calculate the sum in Excel, the common errors when calculating SUM by sum and how to fix it.

These are the main contents of this article:

  1. SUM function definition in Excel
  2. Structure of SUM function
  3. Examples of SUM functions
  4. Use other operations in the SUM calculation
  5. Use SUM function with other functions
  6. Use SUM functions across multiple pages
  7. Common problems and solutions

SUM function definition in Excel

Excel defines SUM as a calculation of "total all numbers in the range". This means that the SUM function is responsible for calculating the sum of the numbers and parameters in the cells and range of cells.

Structure of SUM function

SUM has two structures so it can be written in two ways:

  1. = SUM (num1, num2, . num_n). Here "num1, num2, . num_n" denotes the numbers we will calculate.
  2. = SUM (CellRange1, CellRange2, . CellRange_n). Inside:   "CellRange1, CellRange2, . CellRange_n" are numeric columns.

Notes in the calculation SUM:

  1. The SUM function can calculate decimals and fractions.
  1. In the calculation SUM: = SUM (num1, num2, . num_n) , if you enter the parameter "num" not a number, the SUM function will display the #Name error ? Lỗi .
  1. And similarly, in the calculation = SUM (CellRange1, CellRange2, . CellRange_n) contains non-numeric content, the SUM function will ignore that value.
  1. The SUM function is not a dynamic function form. Therefore, if you use SUM calculation on a range of cells and then filter out some values, the output of the SUM calculation will not change according to the nearest value. Therefore, it is better to use the Subtotal function for this case.

Examples of SUM functions

How to use the SUM function to calculate totals in Excel Picture 1

In the table above, there are four types of SUM functions and below I will explain each specific example:

1. Example 1, the sum of integers: = SUM (10,11,19) means adding the numbers 10,11,19 and 40 as the result 40.

2. Example 2, the sum of the decimal numbers: = SUM (10.2,9.6,2,4) , simply add the sum of 10.2 + 9.6 + 2.4 and give the result 25.8.

3. Example 3, the sum of the fractional numbers: = SUM (4 / 2.8 / 2) . The calculation adds the numbers 4/2 and 8/2 and the result is 6.

4. Example 4, the SUM function fails because it contains non-numeric content and that is also the reason for the calculation to give #Name? Lỗi .

How to use the SUM function to calculate totals in Excel Picture 2

5. Use the second form of SUM [= SUM (B2: B10)] to sum the numbers in the sequence (B2: B10) instead of the parameters and produce the result 60.

Shortening of calculation SUM:

Instead of writing calculations in a simple way, you can use the following:

How to use the SUM function to calculate totals in Excel Picture 3

First, select the number range and press " Alt + " and the result will be displayed in the next box.

Use other operations in the SUM calculation

Other operations such as (+, -, / and *) can be used in SUM. For example, = SUM (2 * 4) and the SUM function will be given as 8. Similarly with the remaining calculations.

In fact, the SUM function will handle all numeric sets including numbers or calculations. Therefore, the first thing it will evaluate the result of patch operation if there is no difference will result.

Use SUM function with other functions

1. It is possible to use the SUM function together with other functions. Here's an example of a monthly average:

How to use the SUM function to calculate totals in Excel Picture 4

= SUM (A2: L2) / COUNTA (A2: L2)

2. SUM of A2: L2 divided by the number of months in the year in A2: L2 does not include an empty cell.

Use SUM function on multiple sheets

1. Normally, to calculate the sum of cells with the same position in the pages, you will have to click on that box on each page and use the "+" between the values ​​but it will take time and calculations. will fail.

= Sheet1! A1 + Sheet2! A1 + Sheet3! A1

Therefore, this problem becomes easier when using the 3D SUM function:

How to use the SUM function to calculate totals in Excel Picture 5

= SUM (Sheet1: Sheet3! A1)

The SUM function summed cells A1 in all pages 1 through 3.

This is very useful for calculating single pages of months (January to December).

How to use the SUM function to calculate totals in Excel Picture 6

= SUM (January: December! A2) has added all A2 cells on each page from January to December

This 3D method is similarly used in the functions AVERAGE, MIN, MAX, .

  1. = AVERAGE (Sheet1: Sheet3! A1)
  2. = MIN (Sheet1: Sheet3! A1)
  3. = MAX (Sheet1: Sheet3! A1)

Common issues and solutions:

Case 1: The SUM function displays #####.

Check the column width, because ##### notifies enough space to display results.

Case 2: The SUM function displays the word and does not produce the result. Or show only numbers but not decimal numbers.

Check the format of the column. Go to Format and select Number to select the format you want. If after formatting, the text display does not change, you should press F2 and enter.

Case 3: The SUM function is not updated.

You must make sure that Calculation is set to Automatic . First go to Formula , select the Calculation option. Then press F9 to automatically update the page.

Case 4: Some values ​​are not used in SUM function.

Only the value or range containing the new number is placed in the function. Empty cells, logic functions, or text will be removed.

Case 5: Function that outputs #NAME? Lỗi.

There was a spelling error here. For example, = sume (A1: A10) instead of = SUM (A1: A10).

See more:

  1. How to combine Vlookup function with If function in Excel
  2. How to use the Power function in Excel
  3. How to use Hlookup function on Excel
  4. How to use Excel's VALUE function
  5. How to use Vlookup function in Excel
4 ★ | 2 Vote

May be interested

  • How to use the Power function in ExcelHow to use the Power function in Excel
    the power function in excel is a power function with a given number that you don't need to calculate manually.
  • How to calculate the number of days in ExcelHow to calculate the number of days in Excel
    how many days from january 9, 2015 to june 12, 2017? if you can find results within 5 seconds, you are truly a genius. however, this is no longer a problem when you know how to use excel.
  • PMT function in Excel - Usage and examplesPMT function in Excel - Usage and examples
    the pmt function is one of the built-in financial functions of the excel software used to calculate the payment for a loan based on regular payments and a constant interest rate. the pmt function is not only useful for businesses, but also very practical for users if you want to calculate a loan.
  • How to calculate the total value based on multiple conditions in ExcelHow to calculate the total value based on multiple conditions in Excel
    to calculate conditional sum in excel, it is impossible not to mention the special calculation function that is sumif and sumifs function. software tips will guide how to use conditional sum function. please follow the following article.
  • ABS function (absolute value calculation) in ExcelABS function (absolute value calculation) in Excel
    when you need to calculate absolute values ​​for numbers in excel spreadsheets, you can use the abs function to calculate. the abs function helps you calculate the absolute value of a number, an expression or reference containing a number.
  • How to calculate the average in ExcelHow to calculate the average in Excel
    the following article guides you in detail how to calculate the average in excel. there are 2 ways to calculate the average value: - calculate the average value according to the usual calculation formula. - calculate the average value using the average function.
  • Average function (calculate the average) in ExcelAverage function (calculate the average) in Excel
    the average function in excel helps you calculate the average value for a range of numbers, an array, or a reference containing numbers quickly and accurately.
  • SQRT function, how to use square root function in ExcelSQRT function, how to use square root function in Excel
    the sqrt function in excel helps us quickly calculate the square root value of a number.
  • How to use the AVERAGE function in ExcelHow to use the AVERAGE function in Excel
    average function on excel will calculate the average of the data in the spreadsheet.
  • SUM function in Excel, sum function and examplesSUM function in Excel, sum function and examples
    sum is a basic excel function that allows users to quickly and accurately calculate the sum of columns or cells in an excel spreadsheet. for an overview of the concept, formula and how to use the sum function in excel, readers can refer to our article below. with many illustrative examples from simple to complex, readers can understand and quickly apply this function to practical work.