# Length & Sum problem

**URL:** <https://community.thunkable.com/t/length-sum-problem/113895>\
**Category:** Questions about Thunkable X\
**Created:** [June 20, 2019, 7:58am UTC](https://community.thunkable.com/t/length-sum-problem/113895 "2019-06-20T07:58:23Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![kartik\_old](https://sea1.discourse-cdn.com/flex015/user_avatar/community.thunkable.com/kartik_old/32/28305_2.png) [@kartik\_old](https://community.thunkable.com/u/kartik_old)\
**Post date:** [June 20, 2019, 7:58am UTC](https://community.thunkable.com/t/length-sum-problem/113895/1 "2019-06-20T07:58:23Z")

</div>

Hello,

 ![20190620_132541](https://us1.discourse-cdn.com/flex015/uploads/thunkable/original/3X/f/a/fa2650dd55b01b86416b89df758d4e4c12d42989.jpeg)

What am I doing wrong?  
This code is displaying 0…  
The spreadsheet has data with 15 rows in it.

Thanks!

---

<div class="post-metadata">

**Author:** ![actech](https://avatars.discourse-cdn.com/v4/letter/a/3d9bf3/32.png) [@actech](https://community.thunkable.com/u/actech)\
**Post date:** [June 20, 2019, 8:28am UTC](https://community.thunkable.com/t/length-sum-problem/113895/2 "2019-06-20T08:28:21Z")

</div>

Hello,

Try using one Spreadsheet.GetAllRows block, and then in the “for each” loop get the necessary data.

You can see an example of using this block on the screen scrAirTable

[https://x.thunkable.com/projects/5cd84f23e3097f3353fdad45/project/properties/designer/](https://x.thunkable.com/projects/5cd84f23e3097f3353fdad45/project/properties/designer/)

---

<div class="post-metadata">

**Author:** ![kartik\_old](https://sea1.discourse-cdn.com/flex015/user_avatar/community.thunkable.com/kartik_old/32/28305_2.png) [@kartik\_old](https://community.thunkable.com/u/kartik_old)\
**Post date:** [June 20, 2019, 9:17am UTC](https://community.thunkable.com/t/length-sum-problem/113895/3 "2019-06-20T09:17:55Z")

</div>

Thanks!  
I’ll soon check it 😄

---

<div class="post-metadata">

**Author:** ![ioannis](https://sea1.discourse-cdn.com/flex015/user_avatar/community.thunkable.com/ioannis/32/146956_2.png) [@ioannis](https://community.thunkable.com/u/ioannis)\
**Post date:** [November 8, 2024, 12:13pm UTC](https://community.thunkable.com/t/length-sum-problem/113895/4 "2024-11-08T12:13:22Z")

</div>


