# MOD

The *MOD* function divides one number by another and returns the remainder of the division. It is commonly used in calculations involving cyclic patterns, intervals, or determining whether a number is divisible by another number.

#### Syntax

```javascript
MOD(dividend, divisor)
```

#### Arguments

* `dividend`: The number to be divided.
* `divisor`: The number by which the dividend is divided.

#### Return value

Returns the remainder after division.

#### Example

```
MOD(Planned Units, 2)
```

In this example, the MOD function is used to create the *Remaining Units* measure, which returns the remainder after dividing the *Planned Units* values by 2.

<figure><img src="/files/cW37oO9sojqjo4VUiEWx" alt=""><figcaption></figcaption></figure>

#### Excel equivalent

[MOD](https://support.microsoft.com/en-us/office/mod-function-9b6cd169-b6ee-406a-a97b-edf2a9dc24f3)


---

# 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.fabricplan.com/planning-sheets/formula-syntax/math-functions/mod.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.
