# SUM

#### Syntax <a href="#syntax.51" id="syntax.51"></a>

**SUM**(*range*; *orientation*)

* *range* - a range of values - ***Value type**: range*
* *orientation* - the orientation of the sum calculation - ***Value type**: constant (optional, <mark style="color:red;">all</mark> as default)*. Possible values are:
  * *<mark style="color:red;">all</mark>* - the sum of the whole range is returned as a single number
  * *<mark style="color:red;">horizontal</mark>* - the sum calculation is performed horizontally (row-wise) and returned as a column of numbers
  * *<mark style="color:red;">vertical</mark>* - the sum calculation is performed vertically (column-wise) and returned as a row of numbers

#### Remarks <a href="#remarks.38" id="remarks.38"></a>

* Empty cells or cells which cannot be converted to numbers are ignored in the sum calculation.

#### Examples <a href="#examples.13" id="examples.13"></a>

![](https://1085786630-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FWv5M2BoEVu0kDIV5EPs4%2Fuploads%2Fgit-blob-9aba7179eb9c4d4bb66ea190097cf083f5011006%2Fgrafik.png?alt=media)

![](https://1085786630-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FWv5M2BoEVu0kDIV5EPs4%2Fuploads%2Fgit-blob-d4067ff28b4413719d94ebe1bf7f6636555d5cf1%2Fgrafik.png?alt=media)

![](https://1085786630-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FWv5M2BoEVu0kDIV5EPs4%2Fuploads%2Fgit-blob-797803becd64841ca0caf905c282e42a1769d922%2Fgrafik.png?alt=media)
