Hello. While I was able to come up with a formula, I am wondering if there is an inbuilt way to make the index start from top-left, so it goes in a left to right, top to bottom fashion (like we read a text), essentially like this:
0 1 2 3 4
5 6 7 8 9
10 11 12 13 14
15 16 17 18 19
20 21 22 23 24
rather than what I see in this picture.