# CUMULATE

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

**CUMULATE**(*range*; *orientation*)

* *range* - a range of values - ***Value type**: range with numbers as expected values*
* *orientation* - the orientation of the sum calculation - ***Value type**: constant (optional, vertical as default)*.\
  Possible values are:
  * *vertical* - the cumulated values are calculated column-wise
  * *horizontal* - the cumulated values are calculated row-wise

#### Remark

* Cells which cannot be converted to numbers are evaluated as 0 in the calculation of the cumulated values.

#### Examples

<div align="left"><figure><img src="/files/ZXhCZtRiZjR4ejBDcLKC" alt=""><figcaption></figcaption></figure></div>

<div align="left"><figure><img src="/files/2qDd6AlelbP6NpUsJuxh" alt=""><figcaption></figcaption></figure></div>

This example shows that letters and empty cells are evaluated as 0:

<div align="left"><figure><img src="/files/rpqdReWTVlWUsWgtxnii" alt=""><figcaption></figcaption></figure></div>


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://docs.nedyx.com/nedyx/clearlines-functions/range-functions/cumulate.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
