> 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/sumlist.md).

# SUMLIST

The SUMLIST function calculates the sum of all values from a given list. It iterates through the list, adds each item together, and returns the total sum of all the values in the list

### Syntax:

```
SUMLIST (List to be added up)
```

### Parameters:

```
List to be added up: List you want to sum the elements
```

### Usage examples:

Sums the length property of all baytypes within the shed object:

SUMLIST(shed.baytypes.\*.length)

<figure><img src="https://1247870272-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FSXoRgDyJukQzyOctBwWG%2Fuploads%2Fzi4oefeBy8hCs9dn6sq9%2Fimage.png?alt=media&amp;token=c79c3ba7-b1b9-4ca0-a0a0-193e67e8c023" alt=""><figcaption></figcaption></figure>
