# Excel SUM Function

The Excel SUM function returns the sum of values supplied. These values can be numbers, cell references, ranges, arrays, and constants, in any combination. SUM can handle up to 255 individual arguments.

**number1**- The first value to sum.**number2**- [optional] The second value to sum.**number3**- [optional] The third value to sum.

The SUM function returns the sum of values supplied. These values can be numbers, cell references, ranges, arrays, and constants, in any combination. SUM can handle up to 255 individual arguments.

### Examples

In the example shown, the formula in D12 is:

=SUM(D6:D10) // returns 9.05

References do not need to be next to one another. For example, to sum the cost of apples, bananas, and kiwis only, you can use a formula like this:

=SUM(D6,D8,D10) // returns 5.55

The SUM function automatically ignores text values without returning an error. This can can be useful in situations like this, where the first instance of a formula would otherwise throw an error.

Excel provides a keyboard shortcut to automatically sum a range of cells above. You can see a demonstration in this video.

### Notes

- The SUM function sums values supplied as arguments (up to 255 arguments).
- Arguments can be supplied as numbers, cell references, ranges, arrays, constants, and results of other formulas or functions.
- The SUM function automatically ignores text values.

## Excel Formula Training

Formulas are the key to getting things done in Excel. In this accelerated training, you'll learn how to use formulas to manipulate text, work with dates and times, lookup values with VLOOKUP and INDEX & MATCH, count and sum with criteria, dynamically rank values, and create dynamic ranges. You'll also learn how to troubleshoot, trace errors, and fix problems. Instant access. See details here.