# Count from a Cell

**URL:** <https://community.glideapps.com/t/count-from-a-cell/79047>\
**Category:** Ask for Help\
**Created:** [January 8, 2025, 9:54am UTC](https://community.glideapps.com/t/count-from-a-cell/79047 "2025-01-08T09:54:27Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![Hal\_Hole](https://sea2.discourse-cdn.com/flex002/user_avatar/community.glideapps.com/hal_hole/32/83107_2.png) [@Hal\_Hole](https://community.glideapps.com/u/Hal_Hole)\
**Post date:** [January 8, 2025, 9:54am UTC](https://community.glideapps.com/t/count-from-a-cell/79047/1 "2025-01-08T09:54:28Z")

</div>

Hello everyone! I have a problem that I don’t know how to solve and I need your help.

I have a list (checkbox) from which the user must select some items. My problem is that I need to count the number of those items, and I can’t find a way to be able to count the number of items selected from the cell.

I am using checkbox and not checklist because I need to limit the selection of items and in a checklist I think that is not possible.

Any ideas? Thank you so much!

---

<div class="post-metadata">

**Author:** ![ThinhDinh](https://sea2.discourse-cdn.com/flex002/user_avatar/community.glideapps.com/thinhdinh/32/49_2.png) [@ThinhDinh](https://community.glideapps.com/u/ThinhDinh)\
**Post date:** [January 9, 2025, 12:07am UTC](https://community.glideapps.com/t/count-from-a-cell/79047/2 "2025-01-09T00:07:59Z")

</div>

I assume it’s a multiple choice component that writes a comma-delimited list of choices?

One way to do it is using Split Text to split it into an array, then Array Length to get the count you want.

Another way is using JavaScript.

 ![CleanShot 2025-01-09 at 07.07.39](https://us1.discourse-cdn.com/flex002/uploads/glideapps/original/3X/d/9/d91024a315907f3122954e0a81ee006fd956ff18.png)

```auto
return p1.split(",").length

```

With p1 being your “cell”.
