I've been doing something like this with frames for sprites, like using a sprite sheet that might be 10x10 tiles of animated sprites, and the frame number is just a single integer, but it relates to a coordinate using pretty much what Zoto' has.
Say your grid is 5 elements wide...
Frame=(Y*5)+X
So if you take grid point 3x,2y - Frame=(2*5)+3, or 13
Now, knowing the width is 5...
Y=int(Frame/5)
X=Frame-(Y*5)
So if Frame is 13, then Y=2, and 13-(2*5) = 3
I use the Frame to decide the tile position then work out UV coordinates from the calculated X and Y.
So....
Multiply Y by the number of X components, then add X, and you have a unique reference number for that position. Then divide etc if you need to work back and get the original coordinates again.