Trying to figure out an equation to get the current group a page would be in if they were grouped like below.
Variables:
PageSize = 5 PageIndex = 21 GroupSize = 5 TotalItems = 1000 CurrentPage = PageIndex + 1
Find:
**CurrentGroup = ?**
If there are 1000 items and you have a group size of 5 then there are 200 groups (TotalItems / GroupSize). This means that CurrentPage 22 must land in group 5
Group 1: 1 2 3 4 5 Group 2: 6 7 8 9 10 Group 3: 11 12 13 14 15 Group 4: 16 17 18 19 20 Group 5: 21 22 23 24 25
Formula
Test