# Adding Multiple Collection Values together

**URL:** <https://community.make.com/t/adding-multiple-collection-values-together/10014>\
**Category:** Questions\
**Tags:** arrays, functions\
**Created:** [April 20, 2023, 5:47am UTC](https://community.make.com/t/adding-multiple-collection-values-together/10014 "2023-04-20T05:47:03Z")\
**Posts on this page:** 6\
**Page:** 1

<div class="post-metadata">

**Author:** ![nlees](https://avatars.discourse-cdn.com/v4/letter/n/3d9bf3/32.png) [@nlees](https://community.make.com/u/nlees)\
**Post date:** [April 20, 2023, 5:47am UTC](https://community.make.com/t/adding-multiple-collection-values-together/10014/1 "2023-04-20T05:47:03Z")

</div>

I currently have an Array aggregator that has 3 collections with different itemCost values.

I want to add all of the itemCost values together to allow me to take the total of them, how would I got about this?

![image](https://europe1.discourse-cdn.com/flex013/uploads/make/original/2X/4/49d9572a86a4d9ace7c0704d144bee5ed0ff75cd.png)

---

<div class="post-metadata">

**Author:** ![nlees](https://avatars.discourse-cdn.com/v4/letter/n/3d9bf3/32.png) [@nlees](https://community.make.com/u/nlees)\
**Post date:** [April 20, 2023, 6:17am UTC](https://community.make.com/t/adding-multiple-collection-values-together/10014/2 "2023-04-20T06:17:12Z")

</div>

Typical, I posted this then 5 minutes later I managed to fix the issue myself.

I used an Iterator to retrieve the array which included the itemCost and then used a numeric aggregator to ‘SUM’ them together.

 ![image](https://europe1.discourse-cdn.com/flex013/uploads/make/original/2X/4/42a0507297e42947462913df7a6b5bed2f363bd7.png)

 ![image](https://europe1.discourse-cdn.com/flex013/uploads/make/original/2X/e/ee96f7404b6c93693472b113c073a8cebf21928f.png)

 ![image](https://europe1.discourse-cdn.com/flex013/uploads/make/original/2X/e/eba8f7e464933d87cb744a623cf1fa30daf3feea.png)

---

<div class="post-metadata">

**Author:** ![Runcorn](https://dub1.discourse-cdn.com/flex013/user_avatar/community.make.com/runcorn/32/9169_2.png) [@Runcorn](https://community.make.com/u/Runcorn)\
**Post date:** [April 20, 2023, 6:17am UTC](https://community.make.com/t/adding-multiple-collection-values-together/10014/3 "2023-04-20T06:17:22Z")

</div>

Try using,

> {{sum(map(“array”; “itemCost”))}}

---

<div class="post-metadata">

**Author:** ![nlees](https://avatars.discourse-cdn.com/v4/letter/n/3d9bf3/32.png) [@nlees](https://community.make.com/u/nlees)\
**Post date:** [April 20, 2023, 6:18am UTC](https://community.make.com/t/adding-multiple-collection-values-together/10014/4 "2023-04-20T06:18:07Z")

</div>

Thanks for the help! I just this second fixed the issue and posted the fix above.

---

<div class="post-metadata">

**Author:** ![Michaela-Inactive](https://dub1.discourse-cdn.com/flex013/user_avatar/community.make.com/michaela-inactive/32/29_2.png) [@Michaela-Inactive](https://community.make.com/u/Michaela-Inactive)\
**Post date:** [April 20, 2023, 9:36am UTC](https://community.make.com/t/adding-multiple-collection-values-together/10014/5 "2023-04-20T09:36:15Z")

</div>

Heya @nlees 👋

Awesome to hear that you managed to figure this out! Also, thanks a ton for stepping back into the community and letting us learn from you by sharing your solution 🙏

Just FYI: I’m marking your comment as a solution 🙂 ✅

---

<div class="post-metadata">

**Author:** ![FAQs](https://avatars.discourse-cdn.com/v4/letter/f/eb8c5e/32.png) [@FAQs](https://community.make.com/u/FAQs)\
**Post date:** [April 24, 2023, 11:00pm UTC](https://community.make.com/t/adding-multiple-collection-values-together/10014/6 "2023-04-24T23:00:13Z")

</div>

This topic was automatically closed because it's resolved or inactive. Please, start a new topic.


