Excel SUM function is used to calculate the sum of numbers. The syntax is as follows: SUM(number1, [number2], ..., [numbern]). Usage includes: selecting a range of numbers, selecting the SUM function in the Formulas tab, entering a range of cells, and pressing Enter to get the result. For example, the formula to sum A1:A10 is: =SUM(A1:A10).
Excel Function Sum: Syntax and Usage Guide
In Excel, the Sum function is used to calculate ranges Or the sum of all numbers in the array.
Syntax:
SUM(number1, [number2], ..., [numbern])
Where:
Usage:
=SUM(A1:A10)
Example:
Suppose you have a column of cells containing sales data, as follows:
Cell | Value |
---|---|
A1 | 100 |
A2 | 200 |
A3 | 300 |
A4 | 400 |
To calculate the sum of the numbers in these cells, use the following formula:
=SUM(A1:A4)
Excel will return the result 1000, which is the sum of the numbers in these cells.
Tip:
=SUM(A:A)
will sum all the numbers in column A. =SUM({1,2,3,4,5})
will return 15. The above is the detailed content of How to use excel function sum. For more information, please follow other related articles on the PHP Chinese website!