Shifting RGs Cell Indexes

Hey friends,

for a project of mine I am trying to shift cell indexes of repeating groups. Please see the img below as a reference, but basically what I am trying: Depending on external variables I am having, I would like to change the position of my cells - in my repeating group. To have them aligned, I try to work with the indexes.

I have tried different solutions e.g. taking different mathematical operations on my values and then showing different RGs (hiding and unhiding them), with different spacing etc., depending on the values. However, as my values can be indefinitely big, this is no great (and no scalable) solution.

Can you think of any solution for that, or am I overseeing something? Thanks in advance!

Best
Dat

Maybe check out the list shifter plugin.