# Correctly index repeating group cell within a RG with multiple pages

**URL:** <https://forum.bubble.io/t/correctly-index-repeating-group-cell-within-a-rg-with-multiple-pages/134425>\
**Category:** Tips\
**Created:** [February 4, 2021, 5:19pm UTC](https://forum.bubble.io/t/correctly-index-repeating-group-cell-within-a-rg-with-multiple-pages/134425 "2021-02-04T17:19:26Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![sharifa](https://avatars.discourse-cdn.com/v4/letter/s/dec6dc/32.png) [@sharifa](https://forum.bubble.io/u/sharifa)\
**Post date:** [February 4, 2021, 5:19pm UTC](https://forum.bubble.io/t/correctly-index-repeating-group-cell-within-a-rg-with-multiple-pages/134425/1 "2021-02-04T17:19:26Z")

</div>

Hey All,

Another pin to save a few some googling. This is for displaying the index (AKA count number) of an item/cell within a repeating group with fixed rows with multiple pages. Presently, while the repeating group element actions: show previous, show next, along with the dynamic RG page number function work great, the cell index function doesn’t intuitively follow suit.

ie. If I have a fixed group with 10 rows with a “current cell index” field and 15 results, the first page will display indexed results, 1-10 correctly, however navigating to next page page, will show results, 11-15, still – and incorrectly (for my purposes) as 1-10. (Even as page display reads, page 2).

I realized the current cell index ONLY reports its cell index within the current, fixed row group, not of the TOTAL search results being displayed. I’m sure there’s a reason for this, but its not for what I was going for. So here’s my workaround.

Instead of ![Screen Shot 2021-02-04 at 11.34.07 AM](https://us1.discourse-cdn.com/bubble/original/3X/5/9/5965da73f0ba1fae818e17d8ca5b49b3fa70b2b9.png)

Use the following function (keeping in mind Bubble performs arithmetic operations left to right (NOT using the Please Excuse My Dear Aunt Sally method, as was beat into all of our heads as correct order of operations)):

RG’s page number - 1 \* (# of rows in your fixed group) + Current cells index

So item 11 in a RG of 10 fixed rows calculates as: 2 -1 = 1 \>\> 1\*10 = 10 \>\> 10+1 =11

![Screen Shot 2021-02-04 at 11.35.33 AM](https://us1.discourse-cdn.com/bubble/original/3X/7/e/7ea9ea224066462cca5935bdb2e6a2b6fa46035a.png)

An item 112 in the same repeating group, calculates as: 12-1 = 11 \>\> 11\*10 = 110 \>\> 110 +2 = 112  
and so on.

 ![Screen Shot 2021-02-04 at 11.51.46 AM](https://us1.discourse-cdn.com/bubble/original/3X/9/3/9314cecefcf1f0d343f7410dae8728cd573e34da.png)

 ![Screen Shot 2021-02-04 at 11.52.18 AM](https://us1.discourse-cdn.com/bubble/original/3X/e/9/e90cda27a8c3c0e4332c142a7bd7ac7ce81e316f.jpeg)

For configuring the "Showing page – of – " I used  
 ![Screen Shot 2021-02-04 at 12.10.53 PM](https://us1.discourse-cdn.com/bubble/original/3X/4/5/452be23b89747b285843ac97b72e434c77958e87.png)

I’m sure there’s other workarounds, this is just I how I troubleshooted it.

Hope this helps someone.

Happy Building 🙂

---

<div class="post-metadata">

**Author:** ![boston85719](https://sea1.discourse-cdn.com/bubble/user_avatar/forum.bubble.io/boston85719/32/77286_2.png) [@boston85719](https://forum.bubble.io/u/boston85719)\
**Post date:** [February 4, 2021, 7:11pm UTC](https://forum.bubble.io/t/correctly-index-repeating-group-cell-within-a-rg-with-multiple-pages/134425/2 "2021-02-04T19:11:29Z")

</div>

You should check out the list shifter plugin…it has a lot of built in functions to keep track of items in a list and pagination, plus some other features that may help you with some future issues in terms of keeping track of the items in your repeating groups

---

<div class="post-metadata">

**Author:** ![sharifa](https://avatars.discourse-cdn.com/v4/letter/s/dec6dc/32.png) [@sharifa](https://forum.bubble.io/u/sharifa)\
**Post date:** [February 4, 2021, 8:13pm UTC](https://forum.bubble.io/t/correctly-index-repeating-group-cell-within-a-rg-with-multiple-pages/134425/3 "2021-02-04T20:13:00Z")

</div>

I didn’t know about that plug in. That’s wonderful. Thanks for sharing!

---

<div class="post-metadata">

**Author:** ![luminrabbit](https://sea1.discourse-cdn.com/bubble/user_avatar/forum.bubble.io/luminrabbit/32/103740_2.png) [@luminrabbit](https://forum.bubble.io/u/luminrabbit)\
**Post date:** [March 8, 2025, 4:21pm UTC](https://forum.bubble.io/t/correctly-index-repeating-group-cell-within-a-rg-with-multiple-pages/134425/4 "2025-03-08T16:21:05Z")

</div>

Amazing and thank you there were so many other posts showing parentheses, etc… and was very difficult to perform and this just made it so simple. Thank You!
