Edit: My solution is for list items index number, not what you are looking for i think

image
Here is a native solution for your problem. In plain formula:
Item count on each page=a
Page number=b
Current cells index=c

((a x b) - a) + c

this formula should show the correct index number on based on current page number