# Iterating rows in pairs

**URL:** <https://community.glideapps.com/t/iterating-rows-in-pairs/58842>\
**Category:** Ask for Help\
**Created:** [March 6, 2023, 9:49pm UTC](https://community.glideapps.com/t/iterating-rows-in-pairs/58842 "2023-03-06T21:49:15Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![Jonathon\_Kohn](https://sea2.discourse-cdn.com/flex002/user_avatar/community.glideapps.com/jonathon_kohn/32/8593_2.png) [@Jonathon\_Kohn](https://community.glideapps.com/u/Jonathon_Kohn)\
**Post date:** [March 6, 2023, 9:49pm UTC](https://community.glideapps.com/t/iterating-rows-in-pairs/58842/1 "2023-03-06T21:49:15Z")

</div>

Is there an easy way to iterate rows in groups of 2?

I have an action that adds 2 rows to a sheet at a time and I would like to have each row behave like this:

row 1 1  
row 2 1  
row 3 2  
row 4 2  
row 5 3  
row 6 3  
row 7 4  
row 8 4

etc…

---

<div class="post-metadata">

**Author:** ![Jonathon\_Kohn](https://sea2.discourse-cdn.com/flex002/user_avatar/community.glideapps.com/jonathon_kohn/32/8593_2.png) [@Jonathon\_Kohn](https://community.glideapps.com/u/Jonathon_Kohn)\
**Post date:** [March 6, 2023, 9:53pm UTC](https://community.glideapps.com/t/iterating-rows-in-pairs/58842/2 "2023-03-06T21:53:13Z")

</div>

I’m currently using a rollup to count and set column but because it’s more than 1 row at a time my iterations are off.

---

<div class="post-metadata">

**Author:** ![Uzo](https://sea2.discourse-cdn.com/flex002/user_avatar/community.glideapps.com/uzo/32/22639_2.png) [@Uzo](https://community.glideapps.com/u/Uzo)\
**Post date:** [March 6, 2023, 9:58pm UTC](https://community.glideapps.com/t/iterating-rows-in-pairs/58842/3 "2023-03-06T21:58:38Z")

</div>

I do not understand what you are trying to do. Can you explain better?

---

<div class="post-metadata">

**Author:** ![Uzo](https://sea2.discourse-cdn.com/flex002/user_avatar/community.glideapps.com/uzo/32/22639_2.png) [@Uzo](https://community.glideapps.com/u/Uzo)\
**Post date:** [March 6, 2023, 10:12pm UTC](https://community.glideapps.com/t/iterating-rows-in-pairs/58842/5 "2023-03-06T22:12:25Z")

</div>

Count unique submissions numbers

 ![Screen Shot 2023-03-06 at 5.16.30 PM](https://us1.discourse-cdn.com/flex002/uploads/glideapps/original/3X/b/5/b5b3da4534a706d66f5d1fe91f554a7763897d79.jpeg)
