|1||= 2 + 7 + 1|
The simplest type of Excel addition formula is made up of the = sign, followed by two or more numbers, with the + operator in between them. This is shown in the above spreadsheet on the right.
The excel addition formula in the example spreadsheet calculates the sum of the three numbers 2, 7 and 1 and returns the result 10.
|1||= B1 + B2 + B3||2|
As with all Excel formulas, instead of typing the numbers directly into your addition formula, you can use references to cells containing numbers.
The Excel addition formula in cell A1 of the above spreadsheet on the right adds together the contents of cells B1, B2 and B3 (which contain the values 2, 7 and 1). Again, the formula returns the value 10.
Instead of using the + operator, you can use the Excel Sum Function to perform addition in Excel. The syntax of this function is:
where number1, [number2], etc. are one or more numbers (or references to cells containing numbers) that you want to add together.
|1||=SUM( B1, B2, B3 )||2|
An example of the Excel Sum function is shown in cell A1 of the above spreadsheet on the right.
In this example, the Sum function is used to add together the three values in cells B1, B2 and B3 (i.e. the values 2, 7 and 1). Again, the function returns the value 10.
You can also supply one or more ranges of cells to the Excel Sum function (rather than typing in each individual value or cell reference).
For example, in the above example spreadsheet, in order to find the sum of the values in cells B1-B3, you could simply type the formula:
For further information and examples of the Excel Sum function, see the Excel Sum Function page.