# Is there a nice way to specify sums or products with excluded indices?

**URL:** <https://discourse.julialang.org/t/is-there-a-nice-way-to-specify-sums-or-products-with-excluded-indices/138198>\
**Category:** General Usage\
**Tags:** question\
**Created:** [July 14, 2026, 8:54pm UTC](https://discourse.julialang.org/t/is-there-a-nice-way-to-specify-sums-or-products-with-excluded-indices/138198 "2026-07-14T20:54:36Z")\
**Posts on this page:** 1\
**Showing post:** 3

<div class="post-metadata">

**Author:** ![ducksoverip](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/ducksoverip/32/31967_2.png) [@ducksoverip](https://discourse.julialang.org/u/ducksoverip)\
**Post date:** [July 14, 2026, 9:23pm UTC](https://discourse.julialang.org/t/is-there-a-nice-way-to-specify-sums-or-products-with-excluded-indices/138198/3 "2026-07-14T21:23:08Z")

</div>

Ok, so this didn’t appear when I searched it (figures), but _did_ appear in the “Related Posts” section after I posted this topic. Turns out the answer was, in fact, pretty simple: [How to sum every element but one - #3 by greg\_plowman](https://discourse.julialang.org/t/how-to-sum-every-element-but-one/49771/3)

---

_[View the full topic](https://discourse.julialang.org/t/is-there-a-nice-way-to-specify-sums-or-products-with-excluded-indices/138198)._
