> For the complete documentation index, see [llms.txt](https://shedmate.gitbook.io/shedmate-help/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://shedmate.gitbook.io/shedmate-help/setting-up-shedmate/costing-database-and-pricing-calculations/variables/mathematical-functions/median.md).

# MEDIAN

The MEDIAN function returns the median value of the specified range.

### Syntax:

<pre><code><strong>median(number1, number2, number3, ...)
</strong></code></pre>

### Parameters:

```
numbers (required): The range of numbers whose values will be used to find the median.
```

### Usage example:

<figure><img src="https://1247870272-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FSXoRgDyJukQzyOctBwWG%2Fuploads%2Fx3hiW7XJCyWCcBmYDlrv%2FCaptura%20de%20Tela%202024-05-30%20a%CC%80s%2009.00.54.png?alt=media&amp;token=497961c6-ade7-41e9-8de3-a401630c6edb" alt=""><figcaption></figcaption></figure>
